MCPcopy Index your code
hub / github.com/petertodd/python-bitcoinlib / MoneyRange

Function MoneyRange

bitcoin/core/__init__.py:29–34  ·  view source on GitHub ↗
(nValue, params=None)

Source from the content-addressed store, hash-verified

27WITNESS_COINBASE_SCRIPTPUBKEY_MAGIC = bytes([OP_RETURN, 0x24, 0xaa, 0x21, 0xa9, 0xed])
28
29def MoneyRange(nValue, params=None):
30 global coreparams
31 if not params:
32 params = coreparams
33
34 return 0 <= nValue <= params.MAX_MONEY
35
36def x(h):
37 """Convert a hex string to bytes"""

Callers 4

is_validMethod · 0.85
CheckTransactionFunction · 0.85
test_MoneyRangeMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_MoneyRangeMethod · 0.68