fix: the gap limit is one value higher than the gap
authorthomasv <thomasv@gitorious>
Thu, 7 Jun 2012 16:59:28 +0000 (18:59 +0200)
committerthomasv <thomasv@gitorious>
Thu, 7 Jun 2012 16:59:28 +0000 (18:59 +0200)
lib/wallet.py

index cc5074e..dd4ec66 100644 (file)
@@ -528,7 +528,7 @@ class Wallet:
             else:
                 n += 1
                 if n > nmax: nmax = n
-        return nmax
+        return nmax + 1
 
 
     def synchronize(self):