Skip to content

Commit 2b6ff08

Browse files
authored
CHIA-3768 Optimize constructing removal names in new_peak's slow path (#20113)
Optimize constructing removal names in new_peak's slow path.
1 parent 6bd9360 commit 2b6ff08

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

chia/full_node/mempool_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,8 +934,7 @@ async def new_peak(
934934

935935
removals: set[bytes32] = set()
936936
for item in old_pool.all_items():
937-
for s in item.spend_bundle.coin_spends:
938-
removals.add(s.coin.name())
937+
removals.update(item.bundle_coin_spends)
939938

940939
for record in await self.get_coin_records(removals):
941940
name = record.coin.name()

0 commit comments

Comments
 (0)