mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
doc: document PeerManager::Options members
This commit is contained in:
parent
e35fb7bc48
commit
aa89e04e07
1 changed files with 8 additions and 2 deletions
|
@ -18,7 +18,8 @@ class ChainstateManager;
|
|||
static constexpr bool DEFAULT_TXRECONCILIATION_ENABLE{false};
|
||||
/** Default for -maxorphantx, maximum number of orphan transactions kept in memory */
|
||||
static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
|
||||
/** Default number of orphan+recently-replaced txn to keep around for block reconstruction */
|
||||
/** Default number of non-mempool transactions to keep around for block reconstruction. Includes
|
||||
orphan, replaced, and rejected transactions. */
|
||||
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100;
|
||||
static const bool DEFAULT_PEERBLOOMFILTERS = false;
|
||||
static const bool DEFAULT_PEERBLOCKFILTERS = false;
|
||||
|
@ -46,11 +47,16 @@ class PeerManager : public CValidationInterface, public NetEventsInterface
|
|||
{
|
||||
public:
|
||||
struct Options {
|
||||
/** Whether this node is running in -blocksonly mode */
|
||||
//! Whether this node is running in -blocksonly mode
|
||||
bool ignore_incoming_txs{DEFAULT_BLOCKSONLY};
|
||||
//! Whether transaction reconciliation protocol is enabled
|
||||
bool reconcile_txs{DEFAULT_TXRECONCILIATION_ENABLE};
|
||||
//! Maximum number of orphan transactions kept in memory
|
||||
uint32_t max_orphan_txs{DEFAULT_MAX_ORPHAN_TRANSACTIONS};
|
||||
//! Number of non-mempool transactions to keep around for block reconstruction. Includes
|
||||
//! orphan, replaced, and rejected transactions.
|
||||
size_t max_extra_txs{DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN};
|
||||
//! Whether all P2P messages are captured to disk
|
||||
bool capture_messages{false};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue