Fix a bug that caused the node to crash
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user