|
@ -54,13 +54,14 @@ class ChannelDetailsDialog(QtWidgets.QDialog): |
|
|
self.folders[keyname] = folder |
|
|
self.folders[keyname] = folder |
|
|
mapping = {} |
|
|
mapping = {} |
|
|
num = 0 |
|
|
num = 0 |
|
|
|
|
|
for pay_hash, item in htlcs.items(): |
|
|
for pay_hash, item in htlcs.items(): |
|
|
chan_id, i, direction, status = item |
|
|
chan_id, i, direction, status = item |
|
|
if status != keyname: |
|
|
it = self.make_htlc_item(i, direction) |
|
|
continue |
|
|
self.folders[status].appendRow(it) |
|
|
it = self.make_htlc_item(i, direction) |
|
|
mapping[i.payment_hash] = num |
|
|
self.folders[keyname].appendRow(it) |
|
|
num += 1 |
|
|
mapping[i.payment_hash] = num |
|
|
|
|
|
num += 1 |
|
|
self.keyname_rows[keyname] = mapping |
|
|
self.keyname_rows[keyname] = mapping |
|
|
return model |
|
|
return model |
|
|
|
|
|
|
|
|