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
def get_tx_fee(self, tx): fee = Multisig_Wallet.get_tx_fee(self, tx) x = run_hook('extra_fee', tx) if x: fee += x return fee
def estimated_fee(self, tx): fee = Multisig_Wallet.estimated_fee(self, tx) x = run_hook('extra_fee', tx) if x: fee += x return fee