New block message

This commit is contained in:
obscuren
2014-10-08 12:29:49 +02:00
parent 9d86a49a73
commit 4de3ad1712
5 changed files with 23 additions and 10 deletions

View File

@ -538,7 +538,10 @@ func (p *Peer) HandleInbound() {
p.lastBlockReceived = time.Now()
}
case ethwire.MsgNewBlockTy:
p.ethereum.blockPool.AddNew(ethchain.NewBlockFromRlpValue(msg.Data), p)
}
}
}
}