aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-25 15:47:19 +0800
committerobscuren <geffobscura@gmail.com>2014-06-25 15:47:19 +0800
commit9dae1a17324df671bf2223ae80257a310cecfea5 (patch)
treee201c78d7658247a4c6bcf29384d020009db27ad
parent16e8fc7427115e67096c6056b2ad9401803fcb44 (diff)
downloaddexon-9dae1a17324df671bf2223ae80257a310cecfea5.tar
dexon-9dae1a17324df671bf2223ae80257a310cecfea5.tar.gz
dexon-9dae1a17324df671bf2223ae80257a310cecfea5.tar.bz2
dexon-9dae1a17324df671bf2223ae80257a310cecfea5.tar.lz
dexon-9dae1a17324df671bf2223ae80257a310cecfea5.tar.xz
dexon-9dae1a17324df671bf2223ae80257a310cecfea5.tar.zst
dexon-9dae1a17324df671bf2223ae80257a310cecfea5.zip
Removed BlockDo Method
-rw-r--r--ethereum.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/ethereum.go b/ethereum.go
index 77a7c92c7..a6cb78b1f 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -113,24 +113,6 @@ func New(caps Caps, usePnp bool) (*Ethereum, error) {
return ethereum, nil
}
-// Replay block
-func (self *Ethereum) BlockDo(hash []byte) error {
- block := self.blockChain.GetBlock(hash)
- if block == nil {
- return fmt.Errorf("unknown block %x", hash)
- }
-
- parent := self.blockChain.GetBlock(block.PrevHash)
-
- _, err := self.stateManager.ApplyDiff(parent.State(), parent, block)
- if err != nil {
- return err
- }
-
- return nil
-
-}
-
func (s *Ethereum) Reactor() *ethutil.ReactorEngine {
return s.reactor
}