aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzsfelfoldi <zsfelfoldi@gmail.com>2015-06-10 21:57:38 +0800
committerzsfelfoldi <zsfelfoldi@gmail.com>2015-06-15 21:55:39 +0800
commit3c7b64ce20aefeae6728d09d96b34ef31bc405ac (patch)
tree06d9cf8e88fa098a01621994d44f81357b1e603a
parenta977cecbe49e9cf049785a437581a767b079570c (diff)
downloaddexon-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar
dexon-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.gz
dexon-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.bz2
dexon-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.lz
dexon-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.xz
dexon-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.tar.zst
dexon-3c7b64ce20aefeae6728d09d96b34ef31bc405ac.zip
removed duplicate function after rebase
-rw-r--r--core/block_processor.go18
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
}