Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 5: [PATCH 05/17] feat(net): preserve Roots peer controls and health view on v31

test/functional/p2p_node_network_limited.py

Before: test/functional/p2p_node_network_limited.py · After: test/functional/p2p_node_network_limited.py

File metadata
index 8140823f58a079f25a3fa5650f009437e4baa103..73693dff18e741163191b3670d8dd18d8cd7bf3d 100755

Download original patch · Release notes

Diff rows 1–15 of 15. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

test/functional/p2p_node_network_limited.py CHANGED
@@ -11,6 +11,7 @@ and that it responds to getdata requests for blocks correctly:
11
11
  from test_framework.messages import (
12
12
  CInv,
13
13
  MSG_BLOCK,
14
+ NODE_BLOOM,
14
15
  NODE_NETWORK_LIMITED,
15
16
  NODE_P2P_V2,
16
17
  NODE_WITNESS,
@@ -123,7 +124,7 @@ class NodeNetworkLimitedTest(BitcoinTestFramework):
123
124
  expected_services |= NODE_P2P_V2
124
125
 
125
126
  self.log.info("Check that node has signalled expected services.")
126
- assert_equal(node.nServices, expected_services)
127
+ assert_equal(node.nServices, expected_services | NODE_BLOOM) # Implicit loopback bloom is per-peer only.
127
128
 
128
129
  self.log.info("Check that the localservices is as expected.")
129
130
  assert_equal(int(self.nodes[0].getnetworkinfo()['localservices'], 16), expected_services)