mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
refactor: Don't redundantly define porphanTx in net_processing.cpp
net_processing.cpp:3042:28: error: declaration shadows a local variable [-Werror,-Wshadow] while (CTransactionRef porphanTx = m_orphanage.GetTxToReconsider(peer.m_id)) { ^ net_processing.cpp:3040:21: note: previous declaration is here CTransactionRef porphanTx = nullptr; ^
This commit is contained in:
parent
c17de5429e
commit
f953bf4d99
1 changed files with 0 additions and 2 deletions
|
@ -3069,8 +3069,6 @@ bool PeerManagerImpl::ProcessOrphanTx(Peer& peer)
|
|||
AssertLockHeld(g_msgproc_mutex);
|
||||
LOCK2(::cs_main, m_tx_download_mutex);
|
||||
|
||||
CTransactionRef porphanTx = nullptr;
|
||||
|
||||
while (CTransactionRef porphanTx = m_txdownloadman.GetTxToReconsider(peer.m_id)) {
|
||||
const MempoolAcceptResult result = m_chainman.ProcessTransaction(porphanTx);
|
||||
const TxValidationState& state = result.m_state;
|
||||
|
|
Loading…
Add table
Reference in a new issue