Skip to content
Permalink
Browse files

Revert "Disable bloom filtering by default."

This reverts commit 5efcb77.
  • Loading branch information
luke-jr committed Jan 14, 2020
1 parent a6e3b28 commit e4167f15f230fcd74a21b985c016b7c238f92146
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/net_processing.h
  2. +2 −2 test/functional/p2p_node_network_limited.py
@@ -19,7 +19,7 @@ static const unsigned int DEFAULT_MAX_ORPHAN_TRANSACTIONS = 100;
static const unsigned int DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN = 100;
/** Default for BIP61 (sending reject messages) */
static constexpr bool DEFAULT_ENABLE_BIP61{false};
static const bool DEFAULT_PEERBLOOMFILTERS = false;
static const bool DEFAULT_PEERBLOOMFILTERS = true;
static const bool DEFAULT_PEERCFILTERS = false;

extern bool g_need_peercfilters;
@@ -8,7 +8,7 @@
and that it responds to getdata requests for blocks correctly:
- send a block within 288 + 2 of the tip
- disconnect peers who request blocks older than that."""
from test_framework.messages import CInv, msg_getdata, msg_verack, NODE_NETWORK_LIMITED, NODE_WITNESS
from test_framework.messages import CInv, msg_getdata, msg_verack, NODE_BLOOM, NODE_NETWORK_LIMITED, NODE_WITNESS
from test_framework.mininode import P2PInterface, mininode_lock
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import (
@@ -55,7 +55,7 @@ def setup_network(self):
def run_test(self):
node = self.nodes[0].add_p2p_connection(P2PIgnoreInv())

expected_services = NODE_WITNESS | NODE_NETWORK_LIMITED
expected_services = NODE_BLOOM | NODE_WITNESS | NODE_NETWORK_LIMITED

self.log.info("Check that node has signalled expected services.")
assert_equal(node.nServices, expected_services)

0 comments on commit e4167f1

Please sign in to comment.
You can’t perform that action at this time.