Skip to content

Commit 8674281

Browse files
committed
test: use NODE_* constants instead of magic numbers
We just assigned `NODE_NETWORK | NODE_WITNESS` to `nServices` a few lines above. Use that for verifying correctness instead of `9`.
1 parent ba45f02 commit 8674281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/p2p_addrv2_relay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self):
3636

3737
def on_addrv2(self, message):
3838
for addr in message.addrs:
39-
assert_equal(addr.nServices, 9)
39+
assert_equal(addr.nServices, NODE_NETWORK | NODE_WITNESS)
4040
assert addr.ip.startswith('123.123.123.')
4141
assert (8333 <= addr.port < 8343)
4242
self.addrv2_received_and_checked = True

0 commit comments

Comments
 (0)