Skip to content

Commit cc961c2

Browse files
theStackmzumsande
authored andcommitted
test: enable v2 transport for p2p_node_network_limited.py
1 parent 3598a1b commit cc961c2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

test/functional/p2p_node_network_limited.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
and that it responds to getdata requests for blocks correctly:
99
- send a block within 288 + 2 of the tip
1010
- disconnect peers who request blocks older than that."""
11-
from test_framework.messages import CInv, MSG_BLOCK, msg_getdata, msg_verack, NODE_NETWORK_LIMITED, NODE_WITNESS
11+
from test_framework.messages import (
12+
CInv,
13+
MSG_BLOCK,
14+
NODE_NETWORK_LIMITED,
15+
NODE_P2P_V2,
16+
NODE_WITNESS,
17+
msg_getdata,
18+
msg_verack,
19+
)
1220
from test_framework.p2p import P2PInterface
1321
from test_framework.test_framework import BitcoinTestFramework
1422
from test_framework.util import (
@@ -50,6 +58,8 @@ def run_test(self):
5058
node = self.nodes[0].add_p2p_connection(P2PIgnoreInv())
5159

5260
expected_services = NODE_WITNESS | NODE_NETWORK_LIMITED
61+
if self.options.v2transport:
62+
expected_services |= NODE_P2P_V2
5363

5464
self.log.info("Check that node has signalled expected services.")
5565
assert_equal(node.nServices, expected_services)

test/functional/test_runner.py

+1
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@
365365
'wallet_orphanedreward.py',
366366
'wallet_timelock.py',
367367
'p2p_node_network_limited.py',
368+
'p2p_node_network_limited.py --v2transport',
368369
'p2p_permissions.py',
369370
'feature_blocksdir.py',
370371
'wallet_startup.py',

0 commit comments

Comments
 (0)