MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / target_str

Function target_str

test/functional/test_framework/blocktools.py:95–96  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

93 return f"{nbits:08x}"
94
95def target_str(target):
96 return f"{target:064x}"
97
98def create_block(hashprev=None, coinbase=None, *, ntime=None, height=None, version=None, tmpl=None, txlist=None):
99 """Create a block (with regtest difficulty)."""

Callers 5

run_testMethod · 0.90
run_testMethod · 0.90
_test_getblockheaderMethod · 0.90

Calls

no outgoing calls

Tested by 1