add TD encoding for mined block for newBlockMsg

This commit is contained in:
zelig 2015-01-05 05:33:42 +00:00
parent e39273ef50
commit 81f8372611

View file

@ -310,7 +310,7 @@ func (self *Ethereum) blockBroadcastLoop() {
for obj := range self.blockSub.Chan() {
switch ev := obj.(type) {
case core.NewMinedBlockEvent:
self.net.Broadcast("eth", NewBlockMsg, ev.Block.RlpData())
self.net.Broadcast("eth", NewBlockMsg, ev.Block.RlpData(), ev.Block.Td)
}
}
}