Browse Source

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.
0.13
Suhas Daftuar 10 years ago
parent
commit
1cb2a00cb8
  1. 1
      qa/rpc-tests/getblocktemplate_proposals.py

1
qa/rpc-tests/getblocktemplate_proposals.py

@ -95,6 +95,7 @@ class GetBlockTemplateProposalTest(BitcoinTestFramework):
def run_test(self): def run_test(self):
node = self.nodes[0] node = self.nodes[0]
node.setgenerate(True, 1) # Mine a block to leave initial block download
tmpl = node.getblocktemplate() tmpl = node.getblocktemplate()
if 'coinbasetxn' not in tmpl: if 'coinbasetxn' not in tmpl:
rawcoinbase = encodeUNum(tmpl['height']) rawcoinbase = encodeUNum(tmpl['height'])

Loading…
Cancel
Save