MCPcopy Create free account
hub / github.com/ElementsProject/elements / satoshi_round

Function satoshi_round

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

Source from the content-addressed store, hash-verified

250
251
252def satoshi_round(amount):
253 return Decimal(amount).quantize(Decimal('0.00000001'), rounding=ROUND_DOWN)
254
255
256def wait_until_helper(predicate, *, attempts=float('inf'), timeout=float('inf'), lock=None, timeout_factor=1.0):

Callers 6

small_txpuzzle_randfeeFunction · 0.90
run_testMethod · 0.90
create_confirmed_utxosFunction · 0.70
chain_transactionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected