|
|
|
|
@ -8,6 +8,7 @@ from electrum.gui import messages
|
|
|
|
|
from electrum.logging import get_logger |
|
|
|
|
from electrum.lnutil import LOCAL, REMOTE |
|
|
|
|
from electrum.lnchannel import ChanCloseOption, ChannelState |
|
|
|
|
from electrum.util import format_short_id |
|
|
|
|
|
|
|
|
|
from .auth import AuthMixin, auth_protect |
|
|
|
|
from .qewallet import QEWallet |
|
|
|
|
@ -99,6 +100,16 @@ class QEChannelDetails(AuthMixin, QObject, QtEventListener):
|
|
|
|
|
def shortCid(self): |
|
|
|
|
return self._channel.short_id_for_GUI() |
|
|
|
|
|
|
|
|
|
@pyqtProperty(str, notify=channelChanged) |
|
|
|
|
def localScidAlias(self): |
|
|
|
|
lsa = self._channel.get_local_scid_alias() |
|
|
|
|
return format_short_id(lsa) if lsa else '' |
|
|
|
|
|
|
|
|
|
@pyqtProperty(str, notify=channelChanged) |
|
|
|
|
def remoteScidAlias(self): |
|
|
|
|
rsa = self._channel.get_remote_scid_alias() |
|
|
|
|
return format_short_id(rsa) if rsa else '' |
|
|
|
|
|
|
|
|
|
@pyqtProperty(str, notify=channelChanged) |
|
|
|
|
def state(self): |
|
|
|
|
return self._channel.get_state_for_GUI() |
|
|
|
|
|