Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 2,225 Lines • ▼ Show 20 Lines | if (::ChainActive().Tip()->GetBlockHash() != hashRecentRejectsChainTip) { | ||||
// If the chain tip has changed previously rejected transactions | // If the chain tip has changed previously rejected transactions | ||||
// might be now valid, e.g. due to a nLockTime'd tx becoming | // might be now valid, e.g. due to a nLockTime'd tx becoming | ||||
// valid, or a double-spend. Reset the rejects filter and give | // valid, or a double-spend. Reset the rejects filter and give | ||||
// those txs a second chance. | // those txs a second chance. | ||||
hashRecentRejectsChainTip = ::ChainActive().Tip()->GetBlockHash(); | hashRecentRejectsChainTip = ::ChainActive().Tip()->GetBlockHash(); | ||||
recentRejects->reset(); | recentRejects->reset(); | ||||
} | } | ||||
{ | if (HaveOrphanTx(txid)) { | ||||
LOCK(g_cs_orphans); | |||||
if (mapOrphanTransactions.count(txid)) { | |||||
return true; | return true; | ||||
} | } | ||||
} | |||||
{ | { | ||||
LOCK(m_recent_confirmed_transactions_mutex); | LOCK(m_recent_confirmed_transactions_mutex); | ||||
if (m_recent_confirmed_transactions->contains(txid)) { | if (m_recent_confirmed_transactions->contains(txid)) { | ||||
return true; | return true; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 4,649 Lines • Show Last 20 Lines |