diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-17 20:07:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-17 20:07:52 +0800 |
commit | 8730dfdcc2e2b40410a57385e4864d15f2f0336b (patch) | |
tree | eabf6400bc78b1796317fbb7cef642a7f2da2306 /peer.go | |
parent | 88686cbed27ad2e7d5c111051e06c270b1b352a3 (diff) | |
download | dexon-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar dexon-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.gz dexon-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.bz2 dexon-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.lz dexon-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.xz dexon-8730dfdcc2e2b40410a57385e4864d15f2f0336b.tar.zst dexon-8730dfdcc2e2b40410a57385e4864d15f2f0336b.zip |
Changed how changes are being applied to states
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -331,8 +331,9 @@ func (p *Peer) HandleInbound() { for i := msg.Data.Len() - 1; i >= 0; i-- { block = ethchain.NewBlockFromRlpValue(msg.Data.Get(i)) - p.ethereum.StateManager().PrepareDefault(block) - err = p.ethereum.StateManager().ProcessBlock(block, false) + //p.ethereum.StateManager().PrepareDefault(block) + state := p.ethereum.StateManager().CurrentState() + err = p.ethereum.StateManager().ProcessBlock(state, block, false) if err != nil { if ethutil.Config.Debug { |