Merge pull request #3826 from arik-so/wrong_chain_error_fix

fix order in wrong chain error message
This commit is contained in:
Johan T. Halseth 2019-12-12 09:46:31 +01:00 committed by GitHub
commit c04ef68cc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -916,8 +916,8 @@ func (g *GossipSyncer) replyShortChanIDs(query *lnwire.QueryShortChanIDs) error
// different chain.
if g.cfg.chainHash != query.ChainHash {
log.Warnf("Remote peer requested QueryShortChanIDs for "+
"chain=%v, we're on chain=%v", g.cfg.chainHash,
query.ChainHash)
"chain=%v, we're on chain=%v", query.ChainHash,
g.cfg.chainHash)
return g.cfg.sendToPeerSync(&lnwire.ReplyShortChanIDsEnd{
ChainHash: query.ChainHash,