lnwire: morph CommitSignature into CommitSig

This commit renames and modifies the CommitSignature message to more
closely match the CommitSig message defined within the current set of
draft specifications.

The major change within the new message is that we now longer
explicitly specify the update log index of the remote node that this
signature covers. This is due to the fact the revocation message now
also double as acknowledgements of the remote parties recevied
commitment update messages.
This commit is contained in:
Olaoluwa Osuntokun committed 2017-02-21 01:42:23 -08:00
1 parent 9a61bb3ae1
commit 8a63c83283
4 files changed
+124 -134

No files matched your search

+3 -3
View File
@@ -44,7 +44,7 @@ const (
CmdCancelHTLC = uint32(1300)
// Commands for modifying commitment transactions.
CmdCommitSignature = uint32(2000)
CmdCommitSig = uint32(2000)
CmdRevokeAndAck = uint32(2010)
// Commands for reporting protocol errors.
@@ -115,8 +115,8 @@ func makeEmptyMessage(command uint32) (Message, error) {
msg = &HTLCSettleRequest{}
case CmdCancelHTLC:
msg = &CancelHTLC{}
case CmdCommitSignature:
msg = &CommitSignature{}
case CmdCommitSig:
msg = &CommitSig{}
case CmdRevokeAndAck:
msg = &RevokeAndAck{}
case CmdErrorGeneric: