mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-05-28 14:55:22 +02:00
test: Require named arg for create_block ntime arg
The named arg is useful, so that the two integral args (possibly integral literals) `height` and `ntime` are not confused.
This commit is contained in:
@@ -95,7 +95,7 @@ def nbits_str(nbits):
|
||||
def target_str(target):
|
||||
return f"{target:064x}"
|
||||
|
||||
def create_block(hashprev=None, coinbase=None, ntime=None, *, height=None, version=None, tmpl=None, txlist=None):
|
||||
def create_block(hashprev=None, coinbase=None, *, ntime=None, height=None, version=None, tmpl=None, txlist=None):
|
||||
"""Create a block (with regtest difficulty)."""
|
||||
block = CBlock()
|
||||
if tmpl is None:
|
||||
|
||||
Reference in New Issue
Block a user