tfix tooltip fee estimate - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cb709d8f57aa99d394c39ceed5af08ef548c75e3 DIR parent c75e074b88a9e56b71b072822ff8d2247fffeef4 HTML Author: ThomasV <thomasv@electrum.org> Date: Mon, 6 Mar 2017 09:00:56 +0100 fix tooltip fee estimate Diffstat: M lib/simple_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/lib/simple_config.py b/lib/simple_config.py t@@ -212,7 +212,8 @@ class SimpleConfig(PrintError): def reverse_dynfee(self, fee_per_kb): import operator - dist = map(lambda x: (x[0], abs(x[1] - fee_per_kb)), self.fee_estimates.items()) + l = self.fee_estimates.items() + [(1, self.dynfee(4))] + dist = map(lambda x: (x[0], abs(x[1] - fee_per_kb)), l) min_target, min_value = min(dist, key=operator.itemgetter(1)) if fee_per_kb < self.fee_estimates.get(25)/2: min_target = -1