wallet: simplify get_wallet_delta
This commit is contained in:
@@ -232,7 +232,7 @@ class TxDialog(Factory.Popup):
|
||||
|
||||
def do_rbf(self):
|
||||
from .bump_fee_dialog import BumpFeeDialog
|
||||
is_relevant, is_mine, v, fee = self.wallet.get_wallet_delta(self.tx)
|
||||
fee = self.wallet.get_wallet_delta(self.tx).fee
|
||||
if fee is None:
|
||||
self.app.show_error(_("Can't bump fee: unknown fee for original transaction."))
|
||||
return
|
||||
@@ -257,7 +257,7 @@ class TxDialog(Factory.Popup):
|
||||
|
||||
def do_dscancel(self):
|
||||
from .dscancel_dialog import DSCancelDialog
|
||||
is_relevant, is_mine, v, fee = self.wallet.get_wallet_delta(self.tx)
|
||||
fee = self.wallet.get_wallet_delta(self.tx).fee
|
||||
if fee is None:
|
||||
self.app.show_error(_('Cannot cancel transaction') + ': ' + _('unknown fee for original transaction'))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user