diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-10-22 18:09:30 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-10-22 18:09:30 +0800 |
commit | 28c7b54d6860dbf03ca8a32c9d3989ec4019319c (patch) | |
tree | 0a93c862ab0a91597c0ea9de82c8b19311a101b6 | |
parent | 58d0752fdd1c7363fb1a127cd7e0a86d7602be02 (diff) | |
download | dexon-28c7b54d6860dbf03ca8a32c9d3989ec4019319c.tar.gz dexon-28c7b54d6860dbf03ca8a32c9d3989ec4019319c.tar.zst dexon-28c7b54d6860dbf03ca8a32c9d3989ec4019319c.zip |
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 |