Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 1,435 Lines • ▼ Show 20 Lines | scheduler.scheduleEvery( | ||||
std::chrono::seconds{EXTRA_PEER_CHECK_INTERVAL}); | std::chrono::seconds{EXTRA_PEER_CHECK_INTERVAL}); | ||||
} | } | ||||
/** | /** | ||||
* Evict orphan txn pool entries (EraseOrphanTx) based on a newly connected | * Evict orphan txn pool entries (EraseOrphanTx) based on a newly connected | ||||
* block. Also save the time of the last tip update. | * block. Also save the time of the last tip update. | ||||
*/ | */ | ||||
void PeerLogicValidation::BlockConnected( | void PeerLogicValidation::BlockConnected( | ||||
const std::shared_ptr<const CBlock> &pblock, const CBlockIndex *pindex, | const std::shared_ptr<const CBlock> &pblock, const CBlockIndex *pindex) { | ||||
const std::vector<CTransactionRef> &vtxConflicted) { | |||||
{ | { | ||||
LOCK(g_cs_orphans); | LOCK(g_cs_orphans); | ||||
std::vector<TxId> vOrphanErase; | std::vector<TxId> vOrphanErase; | ||||
for (const CTransactionRef &ptx : pblock->vtx) { | for (const CTransactionRef &ptx : pblock->vtx) { | ||||
const CTransaction &tx = *ptx; | const CTransaction &tx = *ptx; | ||||
▲ Show 20 Lines • Show All 3,964 Lines • Show Last 20 Lines |