Skip to content

Commit 1984db1

Browse files
committed
refactor: Rename local variable to distinguish it from type alias
The `txiter` type alias is declared in the `txmempool.h`.
1 parent 9e59d21 commit 1984db1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/net_processing.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,9 +2291,9 @@ void PeerManagerImpl::ProcessGetData(CNode& pfrom, Peer& peer, const std::atomic
22912291
std::vector<uint256> parent_ids_to_add;
22922292
{
22932293
LOCK(m_mempool.cs);
2294-
auto txiter = m_mempool.GetIter(tx->GetHash());
2295-
if (txiter) {
2296-
const CTxMemPoolEntry::Parents& parents = (*txiter)->GetMemPoolParentsConst();
2294+
auto tx_iter = m_mempool.GetIter(tx->GetHash());
2295+
if (tx_iter) {
2296+
const CTxMemPoolEntry::Parents& parents = (*tx_iter)->GetMemPoolParentsConst();
22972297
parent_ids_to_add.reserve(parents.size());
22982298
for (const CTxMemPoolEntry& parent : parents) {
22992299
if (parent.GetTime() > now - UNCONDITIONAL_RELAY_DELAY) {

0 commit comments

Comments
 (0)