diff options
author | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-06-10 21:57:38 +0800 |
---|---|---|
committer | zsfelfoldi <zsfelfoldi@gmail.com> | 2015-06-15 21:55:39 +0800 |
commit | 3c7b64ce20aefeae6728d09d96b34ef31bc405ac (patch) | |
tree | 06d9cf8e88fa098a01621994d44f81357b1e603a /core/block_processor.go | |
parent | a977cecbe49e9cf049785a437581a767b079570c (diff) | |
download | go-tangerine-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar go-tangerine-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.gz go-tangerine-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.bz2 go-tangerine-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.lz go-tangerine-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.xz go-tangerine-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.zst go-tangerine-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.zip |
removed duplicate function after rebase
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index 0ed30ca21..c01b110be 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -269,22 +269,6 @@ func (sm *BlockProcessor) processWithParent(block, parent *types.Block) (logs st return state.Logs(), nil } -func (self *BlockProcessor) GetBlockReceipts(bhash common.Hash) (receipts types.Receipts, err error) { - var rdata []byte - rdata, err = self.extraDb.Get(append(receiptsPre, bhash[:]...)) - - if err == nil { - err = rlp.DecodeBytes(rdata, &receipts) - } else { - glog.V(logger.Detail).Infof("GetBlockReceipts error %v\n", err) - } - /*if len(receipts) > 0 { - glog.V(logger.Info).Infof("GBR len %v\n", len(receipts)) - }*/ - return - -} - // See YP section 4.3.4. "Block Header Validity" // Validates a block. Returns an error if the block is invalid. func (sm *BlockProcessor) ValidateHeader(block, parent *types.Header, checkPow bool) error { @@ -426,6 +410,8 @@ func getBlockReceipts(db common.Database, bhash common.Hash) (receipts types.Rec if err == nil { err = rlp.DecodeBytes(rdata, &receipts) + } else { + glog.V(logger.Detail).Infof("getBlockReceipts error %v\n", err) } return } |