bump_fee: fix error message
This commit is contained in:
parent
227f3973a6
commit
4cc76c8a64
|
@ -2633,7 +2633,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||||
try:
|
try:
|
||||||
new_tx = self.wallet.bump_fee(tx, delta)
|
new_tx = self.wallet.bump_fee(tx, delta)
|
||||||
except BaseException as e:
|
except BaseException as e:
|
||||||
self.show_error(e)
|
self.show_error(str(e))
|
||||||
return
|
return
|
||||||
if is_final:
|
if is_final:
|
||||||
new_tx.set_sequence(0xffffffff)
|
new_tx.set_sequence(0xffffffff)
|
||||||
|
|
|
@ -1020,7 +1020,7 @@ class Abstract_Wallet(PrintError):
|
||||||
outputs[i] = otype, address, value - delta
|
outputs[i] = otype, address, value - delta
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise BaseException("cannot bump fee")
|
raise BaseException("cannot bump fee: could not find a change output")
|
||||||
new_tx = Transaction.from_io(inputs, outputs)
|
new_tx = Transaction.from_io(inputs, outputs)
|
||||||
return new_tx
|
return new_tx
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue