electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit cb709d8f57aa99d394c39ceed5af08ef548c75e3
parent c75e074b88a9e56b71b072822ff8d2247fffeef4
Author: ThomasV <thomasv@electrum.org>
Date:   Mon,  6 Mar 2017 09:00:56 +0100

fix tooltip fee estimate

Diffstat:
Mlib/simple_config.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/simple_config.py b/lib/simple_config.py @@ -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