1
0

lnpeer: implement upfront shutdown script logic

Upfront shutdown script is a script provided on channel opening,
which will be used by the peer to enforce us closing to this script
on collaborative channel close.
This commit is contained in:
bitromortac
2020-12-18 11:06:42 +01:00
committed by ThomasV
parent e5458bb534
commit 6b90a2d36c
4 changed files with 110 additions and 7 deletions

View File

@@ -649,6 +649,9 @@ class Channel(AbstractChannel):
def is_static_remotekey_enabled(self) -> bool:
return bool(self.storage.get('static_remotekey_enabled'))
def is_upfront_shutdown_script_enabled(self) -> bool:
return bool(self.storage.get('upfront_shutdown_script_enabled'))
def get_wallet_addresses_channel_might_want_reserved(self) -> Sequence[str]:
ret = []
if self.is_static_remotekey_enabled():