lnworker: change api of 'htlc_{fulfilled,failed}' events
This commit is contained in:
@@ -83,8 +83,8 @@ class ChannelDetailsDialog(QtWidgets.QDialog, MessageBoxMixin):
|
||||
dest_mapping = self.keyname_rows[to]
|
||||
dest_mapping[payment_hash] = len(dest_mapping)
|
||||
|
||||
htlc_fulfilled = QtCore.pyqtSignal(str, bytes, bytes)
|
||||
htlc_failed = QtCore.pyqtSignal(str, bytes, bytes)
|
||||
htlc_fulfilled = QtCore.pyqtSignal(str, bytes, Channel, int)
|
||||
htlc_failed = QtCore.pyqtSignal(str, bytes, Channel, int)
|
||||
htlc_added = QtCore.pyqtSignal(str, Channel, UpdateAddHtlc, Direction)
|
||||
state_changed = QtCore.pyqtSignal(str, Abstract_Wallet, AbstractChannel)
|
||||
|
||||
@@ -103,16 +103,16 @@ class ChannelDetailsDialog(QtWidgets.QDialog, MessageBoxMixin):
|
||||
mapping[htlc.payment_hash] = len(mapping)
|
||||
self.folders['inflight'].appendRow(self.make_htlc_item(htlc, direction))
|
||||
|
||||
@QtCore.pyqtSlot(str, bytes, bytes)
|
||||
def on_htlc_fulfilled(self, evtname, payment_hash, chan_id):
|
||||
if chan_id != self.chan.channel_id:
|
||||
@QtCore.pyqtSlot(str, bytes, Channel, int)
|
||||
def on_htlc_fulfilled(self, evtname, payment_hash, chan, htlc_id):
|
||||
if chan.channel_id != self.chan.channel_id:
|
||||
return
|
||||
self.move('inflight', 'settled', payment_hash)
|
||||
self.update()
|
||||
|
||||
@QtCore.pyqtSlot(str, bytes, bytes)
|
||||
def on_htlc_failed(self, evtname, payment_hash, chan_id):
|
||||
if chan_id != self.chan.channel_id:
|
||||
@QtCore.pyqtSlot(str, bytes, Channel, int)
|
||||
def on_htlc_failed(self, evtname, payment_hash, chan, htlc_id):
|
||||
if chan.channel_id != self.chan.channel_id:
|
||||
return
|
||||
self.move('inflight', 'failed', payment_hash)
|
||||
self.update()
|
||||
|
||||
Reference in New Issue
Block a user