[wallet] Add rpc tests to verify fee calculations

This commit is contained in:
MarcoFalke
2015-09-21 12:49:13 +02:00
parent 4b89f01d72
commit fa506c0c9b
2 changed files with 30 additions and 12 deletions

View File

@@ -67,6 +67,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