lnpeer+wallet: use channel type for channel open
* channel_type is put into storage, serialized as int and deserialized as ChannelType * check for static_remotekey is done via channel type
This commit is contained in:
@@ -1377,6 +1377,8 @@ class WalletDB(JsonDB):
|
||||
v = ChannelConstraints(**v)
|
||||
elif key == 'funding_outpoint':
|
||||
v = Outpoint(**v)
|
||||
elif key == 'channel_type':
|
||||
v = ChannelType(v)
|
||||
return v
|
||||
|
||||
def _should_convert_to_stored_dict(self, key) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user