[qa] Use correct python index slices in example test
This commit is contained in:
parent
8f464549c4
commit
9dcb6763fb
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ class ExampleTest(BitcoinTestFramework):
|
||||||
# sync_all() should not include node2, since we're not expecting it to
|
# sync_all() should not include node2, since we're not expecting it to
|
||||||
# sync.
|
# sync.
|
||||||
connect_nodes(self.nodes[0], 1)
|
connect_nodes(self.nodes[0], 1)
|
||||||
self.sync_all([self.nodes[0:1]])
|
self.sync_all([self.nodes[0:2]])
|
||||||
|
|
||||||
# Use setup_nodes() to customize the node start behaviour (for example if
|
# Use setup_nodes() to customize the node start behaviour (for example if
|
||||||
# you don't want to start all nodes at the start of the test).
|
# you don't want to start all nodes at the start of the test).
|
||||||
|
@ -135,7 +135,7 @@ class ExampleTest(BitcoinTestFramework):
|
||||||
|
|
||||||
# Generating a block on one of the nodes will get us out of IBD
|
# Generating a block on one of the nodes will get us out of IBD
|
||||||
blocks = [int(self.nodes[0].generate(nblocks=1)[0], 16)]
|
blocks = [int(self.nodes[0].generate(nblocks=1)[0], 16)]
|
||||||
self.sync_all([self.nodes[0:1]])
|
self.sync_all([self.nodes[0:2]])
|
||||||
|
|
||||||
# Notice above how we called an RPC by calling a method with the same
|
# Notice above how we called an RPC by calling a method with the same
|
||||||
# name on the node object. Notice also how we used a keyword argument
|
# name on the node object. Notice also how we used a keyword argument
|
||||||
|
|
Loading…
Reference in a new issue