diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-20 23:21:41 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-28 15:18:14 +0200 |
commit | 8239794360587d46895150b90172c36fec16d13f (patch) | |
tree | 3a2db386caba9d0af7fdf6f6879a880839c82106 /test/functional/preciousblock.py | |
parent | 2e6080bbf31d5cc2e38e8a7b436e8ce1857e589b (diff) | |
download | bitcoin-8239794360587d46895150b90172c36fec16d13f.tar.xz |
Use the variable name _ for unused return values
Diffstat (limited to 'test/functional/preciousblock.py')
-rwxr-xr-x | test/functional/preciousblock.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/preciousblock.py b/test/functional/preciousblock.py index 04b41e76ba..a69b8fb20c 100755 --- a/test/functional/preciousblock.py +++ b/test/functional/preciousblock.py @@ -47,16 +47,16 @@ class PreciousTest(BitcoinTestFramework): self.log.info("Ensure submitblock can in principle reorg to a competing chain") self.nodes[0].generate(1) assert_equal(self.nodes[0].getblockcount(), 1) - (hashY, hashZ) = self.nodes[1].generate(2) + hashZ = self.nodes[1].generate(2)[-1] assert_equal(self.nodes[1].getblockcount(), 2) node_sync_via_rpc(self.nodes[0:3]) assert_equal(self.nodes[0].getbestblockhash(), hashZ) self.log.info("Mine blocks A-B-C on Node 0") - (hashA, hashB, hashC) = self.nodes[0].generate(3) + hashC = self.nodes[0].generate(3)[-1] assert_equal(self.nodes[0].getblockcount(), 5) self.log.info("Mine competing blocks E-F-G on Node 1") - (hashE, hashF, hashG) = self.nodes[1].generate(3) + hashG = self.nodes[1].generate(3)[-1] assert_equal(self.nodes[1].getblockcount(), 5) assert(hashC != hashG) self.log.info("Connect nodes and check no reorg occurs") |