Changeset View
Changeset View
Standalone View
Standalone View
test/functional/abc_mining_basic.py
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | def run_for_node(self, node, minerFundAddress): | ||||
# Assert the results of getblocktemplate have expected values. Keys not | # Assert the results of getblocktemplate have expected values. Keys not | ||||
# in 'expected' are not checked. | # in 'expected' are not checked. | ||||
def assert_getblocktemplate(expected): | def assert_getblocktemplate(expected): | ||||
# Always test these values in addition to those passed in | # Always test these values in addition to those passed in | ||||
expected = { | expected = { | ||||
**expected, | **expected, | ||||
**{ | **{ | ||||
"sigchecklimit": DEFAULT_MAX_BLOCK_SIZE | "sigchecklimit": ( | ||||
// BLOCK_MAXBYTES_MAXSIGCHECKS_RATIO, | DEFAULT_MAX_BLOCK_SIZE // BLOCK_MAXBYTES_MAXSIGCHECKS_RATIO | ||||
), | |||||
}, | }, | ||||
} | } | ||||
blockTemplate = node.getblocktemplate() | blockTemplate = node.getblocktemplate() | ||||
for key, value in expected.items(): | for key, value in expected.items(): | ||||
assert_equal(blockTemplate[key], value) | assert_equal(blockTemplate[key], value) | ||||
def get_best_coinbase(): | def get_best_coinbase(): | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |