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