mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-07 16:47:07 +00:00
compiles after NewBroadcast change
This commit is contained in:
@@ -277,7 +277,11 @@ func (r *Reactor) Sync(stateProvider StateProvider, discoveryTime time.Duration)
|
||||
hook := func() {
|
||||
r.Logger.Debug("Requesting snapshots from known peers")
|
||||
// Request snapshots from all currently connected peers
|
||||
r.Switch.Broadcast(SnapshotChannel, mustEncodeMsg(&ssproto.SnapshotsRequest{}))
|
||||
e := p2p.Envelope{
|
||||
ChannelID: SnapshotChannel,
|
||||
Message: toWrappedProto(&ssproto.SnapshotsRequest{}),
|
||||
}
|
||||
r.Switch.NewBroadcast(e)
|
||||
}
|
||||
|
||||
hook()
|
||||
|
||||
Reference in New Issue
Block a user