Fix a bug that caused the node to crash

This commit is contained in:
2024-03-25 21:53:42 +01:00
parent 608a57c71d
commit 3d239a7526

View File

@@ -139,6 +139,7 @@ class Block:
return
balances = prev_block.balances.copy()
balances.setdefault(self.miner_pubkey, 0)
balances.setdefault(t.receiver, 0)
balances[self.miner_pubkey] += 100
t = self.transaction
if t is not None: