tMerge pull request #1068 from gurnec/gap-limit-type - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 14d7be7445fa16d1863a5c114fd1dd4dc4748547 DIR parent 73d8ba24d94cc1fb36c646635efecb39b89d0c9f HTML 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: M lib/wallet.py | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -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)