aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/smartfees.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-03-19 21:36:32 +0100
committerMarcoFalke <falke.marco@gmail.com>2016-03-31 18:35:17 +0200
commitfa524d9ddbad0a03f9eb974100fb3b6001045645 (patch)
tree35e826d3fc5015df5e86989b68a1cec847c105b1 /qa/rpc-tests/smartfees.py
parent28ad4d9fc2be102786a8c6c32ebecb466b2a03dd (diff)
downloadbitcoin-fa524d9ddbad0a03f9eb974100fb3b6001045645.tar.xz
[qa] Use python2/3 syntax
Diffstat (limited to 'qa/rpc-tests/smartfees.py')
-rwxr-xr-xqa/rpc-tests/smartfees.py2
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)"