mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 12:46:44 +00:00
fix new block broadcast - was wrong subscription
This commit is contained in:
parent
eb7db451ba
commit
de2089158a
1 changed files with 1 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ func (self *Ethereum) txBroadcastLoop() {
|
||||||
|
|
||||||
func (self *Ethereum) blockBroadcastLoop() {
|
func (self *Ethereum) blockBroadcastLoop() {
|
||||||
// automatically stops if unsubscribe
|
// automatically stops if unsubscribe
|
||||||
for obj := range self.txSub.Chan() {
|
for obj := range self.blockSub.Chan() {
|
||||||
switch ev := obj.(type) {
|
switch ev := obj.(type) {
|
||||||
case core.NewMinedBlockEvent:
|
case core.NewMinedBlockEvent:
|
||||||
self.net.Broadcast("eth", NewBlockMsg, ev.Block.RlpData())
|
self.net.Broadcast("eth", NewBlockMsg, ev.Block.RlpData())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue