Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 732 Lines • ▼ Show 20 Lines | bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats) { | ||||
return true; | return true; | ||||
} | } | ||||
////////////////////////////////////////////////////////////////////////////// | ////////////////////////////////////////////////////////////////////////////// | ||||
// | // | ||||
// mapOrphanTransactions | // mapOrphanTransactions | ||||
// | // | ||||
static void AddToCompactExtraTransactions(const CTransactionRef &tx) { | static void AddToCompactExtraTransactions(const CTransactionRef &tx) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | |||||
size_t max_extra_txn = gArgs.GetArg("-blockreconstructionextratxn", | size_t max_extra_txn = gArgs.GetArg("-blockreconstructionextratxn", | ||||
DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN); | DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN); | ||||
if (max_extra_txn <= 0) { | if (max_extra_txn <= 0) { | ||||
return; | return; | ||||
} | } | ||||
if (!vExtraTxnForCompact.size()) { | if (!vExtraTxnForCompact.size()) { | ||||
vExtraTxnForCompact.resize(max_extra_txn); | vExtraTxnForCompact.resize(max_extra_txn); | ||||
▲ Show 20 Lines • Show All 3,472 Lines • Show Last 20 Lines |