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

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

File metadata
index 631ecb4c00e20c81b341b1dab955a6c83cc8b6a8..5fde10f9a85c336d8334fcb7891b53a2e0764024 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. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

test/functional/p2p_addr_selfannouncement.py CHANGED
@@ -14,6 +14,7 @@ import time
14
 
15
  from test_framework.messages import (
16
  CAddress,
 
17
  from_hex,
18
  msg_headers,
19
  CBlockHeader,
@@ -106,7 +107,7 @@ class AddrSelfAnnouncementTest(BitcoinTestFramework):
106
  self.nodes[0].setmocktime(int(time.time()))
107
 
108
  expected = CAddress()
109
- expected.nServices = int(netinfo["localservices"], 16)
110
  expected.ip = IP_TO_ANNOUNCE
111
  expected.port = port
112
  expected.time = self.nodes[0].mocktime
 
14
 
15
  from test_framework.messages import (
16
  CAddress,
17
+ NODE_BLOOM,
18
  from_hex,
19
  msg_headers,
20
  CBlockHeader,
 
107
  self.nodes[0].setmocktime(int(time.time()))
108
 
109
  expected = CAddress()
110
+ expected.nServices = int(netinfo["localservices"], 16) | NODE_BLOOM # Per-peer loopback service.
111
  expected.ip = IP_TO_ANNOUNCE
112
  expected.port = port
113
  expected.time = self.nodes[0].mocktime