just-in-time channels:
- a node scid alias is derived from the node ID - the channel opening fee is sent in a TLV field of open_channel - the server requires htlc settlement before broadcasting (server does not trust client)
This commit is contained in:
@@ -639,7 +639,8 @@ class Channel(AbstractChannel):
|
||||
def __repr__(self):
|
||||
return "Channel(%s)"%self.get_id_for_log()
|
||||
|
||||
def __init__(self, state: 'StoredDict', *, name=None, lnworker=None, initial_feerate=None):
|
||||
def __init__(self, state: 'StoredDict', *, name=None, lnworker=None, initial_feerate=None, opening_fee=None):
|
||||
self.opening_fee = opening_fee
|
||||
self.name = name
|
||||
self.channel_id = bfh(state["channel_id"])
|
||||
self.short_channel_id = ShortChannelID.normalize(state["short_channel_id"])
|
||||
|
||||
Reference in New Issue
Block a user