diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-10-22 20:43:21 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-11-19 22:03:32 +0800 |
commit | e86e0ecdc8a977db2ff5df60dca3cad8355ace6d (patch) | |
tree | 5944b33220457ad5da31b33e15774882c2e6201f /miner | |
parent | ae37a8013d5a348bdb21d4a66d5f462e0baf7cd8 (diff) | |
download | go-tangerine-e86e0ecdc8a977db2ff5df60dca3cad8355ace6d.tar.gz go-tangerine-e86e0ecdc8a977db2ff5df60dca3cad8355ace6d.tar.zst go-tangerine-e86e0ecdc8a977db2ff5df60dca3cad8355ace6d.zip |
core, eth, miner, xeth: clean up tx/receipt db accessors
Diffstat (limited to 'miner')
-rw-r--r-- | miner/worker.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/miner/worker.go b/miner/worker.go index 238f1a4bf..aa0fa85cb 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -305,9 +305,9 @@ func (self *worker) wait() { // check if canon block and write transactions if stat == core.CanonStatTy { // This puts transactions in a extra db for rpc - core.PutTransactions(self.chainDb, block, block.Transactions()) + core.WriteTransactions(self.chainDb, block) // store the receipts - core.PutReceipts(self.chainDb, work.receipts) + core.WriteReceipts(self.chainDb, work.receipts) // Write map map bloom filters core.WriteMipmapBloom(self.chainDb, block.NumberU64(), work.receipts) } @@ -320,7 +320,7 @@ func (self *worker) wait() { self.mux.Post(core.ChainHeadEvent{block}) self.mux.Post(logs) } - if err := core.PutBlockReceipts(self.chainDb, block.Hash(), receipts); err != nil { + if err := core.WriteBlockReceipts(self.chainDb, block.Hash(), receipts); err != nil { glog.V(logger.Warn).Infoln("error writing block receipts:", err) } }(block, work.state.Logs(), work.receipts) |