diff --git a/src/net_processing.cpp b/src/net_processing.cpp --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -3116,7 +3116,7 @@ } if (inv.IsMsgBlk()) { - bool fAlreadyHave = AlreadyHaveBlock(BlockHash(inv.hash)); + const bool fAlreadyHave = AlreadyHaveBlock(BlockHash(inv.hash)); LogPrint(BCLog::NET, "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom.GetId()); @@ -3134,7 +3134,7 @@ } } else { const TxId txid(inv.hash); - bool fAlreadyHave = AlreadyHaveTx(txid, m_mempool); + const bool fAlreadyHave = AlreadyHaveTx(txid, m_mempool); LogPrint(BCLog::NET, "got inv: %s %s peer=%d\n", inv.ToString(), fAlreadyHave ? "have" : "new", pfrom.GetId());