electrum

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

commit 45bfd8cbae731094f1d570035726f0aaac2ed8dd
parent 882e259a78024d63b576d6ff3a8d50a576327072
Author: ThomasV <thomasv@electrum.org>
Date:   Tue,  1 Aug 2017 11:24:49 +0200

sanitize max_fee_rate; fixes #2663

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

diff --git a/lib/simple_config.py b/lib/simple_config.py @@ -199,7 +199,10 @@ class SimpleConfig(PrintError): self.set_key('gui_last_wallet', path) def max_fee_rate(self): - return self.get('max_fee_rate', MAX_FEE_RATE) + f = self.get('max_fee_rate', MAX_FEE_RATE) + if f==0: + f = MAX_FEE_RATE + return f def dynfee(self, i): if i < 4: