diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2015-02-04 11:34:28 -0500 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2015-02-04 12:04:49 -0500 |
commit | 1cb2a00cb8221841e7d748ed49fd2ea0ad50ac12 (patch) | |
tree | 71545511a2e449d532cb655d3eb3df7bdeb4d542 /qa/rpc-tests/getblocktemplate_proposals.py | |
parent | 1c4e3f99f05273e4d0fae7246d3afe5a33c52ee0 (diff) |
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.
Diffstat (limited to 'qa/rpc-tests/getblocktemplate_proposals.py')
-rwxr-xr-x | qa/rpc-tests/getblocktemplate_proposals.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qa/rpc-tests/getblocktemplate_proposals.py b/qa/rpc-tests/getblocktemplate_proposals.py index 22fe2ce044..f65162002d 100755 --- a/qa/rpc-tests/getblocktemplate_proposals.py +++ b/qa/rpc-tests/getblocktemplate_proposals.py @@ -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']) |