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