Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 1,736 Lines • ▼ Show 20 Lines | switch (inv.type) { | ||||
LOCK(g_cs_recent_confirmed_transactions); | LOCK(g_cs_recent_confirmed_transactions); | ||||
if (g_recent_confirmed_transactions->contains(txid)) { | if (g_recent_confirmed_transactions->contains(txid)) { | ||||
return true; | return true; | ||||
} | } | ||||
} | } | ||||
return recentRejects->contains(txid) || mempool.exists(txid); | return recentRejects->contains(txid) || mempool.exists(txid); | ||||
} | } | ||||
case MSG_AVA_PROOF: { | |||||
if (!gArgs.GetBoolArg("-enableavalanche", | |||||
AVALANCHE_DEFAULT_ENABLED)) { | |||||
// We are not interested, just say we already got it | |||||
return true; | |||||
} | |||||
const avalanche::ProofId proofid(inv.hash); | |||||
return g_avalanche->getProof(proofid) != nullptr; | |||||
} | |||||
case MSG_BLOCK: | case MSG_BLOCK: | ||||
return LookupBlockIndex(BlockHash(inv.hash)) != nullptr; | return LookupBlockIndex(BlockHash(inv.hash)) != nullptr; | ||||
} | } | ||||
// Don't know what it is, just say we already got one | // Don't know what it is, just say we already got one | ||||
return true; | return true; | ||||
} | } | ||||
void RelayTransaction(const TxId &txid, const CConnman &connman) { | void RelayTransaction(const TxId &txid, const CConnman &connman) { | ||||
▲ Show 20 Lines • Show All 3,842 Lines • Show Last 20 Lines |