electrum

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

commit 14d7be7445fa16d1863a5c114fd1dd4dc4748547
parent 73d8ba24d94cc1fb36c646635efecb39b89d0c9f
Author: ThomasV <electrumdev@gmail.com>
Date:   Sun,  8 Mar 2015 03:02:57 +0100

Merge pull request #1068 from gurnec/gap-limit-type

check arg type in change_gap_limit()
Diffstat:
Mlib/wallet.py | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1142,6 +1142,7 @@ class Deterministic_Wallet(Abstract_Wallet): return self.get_seed(password) def change_gap_limit(self, value): + assert isinstance(value, int), 'gap limit must be of type int, not of %s'%type(value) if value >= self.gap_limit: self.gap_limit = value self.storage.put('gap_limit', self.gap_limit, True)