Fixed competing block method

This commit is contained in:
obscuren
2014-05-21 11:42:20 +02:00
parent 734b2e4cf7
commit cbf221f6b7
3 changed files with 16 additions and 5 deletions

View File

@@ -335,8 +335,8 @@ func (p *Peer) HandleInbound() {
block = ethchain.NewBlockFromRlpValue(msg.Data.Get(i))
//p.ethereum.StateManager().PrepareDefault(block)
state := p.ethereum.StateManager().CurrentState()
err = p.ethereum.StateManager().ProcessBlock(state, block, false)
//state := p.ethereum.StateManager().CurrentState()
err = p.ethereum.StateManager().Process(block, false)
if err != nil {
if ethutil.Config.Debug {