mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
Merge bitcoin/bitcoin#26624: refactor: Rename local variable to distinguish it from type alias
1984db1d50
refactor: Rename local variable to distinguish it from type alias (Hennadii Stepanov) Pull request description: The `txiter` type alias is declared in the `txmempool.h`:9e59d21fbe/src/txmempool.h (L406)
ACKs for top commit: stickies-v: ACK1984db1d5
vasild: ACK1984db1d50
jarolrod: ACK1984db1d50
Tree-SHA512: 127bfb62627e2d79d8cdb0bd0ac11b3737568c3631b54b2d1e37984f673a1f60edf7bc102a269f7eb40e4bb124b910b924a89475c6a6ea978b2171219fa30685
This commit is contained in:
commit
8b796866b4
1 changed files with 3 additions and 3 deletions
|
@ -2298,9 +2298,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…
Reference in a new issue