aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-10-23 01:17:15 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-10-23 01:17:15 +0800
commit77878f76a935061cee82ae9c2a1bc64b192b592b (patch)
tree32bf9742c8ff4ed67f559219e2f048b665bce3ff
parentdce503779b2866d1d35b4582470604c0d7e156db (diff)
parent28c7b54d6860dbf03ca8a32c9d3989ec4019319c (diff)
downloaddexon-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.go5
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
an>12-2/+347 * Fix build (remove duplicate *alloc declarations)kris2002-09-291-0/+11 * find->${FIND},xargs->${XARGS}ijliao2002-09-292-2/+2 * Fix build [1] and add missing manpagekris2002-09-291-3/+3 * Remove -Werror from CFLAGS to fix buildkris2002-09-291-0/+11 * Fix patch after recent GNOMENG conversion.marcus2002-09-282-13/+0 * Add dependency to jpeg.9alex2002-09-241-0/+1 * Fixing a build error listed on bentodinoex2002-09-231-0/+11 * Fix buffer overflowpat2002-09-232-0/+21 * add missing man pageijliao2002-09-232-0/+6 * Project site moved to nongnu.orgpat2002-09-222-2/+2 * Update to 2.65pat2002-09-214-22/+163 * Update to 3.1pat2002-09-213-11/+7 * Sorry. It won't even configure. Needs new admin dir, I think.alane2002-09-216-87/+0 * BROKEN: Does not patchkris2002-09-211-0/+2 * Update to 1.0.3pat2002-09-212-2/+3 * Re-enable auto fetching instead of requesting user to manually fetchlioux2002-09-211-9/+3 * GNOME has just changed the layout of their FTP site. This resulted inmarcus2002-09-215-5/+5 * Update to 4.1blioux2002-09-203-3/+3 * Sanitize MASTER_SITESlioux2002-09-202-7/+3 * upgrade to 0.7ijliao2002-09-203-4/+6 * upgrade to 3.6.1ijliao2002-09-203-2/+14 * add taipan 0.9ijliao2002-09-208-0/+80 * upgrade to 2.0.34ijliao2002-09-205-28/+27 * unbreak port, took maintainership.dinoex2002-09-193-13/+2 * Fix bzflag and remove BROKEN. This has been broken since joe MFC'd thewill2002-09-192-5/+31 * BROKEN: does not buildkris2002-09-191-0/+2 * BROKEN: Does not configurekris2002-09-191-0/+2 * Add dependency on gnomecanvas.marcus2002-09-192-2/+2 * add bsp 5.1ijliao2002-09-186-0/+48 * Update to 0.4.7pat2002-09-182-2/+2 * Update to 4.2.11.roam2002-09-172-2/+2 * - Mark BROKEN; this port does not build with the version of devel/allegrowjv2002-09-162-24/+24 * Add missing manpagekris2002-09-151-0/+2 * Correct pkg-plistkris2002-09-151-1/+1 * Start category Makefile cleanup.alane2002-09-101-1/+0 * Actually depend on SDL libraries as necessary.nbm2002-09-101-0/+4 * KDE2 is dead. The source is no longer available.alane2002-09-095-2076/+0 * Fix things after recent GNOMENG commit.marcus2002-09-091-3/+4 * xpired moved to sourceforgekevlo2002-09-092-2/+3 * Fix things up after the GNOMENG commit.marcus2002-09-091-4/+7 * Add missing LIB_DEPENDS on sdl_mixerkris2002-09-091-1/+2 * Fix build in -current (build/link C++ code with ${CXX})kris2002-09-092-6/+30 * Fix build on -current (build/link C++ code with ${CXX})kris2002-09-091-36/+21 * Fix build on -current (Build/link C++ code with ${CXX})kris2002-09-092-16/+9 * Fix build on -current (catch up to <bsd.prog.mk> changes)kris2002-09-081-32/+24 * Fix build on -current (Build/link c++ code correctly)kris2002-09-081-4/+10 * Fix build on -current (machine/soundcard.h -> sys/soundcard.h)kris2002-09-085-3/+47