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

Commit

Permalink
EIP 98
Browse files Browse the repository at this point in the history
  • Loading branch information
vub authored and konradkonrad committed Jul 6, 2016
1 parent ce7548d commit adf8fa8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ethereum/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,10 @@ def _delta_item(self, address, param, value):

def mk_transaction_receipt(self, tx):
"""Create a receipt for a transaction."""
return Receipt(self.state_root, self.gas_used, self.logs)
if self.number >= self.config["METROPOLIS_FORK_BLKNUM"]:
return Receipt('\x00' * 32, self.gas_used, self.logs)
else:
return Receipt(self.state_root, self.gas_used, self.logs)

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

0 comments on commit adf8fa8

Please sign in to comment.