aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2014-06-25 23:58:07 +0800
committerzelig <viktor.tron@gmail.com>2014-06-25 23:58:07 +0800
commit98f1ee9442d3b3d744e25dbddd9b54dc60180ad1 (patch)
treef05f7be355838fd104f227714082bd9ea89cb591 /ethereum.go
parenta02edf7a9306c9c0b2f0208152347b47f1a4e689 (diff)
parentb0dc50c2a0e25bf88901f3dd481f14bc3375adc5 (diff)
downloaddexon-98f1ee9442d3b3d744e25dbddd9b54dc60180ad1.tar.gz
dexon-98f1ee9442d3b3d744e25dbddd9b54dc60180ad1.tar.zst
dexon-98f1ee9442d3b3d744e25dbddd9b54dc60180ad1.zip
merge upstream
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/ethereum.go b/ethereum.go
index 0dde28e51..1de671712 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -115,24 +115,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
}