diff options
author | MarcoFalke <falke.marco@gmail.com> | 2015-09-21 12:49:13 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2015-11-28 22:52:13 +0100 |
commit | fa506c0c9b3928843704c666909c0b0c5af2f9a0 (patch) | |
tree | 21b92065661555e3eb35e5934954ef06b6d33252 /qa/rpc-tests/test_framework/util.py | |
parent | 4b89f01d727433f02cc8ff72799e0d0a7e6ceafe (diff) |
[wallet] Add rpc tests to verify fee calculations
Diffstat (limited to 'qa/rpc-tests/test_framework/util.py')
-rw-r--r-- | qa/rpc-tests/test_framework/util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py index 30dd5de585..d9d5129f21 100644 --- a/qa/rpc-tests/test_framework/util.py +++ b/qa/rpc-tests/test_framework/util.py @@ -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 |