mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
refactor: Rename local variable to distinguish it from type alias
The `txiter` type alias is declared in the `txmempool.h`.
This commit is contained in:
parent
9e59d21fbe
commit
1984db1d50
1 changed files with 3 additions and 3 deletions
|
@ -2291,9 +2291,9 @@ void PeerManagerImpl::ProcessGetData(CNode& pfrom, Peer& peer, const std::atomic
|
|||
std::vector<uint256> parent_ids_to_add;
|
||||
{
|
||||
LOCK(m_mempool.cs);
|
||||
auto txiter = m_mempool.GetIter(tx->GetHash());
|
||||
if (txiter) {
|
||||
const CTxMemPoolEntry::Parents& parents = (*txiter)->GetMemPoolParentsConst();
|
||||
auto tx_iter = m_mempool.GetIter(tx->GetHash());
|
||||
if (tx_iter) {
|
||||
const CTxMemPoolEntry::Parents& parents = (*tx_iter)->GetMemPoolParentsConst();
|
||||
parent_ids_to_add.reserve(parents.size());
|
||||
for (const CTxMemPoolEntry& parent : parents) {
|
||||
if (parent.GetTime() > now - UNCONDITIONAL_RELAY_DELAY) {
|
||||
|
|
Loading…
Add table
Reference in a new issue