Skip to content

Commit 28c7b54

Browse files
committed
core: fix #1921, decode all receipt field, not just consensus
1 parent 58d0752 commit 28c7b54

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/transaction_util.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,12 @@ func GetReceipt(db ethdb.Database, txHash common.Hash) *types.Receipt {
124124
if len(data) == 0 {
125125
return nil
126126
}
127-
128-
var receipt types.Receipt
127+
var receipt types.ReceiptForStorage
129128
err := rlp.DecodeBytes(data, &receipt)
130129
if err != nil {
131130
glog.V(logger.Core).Infoln("GetReceipt err:", err)
132131
}
133-
return &receipt
132+
return (*types.Receipt)(&receipt)
134133
}
135134

136135
// GetBlockReceipts returns the receipts generated by the transactions

0 commit comments

Comments
 (0)