1
0

make rbf selection allowed configurable

This commit is contained in:
Sander van Grieken
2022-07-04 17:28:56 +02:00
parent c656b02319
commit cbd4d2a2ae
4 changed files with 19 additions and 0 deletions

View File

@@ -140,11 +140,13 @@ class QEChannelOpener(QObject):
acpt = lambda tx: self.do_open_channel(tx, str(self._peer), None)
self._finalizer = QETxFinalizer(self, make_tx=mktx, accept=acpt)
self._finalizer.canRbf = False
self._finalizer.amount = self._amount
self._finalizer.wallet = self._wallet
self.finalizerChanged.emit()
def do_open_channel(self, funding_tx, conn_str, password):
self._logger.debug('opening channel')
# read funding_sat from tx; converts '!' to int value
funding_sat = funding_tx.output_value_for_address(ln_dummy_address())
lnworker = self._wallet.wallet.lnworker
@@ -160,6 +162,7 @@ class QEChannelOpener(QObject):
self.channelOpenError.emit(_('Problem opening channel: ') + '\n' + repr(e))
return
self._logger.debug('opening channel succeeded')
self.channelOpenSuccess.emit(chan.channel_id.hex(), chan.has_onchain_backup())
# TODO: it would be nice to show this before broadcasting