electrum

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

commit 57baed4728174441d010766f792462ee6abf1aaa
parent db13cf965ccecee7c3bc851ce5d2c861e509efd0
Author: ThomasV <thomasv@electrum.org>
Date:   Tue,  4 Apr 2017 13:52:16 +0200

check parameter type of create_new_address

Diffstat:
Mlib/wallet.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1466,7 +1466,8 @@ class Deterministic_Wallet(Abstract_Wallet): if n > nmax: nmax = n return nmax + 1 - def create_new_address(self, for_change): + def create_new_address(self, for_change=False): + assert type(for_change) is bool addr_list = self.change_addresses if for_change else self.receiving_addresses n = len(addr_list) x = self.derive_pubkeys(for_change, n)