Skip to content

Commit d21b606

Browse files
committed
fee reward is treated as coinbase
1 parent efe0d57 commit d21b606

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/wallet/wallet_state_manager.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -576,12 +576,16 @@ async def receive_block(
576576
and path_block.removals is not None
577577
)
578578
for coin in path_block.additions:
579-
is_coinbase = (
580-
True
581-
if bytes32((path_block.height).to_bytes(32, "big"))
579+
is_coinbase = False
580+
581+
if (
582+
bytes32((path_block.height).to_bytes(32, "big"))
583+
== coin.parent_coin_info
584+
or std_hash(std_hash(path_block.height))
582585
== coin.parent_coin_info
583-
else False
584-
)
586+
):
587+
is_coinbase = True
588+
585589
await self.coin_added(coin, path_block.height, is_coinbase)
586590
for coin_name in path_block.removals:
587591
await self.coin_removed(coin_name, path_block.height)

0 commit comments

Comments
 (0)