tFinish moving the multisig regex to one place - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit dbf154d5f25e10200d2b6183a582eba486648541 DIR parent 12f62212ba5139f115aca95aee936adae0feb577 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Sat, 2 Jan 2016 00:39:44 +0900 Finish moving the multisig regex to one place Diffstat: M lib/wallet.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- DIR diff --git a/lib/wallet.py b/lib/wallet.py t@@ -1770,9 +1770,7 @@ class Multisig_Wallet(BIP32_Wallet, Mnemonic): def __init__(self, storage): BIP32_Wallet.__init__(self, storage) self.wallet_type = storage.get('wallet_type') - m = re.match('(\d+)of(\d+)', self.wallet_type) - self.m = int(m.group(1)) - self.n = int(m.group(2)) + self.m, self.n = Wallet.multisig_type(self.wallet_type) def load_accounts(self): self.accounts = {}