diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-03-19 21:36:32 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-03-31 18:35:17 +0200 |
commit | fa524d9ddbad0a03f9eb974100fb3b6001045645 (patch) | |
tree | 35e826d3fc5015df5e86989b68a1cec847c105b1 /qa/rpc-tests/smartfees.py | |
parent | 28ad4d9fc2be102786a8c6c32ebecb466b2a03dd (diff) |
[qa] Use python2/3 syntax
Diffstat (limited to 'qa/rpc-tests/smartfees.py')
-rwxr-xr-x | qa/rpc-tests/smartfees.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/smartfees.py b/qa/rpc-tests/smartfees.py index b209ae0c16..6274cd0530 100755 --- a/qa/rpc-tests/smartfees.py +++ b/qa/rpc-tests/smartfees.py @@ -105,7 +105,7 @@ def check_estimates(node, fees_seen, max_invalid, print_estimates = True): print([str(all_estimates[e-1]) for e in [1,2,3,6,15,25]]) delta = 1.0e-6 # account for rounding error last_e = max(fees_seen) - for e in filter(lambda x: x >= 0, all_estimates): + for e in [x for x in all_estimates if x >= 0]: # Estimates should be within the bounds of what transactions fees actually were: if float(e)+delta < min(fees_seen) or float(e)-delta > max(fees_seen): raise AssertionError("Estimated fee (%f) out of range (%f,%f)" |