Skip to content

Commit ac7e03e

Browse files
Enable BIP157 block filters index and serving by default
This change enables compact block filters (BIP157) functionality by default: - Sets DEFAULT_BLOCKFILTERINDEX to "basic" instead of "0" - Sets DEFAULT_PEERBLOCKFILTERS to true instead of false This improves privacy for light clients and enables better pruned node support.
1 parent 4653ea3 commit ac7e03e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net_processing.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS_SIZE = 10; // this all
3333
/** Default number of orphan+recently-replaced txn to keep around for block reconstruction */
3434
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100;
3535
static const bool DEFAULT_PEERBLOOMFILTERS = true;
36-
static const bool DEFAULT_PEERBLOCKFILTERS = false;
36+
static const bool DEFAULT_PEERBLOCKFILTERS = true;
3737
/** Threshold for marking a node to be discouraged, e.g. disconnected and added to the discouragement filter. */
3838
static const int DISCOURAGEMENT_THRESHOLD{100};
3939

src/validation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ static const int64_t DEFAULT_MAX_TIP_AGE = 6 * 60 * 60; // ~144 blocks behind ->
7979
static const bool DEFAULT_CHECKPOINTS_ENABLED = true;
8080
static const bool DEFAULT_TXINDEX = true;
8181
static constexpr bool DEFAULT_COINSTATSINDEX{false};
82-
static const char* const DEFAULT_BLOCKFILTERINDEX = "0";
82+
static const char* const DEFAULT_BLOCKFILTERINDEX = "basic";
8383
/** Default for -persistmempool */
8484
static const bool DEFAULT_PERSIST_MEMPOOL = true;
8585
/** Default for -syncmempool */

0 commit comments

Comments
 (0)