mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01: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;
|
std::vector<uint256> parent_ids_to_add;
|
||||||
{
|
{
|
||||||
LOCK(m_mempool.cs);
|
LOCK(m_mempool.cs);
|
||||||
auto txiter = m_mempool.GetIter(tx->GetHash());
|
auto tx_iter = m_mempool.GetIter(tx->GetHash());
|
||||||
if (txiter) {
|
if (tx_iter) {
|
||||||
const CTxMemPoolEntry::Parents& parents = (*txiter)->GetMemPoolParentsConst();
|
const CTxMemPoolEntry::Parents& parents = (*tx_iter)->GetMemPoolParentsConst();
|
||||||
parent_ids_to_add.reserve(parents.size());
|
parent_ids_to_add.reserve(parents.size());
|
||||||
for (const CTxMemPoolEntry& parent : parents) {
|
for (const CTxMemPoolEntry& parent : parents) {
|
||||||
if (parent.GetTime() > now - UNCONDITIONAL_RELAY_DELAY) {
|
if (parent.GetTime() > now - UNCONDITIONAL_RELAY_DELAY) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue