From 4ba4611599f950aa039be7e432c62c2b2707ac0f Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Sat, 7 Mar 2015 12:51:35 -0500 Subject: [PATCH] check arg type in change_gap_limit() --- lib/wallet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/wallet.py b/lib/wallet.py index 37dc89fa..2063be31 100644 --- 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)