提交 77878f76 编写于 作者: J Jeffrey Wilcke

Merge pull request #1922 from karalabe/fix-receipt-storage-regression

core: fix #1921, decode all receipt field, not just consensus
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册