Merge pull request #2916 from cfromknecht/split-syncer-query-reply

discovery: make gossip replies synchronous
This commit is contained in:
Olaoluwa Osuntokun
2019-04-29 17:40:13 -07:00
committed by GitHub
5 changed files with 350 additions and 564 deletions

View File

@@ -386,6 +386,9 @@ func (m *SyncManager) createGossipSyncer(peer lnpeer.Peer) *GossipSyncer {
sendToPeer: func(msgs ...lnwire.Message) error {
return peer.SendMessageLazy(false, msgs...)
},
sendToPeerSync: func(msgs ...lnwire.Message) error {
return peer.SendMessageLazy(true, msgs...)
},
})
// Gossip syncers are initialized by default in a PassiveSync type