mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 20:16:36 +00:00
Merge pull request #1922 from karalabe/fix-receipt-storage-regression
core: fix #1921, decode all receipt field, not just consensus
This commit is contained in:
commit
77878f76a9
1 changed files with 2 additions and 3 deletions
|
|
@ -124,13 +124,12 @@ func GetReceipt(db ethdb.Database, txHash common.Hash) *types.Receipt {
|
||||||
if len(data) == 0 {
|
if len(data) == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
var receipt types.ReceiptForStorage
|
||||||
var receipt types.Receipt
|
|
||||||
err := rlp.DecodeBytes(data, &receipt)
|
err := rlp.DecodeBytes(data, &receipt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.V(logger.Core).Infoln("GetReceipt err:", err)
|
glog.V(logger.Core).Infoln("GetReceipt err:", err)
|
||||||
}
|
}
|
||||||
return &receipt
|
return (*types.Receipt)(&receipt)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetBlockReceipts returns the receipts generated by the transactions
|
// GetBlockReceipts returns the receipts generated by the transactions
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue