rpc: Correctly name arguments

This commit is contained in:
Jon Layton
2018-11-13 13:42:36 -05:00
committed by MarcoFalke
parent c651265c93
commit fa0815c300
13 changed files with 33 additions and 32 deletions

View File

@@ -30,9 +30,10 @@ from test_framework.util import (
def assert_template(node, block, expect, rehash=True):
if rehash:
block.hashMerkleRoot = block.calc_merkle_root()
rsp = node.getblocktemplate({'data': b2x(block.serialize()), 'mode': 'proposal'})
rsp = node.getblocktemplate(template_request={'data': b2x(block.serialize()), 'mode': 'proposal'})
assert_equal(rsp, expect)
class MiningTest(BitcoinTestFramework):
def set_test_params(self):
self.num_nodes = 2