mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
Merge bitcoin/bitcoin#28849: test: fix node index bug when comparing peerinfo
22e38080ea
test: fix node index bug when comparing peerinfo (Kashif Smith) Pull request description: fix node index bug when comparing peerinfo in test/functional/p2p_v2_transport.py ACKs for top commit: theStack: ACK22e38080ea
mzumsande: ACK22e38080ea
, good find! Tree-SHA512: 9ee336eea999c61fb9f8704cc6361cf289fd3a361ab636c97695121ca3bcb8b38fbbfb55484311c17faa76d02065d91d190c489e1f3defd628216bf80a93f1fe
This commit is contained in:
commit
8243762700
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue