Skip to content

Commit 9bf0d80

Browse files
committed
[tests] run successful test in getblocktemplate first
1 parent 82dc597 commit 9bf0d80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/functional/getblocktemplate_proposals.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ def run_test(self):
5050
block.nNonce = 0
5151
block.vtx = [coinbase_tx]
5252

53+
self.log.info("getblocktemplate: Test valid block")
54+
assert_template(node, block, None)
55+
5356
self.log.info("getblocktemplate: Test bad input hash for coinbase transaction")
5457
bad_block = copy.deepcopy(block)
5558
bad_block.vtx[0].vin[0].prevout.hash += 1
@@ -104,9 +107,6 @@ def run_test(self):
104107
bad_block.nTime = 0
105108
assert_template(node, bad_block, 'time-too-old')
106109

107-
self.log.info("getblocktemplate: Test valid block")
108-
assert_template(node, block, None)
109-
110110
self.log.info("getblocktemplate: Test not best block")
111111
bad_block = copy.deepcopy(block)
112112
bad_block.hashPrevBlock = 123

0 commit comments

Comments
 (0)