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_blocksonly.py

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

File metadata
index 6a251e6936b60c564269742e6f30af29a49c6811..375bdcda36a194673413a60b12447dfec476845e 100755

Download original patch · Release notes

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

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

test/functional/p2p_blocksonly.py CHANGED
@@ -54,10 +54,10 @@ class P2PBlocksOnly(BitcoinTestFramework):
54
  first_peer = self.nodes[0].add_p2p_connection(P2PInterface())
55
  second_peer = self.nodes[0].add_p2p_connection(P2PInterface())
56
  peer_1_info = self.nodes[0].getpeerinfo()[0]
57
- assert_equal(peer_1_info['permissions'], ['relay'])
58
  assert_equal(first_peer.relay, 1)
59
  peer_2_info = self.nodes[0].getpeerinfo()[1]
60
- assert_equal(peer_2_info['permissions'], ['relay'])
61
  assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True)
62
 
63
  self.log.info('Check that the tx from first_peer with relay-permission is relayed to others (ie.second_peer)')
 
54
  first_peer = self.nodes[0].add_p2p_connection(P2PInterface())
55
  second_peer = self.nodes[0].add_p2p_connection(P2PInterface())
56
  peer_1_info = self.nodes[0].getpeerinfo()[0]
57
+ assert_equal(peer_1_info['permissions'], ['bloomfilter', 'relay'])
58
  assert_equal(first_peer.relay, 1)
59
  peer_2_info = self.nodes[0].getpeerinfo()[1]
60
+ assert_equal(peer_2_info['permissions'], ['bloomfilter', 'relay'])
61
  assert_equal(self.nodes[0].testmempoolaccept([tx_hex])[0]['allowed'], True)
62
 
63
  self.log.info('Check that the tx from first_peer with relay-permission is relayed to others (ie.second_peer)')