Пример #1
0
 def show_send_to_cosigner_button(self, account: AbstractAccount,
                                  tx: Transaction) -> bool:
     if tx.is_complete() or account.can_sign(tx):
         return False
     account_id = account.get_id()
     return any(
         self._is_theirs(account_id, item, tx) for item in self._items)
Пример #2
0
 def show_send_to_cosigner_button(self, window: 'ElectrumWindow', account: AbstractAccount,
         tx: Transaction) -> bool:
     if window.network is None:
         return False
     if tx.is_complete() or account.can_sign(tx):
         return False
     account_id = account.get_id()
     return any(self._is_theirs(window, account_id, item, tx) for item in self._items)