mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
add TD encoding for mined block for newBlockMsg
This commit is contained in:
parent
e39273ef50
commit
81f8372611
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue