diff options
author | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-04 08:25:04 +0800 |
---|---|---|
committer | Jeffrey Wilcke <geffobscura@gmail.com> | 2015-07-04 08:32:10 +0800 |
commit | 2feb23c1dacf1cc7ef664d92f28b63dd46502f21 (patch) | |
tree | 5532c0a82ae0d39104977f5bc022e024de3043be /core/chain_manager.go | |
parent | acd85fe95f025384885ed09560e32b227d80b26f (diff) | |
download | go-tangerine-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar.gz go-tangerine-2feb23c1dacf1cc7ef664d92f28b63dd46502f21.tar.zst go-tangerine-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.go | 2 |
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)) |