aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-04-11 16:39:37 -0400
committerJohn Newbery <john@johnnewbery.com>2017-06-27 15:51:37 +0100
commit9bf0d80ab07ede52629960b2478beff55401a51b (patch)
treed1b7d719b5491ed4a97d45174e894bbce38cf8a1 /test
parent82dc59706e3cf0184083ddc10a25674608235f48 (diff)
downloadbitcoin-9bf0d80ab07ede52629960b2478beff55401a51b.tar.xz
[tests] run successful test in getblocktemplate first
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/getblocktemplate_proposals.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/getblocktemplate_proposals.py b/test/functional/getblocktemplate_proposals.py
index a65d14ce06..777b20212c 100755
--- a/test/functional/getblocktemplate_proposals.py
+++ b/test/functional/getblocktemplate_proposals.py
@@ -50,6 +50,9 @@ class GetBlockTemplateProposalTest(BitcoinTestFramework):
block.nNonce = 0
block.vtx = [coinbase_tx]
+ self.log.info("getblocktemplate: Test valid block")
+ assert_template(node, block, None)
+
self.log.info("getblocktemplate: Test bad input hash for coinbase transaction")
bad_block = copy.deepcopy(block)
bad_block.vtx[0].vin[0].prevout.hash += 1
@@ -104,9 +107,6 @@ class GetBlockTemplateProposalTest(BitcoinTestFramework):
bad_block.nTime = 0
assert_template(node, bad_block, 'time-too-old')
- self.log.info("getblocktemplate: Test valid block")
- assert_template(node, block, None)
-
self.log.info("getblocktemplate: Test not best block")
bad_block = copy.deepcopy(block)
bad_block.hashPrevBlock = 123