Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 4cb12fc

Browse files
vubvub
authored andcommitted
EIP 98
1 parent 427e4fb commit 4cb12fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ethereum/blocks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,10 @@ def _delta_item(self, address, param, value):
765765

766766
def mk_transaction_receipt(self, tx):
767767
"""Create a receipt for a transaction."""
768-
return Receipt(self.state_root, self.gas_used, self.logs)
768+
if self.number >= self.config["METROPOLIS_FORK_BLKNUM"]:
769+
return Receipt('\x00' * 32, self.gas_used, self.logs)
770+
else:
771+
return Receipt(self.state_root, self.gas_used, self.logs)
769772

770773
def add_transaction_to_list(self, tx):
771774
"""Add a transaction to the transaction trie.

0 commit comments

Comments
 (0)