merge bitcoin#28849: fix node index bug when comparing peerinfo

This commit is contained in:
Kittywhiskers Van Gogh 2023-11-10 16:25:18 -05:00
parent 400c9ddd67
commit 9371e2e9a4
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -48,7 +48,7 @@ class V2TransportTest(BitcoinTestFramework):
assert_equal(self.nodes[1].getblockcount(), 5) assert_equal(self.nodes[1].getblockcount(), 5)
# verify there is a v2 connection between node 0 and 1 # verify there is a v2 connection between node 0 and 1
node_0_info = self.nodes[0].getpeerinfo() node_0_info = self.nodes[0].getpeerinfo()
node_1_info = self.nodes[0].getpeerinfo() node_1_info = self.nodes[1].getpeerinfo()
assert_equal(len(node_0_info), 1) assert_equal(len(node_0_info), 1)
assert_equal(len(node_1_info), 1) assert_equal(len(node_1_info), 1)
assert_equal(node_0_info[0]["transport_protocol_type"], "v2") assert_equal(node_0_info[0]["transport_protocol_type"], "v2")