Skip to content

Commit 3842738

Browse files
committed
fix bugs
1 parent 2ed25ef commit 3842738

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/full_node/full_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ async def request_removals(
20002000
response = wallet_protocol.RespondRemovals(
20012001
block.height, block.header_hash, [], proofs
20022002
)
2003-
elif request.coin_names is None:
2003+
elif request.coin_names is None or len(request.coin_names) == 0:
20042004
for removal in all_removals:
20052005
cr = await self.coin_store.get_coin_record(removal)
20062006
assert cr is not None

src/wallet/wallet_coin_record.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ class WalletCoinRecord(Streamable):
2323
wallet_type: WalletType
2424
wallet_id: int
2525

26-
@property
2726
def name(self) -> bytes32:
2827
return self.coin.name()

src/wallet/wallet_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ async def respond_removals(self, response: wallet_protocol.RespondRemovals):
865865

866866
# Verify removals root
867867
removals_merkle_set = MerkleSet()
868-
for coin in removals:
868+
for coin in all_coins:
869869
if coin is not None:
870870
removals_merkle_set.add_already_hashed(coin.name())
871871
removals_root = removals_merkle_set.get_root()

src/wallet/wallet_state_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ async def create(
9090
genesis = FullBlock.from_bytes(self.constants["GENESIS_BLOCK"])
9191
self.genesis = genesis
9292
self.state_changed_callback = None
93+
self.pending_tx_callback = None
9394
self.difficulty_resets_prev = {}
9495
self.db_path = db_path
9596

@@ -978,8 +979,8 @@ async def get_filter_additions_removals(
978979
additions_of_interest: bytes32 = []
979980

980981
for record in my_coin_records:
981-
if tx_filter.Match(bytearray(record.name)):
982-
removals_of_interest.append(record.name)
982+
if tx_filter.Match(bytearray(record.name())):
983+
removals_of_interest.append(record.name())
983984

984985
for puzzle_hash in my_puzzle_hashes:
985986
if tx_filter.Match(bytearray(puzzle_hash)):

0 commit comments

Comments
 (0)