diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-11-30 12:18:13 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-11-30 12:18:20 +0100 |
commit | a7751824ce8a7e1cc5511794516fe674bc3eaa3c (patch) | |
tree | 00ba888f51a1b92674751bcb78bca7df68c72195 /qa/rpc-tests/test_framework/util.py | |
parent | 6fc287f2df548497c1ced1abe64b303f500cad15 (diff) | |
parent | fa506c0c9b3928843704c666909c0b0c5af2f9a0 (diff) | |
download | bitcoin-a7751824ce8a7e1cc5511794516fe674bc3eaa3c.tar.xz |
Merge pull request #7103
fa506c0 [wallet] Add rpc tests to verify fee calculations (MarcoFalke)
4b89f01 Default fPayAtLeastCustomFee to false (Ryan Havar)
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 |