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

Commit 0bb54d4

Browse files
authored
Merge pull request #378 from ethereum/EIP98
EIP 98
2 parents ce7548d + adf8fa8 commit 0bb54d4

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
@@ -789,7 +789,10 @@ def _delta_item(self, address, param, value):
789789

790790
def mk_transaction_receipt(self, tx):
791791
"""Create a receipt for a transaction."""
792-
return Receipt(self.state_root, self.gas_used, self.logs)
792+
if self.number >= self.config["METROPOLIS_FORK_BLKNUM"]:
793+
return Receipt('\x00' * 32, self.gas_used, self.logs)
794+
else:
795+
return Receipt(self.state_root, self.gas_used, self.logs)
793796

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

0 commit comments

Comments
 (0)