diff options
author | Neha Narula <narula@gmail.com> | 2020-09-13 19:07:49 -0400 |
---|---|---|
committer | Neha Narula <narula@gmail.com> | 2020-10-13 17:38:38 -0400 |
commit | 9c47cb29f9f525ee58acc629825a97075156d764 (patch) | |
tree | 3b11d9d10e8ae9020a2e6304f77d983bac1f6418 /src/net_processing.cpp | |
parent | ec0453cd57736df33e9f50c004d88bea10428ad5 (diff) | |
download | bitcoin-9c47cb29f9f525ee58acc629825a97075156d764.tar.xz |
[Rename only] Rename orphan_work_set to m_orphan_work_set.
This helps distinguish the member from any local variables.
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 9ad3f5d6f4..7b5805c93e 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -3052,7 +3052,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat auto it_by_prev = mapOrphanTransactionsByPrev.find(COutPoint(txid, i)); if (it_by_prev != mapOrphanTransactionsByPrev.end()) { for (const auto& elem : it_by_prev->second) { - pfrom.orphan_work_set.insert(elem->first); + pfrom.m_orphan_work_set.insert(elem->first); } } } @@ -3069,7 +3069,7 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat } // Recursively process any orphan transactions that depended on this one - ProcessOrphanTx(pfrom.orphan_work_set); + ProcessOrphanTx(pfrom.m_orphan_work_set); } else if (state.GetResult() == TxValidationResult::TX_MISSING_INPUTS) { @@ -3868,9 +3868,9 @@ bool PeerManager::ProcessMessages(CNode* pfrom, std::atomic<bool>& interruptMsgP if (!pfrom->vRecvGetData.empty()) ProcessGetData(*pfrom, m_chainparams, m_connman, m_mempool, interruptMsgProc); - if (!pfrom->orphan_work_set.empty()) { + if (!pfrom->m_orphan_work_set.empty()) { LOCK2(cs_main, g_cs_orphans); - ProcessOrphanTx(pfrom->orphan_work_set); + ProcessOrphanTx(pfrom->m_orphan_work_set); } if (pfrom->fDisconnect) @@ -3879,7 +3879,7 @@ bool PeerManager::ProcessMessages(CNode* pfrom, std::atomic<bool>& interruptMsgP // this maintains the order of responses // and prevents vRecvGetData to grow unbounded if (!pfrom->vRecvGetData.empty()) return true; - if (!pfrom->orphan_work_set.empty()) return true; + if (!pfrom->m_orphan_work_set.empty()) return true; // Don't bother if send buffer is too full to respond anyway if (pfrom->fPauseSend) |