Exemplo n.º 1
0
 def create_multisig_wallet(cls, keystores: Sequence, multisig_type: str, gap_limit=None):
     """Creates a multisig wallet."""
     store = storage.WalletStorage('if_this_exists_mocking_failed_648151893')
     for i, ks in enumerate(keystores):
         cosigner_index = i + 1
         store.put('x%d/' % cosigner_index, ks.dump())
     store.put('wallet_type', multisig_type)
     store.put('gap_limit', gap_limit or cls.gap_limit)
     w = Multisig_Wallet(store)
     w.synchronize()
     return w
Exemplo n.º 2
0
 def create_multisig_wallet(cls, keystores: Sequence, multisig_type: str, gap_limit=None):
     """Creates a multisig wallet."""
     store = storage.WalletStorage('if_this_exists_mocking_failed_648151893')
     for i, ks in enumerate(keystores):
         cosigner_index = i + 1
         store.put('x%d/' % cosigner_index, ks.dump())
     store.put('wallet_type', multisig_type)
     store.put('gap_limit', gap_limit or cls.gap_limit)
     w = Multisig_Wallet(store)
     w.synchronize()
     return w