mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Fix getblocktemplate_proposals test by mining one block
This triggers the tested node to no longer be in initial download, allowing the call to getblocktemplate() to succeed.
This commit is contained in:
parent
1c4e3f99f0
commit
1cb2a00cb8
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ class GetBlockTemplateProposalTest(BitcoinTestFramework):
|
|||
|
||||
def run_test(self):
|
||||
node = self.nodes[0]
|
||||
node.setgenerate(True, 1) # Mine a block to leave initial block download
|
||||
tmpl = node.getblocktemplate()
|
||||
if 'coinbasetxn' not in tmpl:
|
||||
rawcoinbase = encodeUNum(tmpl['height'])
|
||||
|
|
Loading…
Add table
Reference in a new issue