diff --git a/chia/wallet/wallet_node.py b/chia/wallet/wallet_node.py index ea842a5871c5..46c816974ebe 100644 --- a/chia/wallet/wallet_node.py +++ b/chia/wallet/wallet_node.py @@ -890,14 +890,13 @@ class WalletNode: assert self.wallet_state_manager is not None additional_coin_spends: List[CoinSpend] = [] if len(removed_coins) > 0: - removed_coin_ids = set([coin.name() for coin in removed_coins]) all_added_coins = await self.get_additions(peer, block, [], get_all_additions=True) assert all_added_coins is not None if all_added_coins is not None: - + all_added_coin_parents = [c.parent_coin_info for c in all_added_coins] for coin in all_added_coins: # This searches specifically for a launcher being created, and adds the solution of the launcher - if coin.puzzle_hash == SINGLETON_LAUNCHER_HASH and coin.parent_coin_info in removed_coin_ids: + if coin.puzzle_hash == SINGLETON_LAUNCHER_HASH and coin.name() in all_added_coin_parents: cs: CoinSpend = await self.fetch_puzzle_solution(peer, block.height, coin) additional_coin_spends.append(cs) # Apply this coin solution, which might add things to interested list