diff options
| author | MarcoFalke <[email protected]> | 2015-09-21 12:49:13 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2015-11-28 22:52:13 +0100 |
| commit | fa506c0c9b3928843704c666909c0b0c5af2f9a0 (patch) | |
| tree | 21b92065661555e3eb35e5934954ef06b6d33252 /qa/rpc-tests/test_framework | |
| parent | Default fPayAtLeastCustomFee to false (diff) | |
| download | discoin-fa506c0c9b3928843704c666909c0b0c5af2f9a0.tar.xz discoin-fa506c0c9b3928843704c666909c0b0c5af2f9a0.zip | |
[wallet] Add rpc tests to verify fee calculations
Diffstat (limited to 'qa/rpc-tests/test_framework')
| -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 30dd5de58..d9d5129f2 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 |