1
0

qml: auto sign & broadcast fee bump transactions if wallet can sign without cosigners.

Show a dialog otherwise
This commit is contained in:
Sander van Grieken
2023-03-10 13:31:41 +01:00
parent cb5a9e499f
commit 15a3c2d344
4 changed files with 66 additions and 15 deletions

View File

@@ -541,10 +541,10 @@ class QEWallet(AuthMixin, QObject, QtEventListener):
self.wallet.network.run_from_another_thread(self.wallet.network.broadcast_transaction(tx))
except TxBroadcastError as e:
self._logger.error(repr(e))
self.broadcastFailed.emit(tx.txid(),'',repr(e))
self.broadcastFailed.emit(tx.txid(),'',str(e))
except BestEffortRequestFailed as e:
self._logger.error(repr(e))
self.broadcastFailed.emit(tx.txid(),'',repr(e))
self.broadcastFailed.emit(tx.txid(),'',str(e))
else:
self._logger.info('broadcast success')
self.broadcastSucceeded.emit(tx.txid())