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:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user