mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 00:39:26 +00:00
eth: fixed proper BroadcastBlock for mined blocks
This commit is contained in:
parent
f1ae3dc4aa
commit
a6c0a75f9a
1 changed files with 1 additions and 1 deletions
|
|
@ -467,7 +467,7 @@ func (self *Ethereum) minedBroadcastLoop() {
|
||||||
for obj := range self.minedBlockSub.Chan() {
|
for obj := range self.minedBlockSub.Chan() {
|
||||||
switch ev := obj.(type) {
|
switch ev := obj.(type) {
|
||||||
case core.NewMinedBlockEvent:
|
case core.NewMinedBlockEvent:
|
||||||
self.protocolManager.BroadcastBlock(ev.Block)
|
self.protocolManager.BroadcastBlock(ev.Block.Hash(), ev.Block)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue