MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / satoshi_round

Function satoshi_round

test/functional/test_framework/util.py:201–202  ·  view source on GitHub ↗
(amount)

Source from the content-addressed store, hash-verified

199 return b64encode(string.encode('utf-8')).decode('ascii')
200
201def satoshi_round(amount):
202 return Decimal(amount).quantize(Decimal('0.00000001'), rounding=ROUND_DOWN)
203
204def wait_until(predicate, *, attempts=float('inf'), timeout=float('inf'), lock=None):
205 if attempts == float('inf') and timeout == float('inf'):

Callers 9

test_disable_flagMethod · 0.90
small_txpuzzle_randfeeFunction · 0.90
split_inputsFunction · 0.90
chain_transactionMethod · 0.90
run_testMethod · 0.90
make_utxoFunction · 0.90
create_confirmed_utxosFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_disable_flagMethod · 0.72