mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 19:16:56 +01:00
Previously, we would set the state of the syncer after sending the msg, which has the following flow, 1. In state `queryNewChannels`, we send the msg `QueryShortChanIDs`. 2. Once the msg is sent, we change to state `waitingQueryChanReply`. But there's no guarantee the remote won't reply back inbetween the two step. When that happens, our syncer would still be in state `queryNewChannels`, causing the following error, ``` [ERR] DISC gossiper.go:873: Process query msg from peer [Alice] got unexpected msg *lnwire.ReplyShortChanIDsEnd received in state queryNewChannels ``` To fix it, we now make sure the state is updated before sending the msg. |
||
---|---|---|
.. | ||
ban.go | ||
ban_test.go | ||
bootstrapper.go | ||
chan_series.go | ||
gossiper.go | ||
gossiper_test.go | ||
log.go | ||
message_store.go | ||
message_store_test.go | ||
mock_test.go | ||
reliable_sender.go | ||
reliable_sender_test.go | ||
sync_manager.go | ||
sync_manager_test.go | ||
syncer.go | ||
syncer_test.go | ||
validation_barrier.go | ||
validation_barrier_test.go |