コード例 #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
コード例 #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
コード例 #3
0
 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
コード例 #4
0
 def estimated_fee(self, tx):
     fee = Multisig_Wallet.estimated_fee(self, tx)
     x = run_hook('extra_fee', tx)
     if x: fee += x
     return fee
コード例 #5
0
 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
コード例 #6
0
 def estimated_fee(self, tx):
     fee = Multisig_Wallet.estimated_fee(self, tx)
     x = run_hook('extra_fee', tx)
     if x: fee += x
     return fee