diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-23 01:17:15 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-10-23 01:17:15 +0800 |
commit | 77878f76a935061cee82ae9c2a1bc64b192b592b (patch) | |
tree | 32bf9742c8ff4ed67f559219e2f048b665bce3ff | |
parent | dce503779b2866d1d35b4582470604c0d7e156db (diff) | |
parent | 28c7b54d6860dbf03ca8a32c9d3989ec4019319c (diff) | |
download | dexon-77878f76a935061cee82ae9c2a1bc64b192b592b.tar.gz dexon-77878f76a935061cee82ae9c2a1bc64b192b592b.tar.zst dexon-77878f76a935061cee82ae9c2a1bc64b192b592b.zip |
Merge pull request #1922 from karalabe/fix-receipt-storage-regression
core: fix #1921, decode all receipt field, not just consensus
-rw-r--r-- | core/transaction_util.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/transaction_util.go b/core/transaction_util.go index 1a3681341..e2e5b9aee 100644 --- a/core/transaction_util.go +++ b/core/transaction_util.go @@ -124,13 +124,12 @@ func GetReceipt(db ethdb.Database, txHash common.Hash) *types.Receipt { if len(data) == 0 { return nil } - - var receipt types.Receipt + var receipt types.ReceiptForStorage err := rlp.DecodeBytes(data, &receipt) if err != nil { glog.V(logger.Core).Infoln("GetReceipt err:", err) } - return &receipt + return (*types.Receipt)(&receipt) } // GetBlockReceipts returns the receipts generated by the transactions |