mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-13 18:10:25 +02:00
lnwire: update closing_complete and closing_sig to latest spec draft
Both these messages now carry the address of both parties, so you can update an address without needing to send shutdown again.
This commit is contained in:
@@ -722,12 +722,13 @@ func (l *LocalCloseStart) ProcessEvent(event ProtocolEvent, env *Environment,
|
||||
// TODO(roasbeef): type alias for protocol event
|
||||
sendEvent := protofsm.DaemonEventSet{&protofsm.SendMsgEvent[ProtocolEvent]{ //nolint:ll
|
||||
TargetPeer: env.ChanPeer,
|
||||
// TODO(roasbeef): mew new func
|
||||
Msgs: []lnwire.Message{&lnwire.ClosingComplete{
|
||||
ChannelID: env.ChanID,
|
||||
FeeSatoshis: absoluteFee,
|
||||
LockTime: env.BlockHeight,
|
||||
ClosingSigs: closingSigs,
|
||||
ChannelID: env.ChanID,
|
||||
CloserScript: l.LocalDeliveryScript,
|
||||
CloseeScript: l.RemoteDeliveryScript,
|
||||
FeeSatoshis: absoluteFee,
|
||||
LockTime: env.BlockHeight,
|
||||
ClosingSigs: closingSigs,
|
||||
}},
|
||||
}}
|
||||
|
||||
@@ -991,8 +992,12 @@ func (l *RemoteCloseStart) ProcessEvent(event ProtocolEvent, env *Environment,
|
||||
sendEvent := &protofsm.SendMsgEvent[ProtocolEvent]{
|
||||
TargetPeer: env.ChanPeer,
|
||||
Msgs: []lnwire.Message{&lnwire.ClosingSig{
|
||||
ChannelID: env.ChanID,
|
||||
ClosingSigs: closingSigs,
|
||||
ChannelID: env.ChanID,
|
||||
CloserScript: l.RemoteDeliveryScript,
|
||||
CloseeScript: l.LocalDeliveryScript,
|
||||
FeeSatoshis: msg.SigMsg.FeeSatoshis,
|
||||
LockTime: msg.SigMsg.LockTime,
|
||||
ClosingSigs: closingSigs,
|
||||
}},
|
||||
}
|
||||
broadcastEvent := &protofsm.BroadcastTxn{
|
||||
|
Reference in New Issue
Block a user