mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2025-01-08 10:25:24 +03:00
Skip only the item that doesn't satisfy the inclusion filter (#13992)
This commit is contained in:
parent
a5fa4c2afe
commit
db5efe18c8
@ -160,11 +160,12 @@ class MempoolManager:
|
||||
if broke_from_inner_loop:
|
||||
break
|
||||
for item in dic.values():
|
||||
if not item_inclusion_filter(self, item):
|
||||
continue
|
||||
log.info(f"Cumulative cost: {cost_sum}, fee per cost: {item.fee / item.cost}")
|
||||
if (
|
||||
item.cost + cost_sum <= self.limit_factor * self.constants.MAX_BLOCK_COST_CLVM
|
||||
and item.fee + fee_sum <= self.constants.MAX_COIN_AMOUNT
|
||||
and item_inclusion_filter(self, item)
|
||||
):
|
||||
spend_bundles.append(item.spend_bundle)
|
||||
cost_sum += item.cost
|
||||
|
Loading…
Reference in New Issue
Block a user