aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2019-06-05 11:02:35 -0400
committerMatt Corallo <git@bluematt.me>2019-06-06 10:01:13 -0400
commit5efcb772838e404ca5757818d5548efcb872724b (patch)
tree1879493ddc8b330b0fbc0373cd0ee89899375a57 /src/validation.h
parent52ec4c64e89f478cd2134dbf25f5987d39e9b8bc (diff)
downloadbitcoin-5efcb772838e404ca5757818d5548efcb872724b.tar.xz
Disable bloom filtering by default.
BIP 37 bloom filters have been well-known to be a significant DoS target for some time. However, in order to provide continuity for SPV clients relying on it, the NODE_BLOOM service flag was added, and left as a default, to ensure sufficient nodes exist with such a flag. NODE_BLOOM is, at this point, well-established and, as long as there exist 0.18 nodes with default config (which I'd anticipate will be true for many years), will be available from some peers. By that time, the continued slowdown of BIP 37-based filtering will likely have rendered it useless (though this is already largely the case). Further, BIP 37 was deliberately never updated to support witness-based filtering as newer wallets are expected to migrate to some yet-to-be-network-exposed filters.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.h b/src/validation.h
index 963439d35b..31233aac19 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -127,7 +127,7 @@ static const unsigned int MAX_BLOCKS_TO_ANNOUNCE = 8;
/** Maximum number of unconnecting headers announcements before DoS score */
static const int MAX_UNCONNECTING_HEADERS = 10;
-static const bool DEFAULT_PEERBLOOMFILTERS = true;
+static const bool DEFAULT_PEERBLOOMFILTERS = false;
/** Default for -stopatheight */
static const int DEFAULT_STOPATHEIGHT = 0;