aboutsummaryrefslogtreecommitdiff
path: root/test/functional/p2p_addrfetch.py
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-09-19 14:11:09 +0200
committerJon Atack <jon@atack.com>2021-09-19 14:20:48 +0200
commitb69a106bcd8ddefdb810df6ebb3625c430197e04 (patch)
treec24d087588d9905e1a14ce769326b916019cf3c3 /test/functional/p2p_addrfetch.py
parentde2af19dc8e8c848afbc4b43b9b4092fe263364f (diff)
downloadbitcoin-b69a106bcd8ddefdb810df6ebb3625c430197e04.tar.xz
test: use test_framework.p2p P2P_SERVICES in functional tests
Diffstat (limited to 'test/functional/p2p_addrfetch.py')
-rwxr-xr-xtest/functional/p2p_addrfetch.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/functional/p2p_addrfetch.py b/test/functional/p2p_addrfetch.py
index 2a0f6432a9..25efd50040 100755
--- a/test/functional/p2p_addrfetch.py
+++ b/test/functional/p2p_addrfetch.py
@@ -8,14 +8,21 @@ Test p2p addr-fetch connections
import time
-from test_framework.messages import msg_addr, CAddress, NODE_NETWORK, NODE_WITNESS
-from test_framework.p2p import P2PInterface, p2p_lock
+from test_framework.messages import (
+ CAddress,
+ msg_addr,
+)
+from test_framework.p2p import (
+ P2PInterface,
+ p2p_lock,
+ P2P_SERVICES,
+)
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import assert_equal
ADDR = CAddress()
ADDR.time = int(time.time())
-ADDR.nServices = NODE_NETWORK | NODE_WITNESS
+ADDR.nServices = P2P_SERVICES
ADDR.ip = "192.0.0.8"
ADDR.port = 18444