mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 00:34:01 +02:00
[wallet] Add rpc tests to verify fee calculations
Conflicts:
qa/rpc-tests/wallet.py
Rebased-From: fa506c0c9b
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
7d0a05f4c1
commit
5f09cda0bf
@@ -32,6 +32,9 @@ def check_json_precision():
|
||||
if satoshis != 2000000000000003:
|
||||
raise RuntimeError("JSON encode/decode loses precision")
|
||||
|
||||
def count_bytes(hex_string):
|
||||
return len(bytearray.fromhex(hex_string))
|
||||
|
||||
def sync_blocks(rpc_connections, wait=1):
|
||||
"""
|
||||
Wait until everybody has the same block count
|
||||
|
||||
Reference in New Issue
Block a user