Commit 9dae1a17 authored by obscuren's avatar obscuren

Removed BlockDo Method

parent 16e8fc74
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment