From 1cb2a00cb8221841e7d748ed49fd2ea0ad50ac12 Mon Sep 17 00:00:00 2001 From: Suhas Daftuar Date: Wed, 4 Feb 2015 11:34:28 -0500 Subject: [PATCH] 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. --- qa/rpc-tests/getblocktemplate_proposals.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qa/rpc-tests/getblocktemplate_proposals.py b/qa/rpc-tests/getblocktemplate_proposals.py index 22fe2ce04..f65162002 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'])