aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-04 08:25:04 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-04 08:32:10 +0800
commit2feb23c1dacf1cc7ef664d92f28b63dd46502f21 (patch)
tree5532c0a82ae0d39104977f5bc022e024de3043be /core/chain_manager.go
parentacd85fe95f025384885ed09560e32b227d80b26f (diff)
downloaddexon-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar
dexon-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar.gz
dexon-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar.bz2
dexon-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar.lz
dexon-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar.xz
dexon-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar.zst
dexon-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.zip
core, eth, miner, xeth: receipt storage fix
* Added GetReceiptsFromBlock, GetReceipt, PutReceipts * Added ContractAddress to receipt. See #1042
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r--core/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index b5381e336..4855162b5 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -632,7 +632,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) (int, error) {
// This puts transactions in a extra db for rpc
PutTransactions(self.extraDb, block, block.Transactions())
// store the receipts
- PutReceipts(self.extraDb, block.Hash(), receipts)
+ PutReceipts(self.extraDb, receipts)
case SideStatTy:
if glog.V(logger.Detail) {
glog.Infof("inserted forked block #%d (TD=%v) (%d TXs %d UNCs) (%x...). Took %v\n", block.Number(), block.Difficulty(), len(block.Transactions()), len(block.Uncles()), block.Hash().Bytes()[0:4], time.Since(bstart))