lnwire: morph HTLCSettleRequest into UpdateFufillHTLC

This commit modifies the prior HTLCSettleRequest to more closely match
the UpdateFufillHTLC defined within the specification. The only
semantic change is the move from a slice of pre-images (for “multi-sig”
LN) to a single payment preimage.
This commit is contained in:
Olaoluwa Osuntokun committed 2017-02-21 01:42:32 -08:00
1 parent f1357e96b3
commit 5330513c7b
4 files changed
+124 -119

No files matched your search

+3 -3
View File
@@ -37,8 +37,8 @@ const (
CmdCloseComplete = uint32(310)
// Commands for negotiating HTLCs.
CmdHTLCSettleRequest = uint32(1100)
CmdUpdateAddHTLC = uint32(1000)
CmdUpdateFufillHTLC = uint32(1010)
CmdUpdateFailHTLC = uint32(1020)
// Commands for modifying commitment transactions.
@@ -105,12 +105,12 @@ func makeEmptyMessage(command uint32) (Message, error) {
msg = &CloseRequest{}
case CmdCloseComplete:
msg = &CloseComplete{}
case CmdHTLCSettleRequest:
msg = &HTLCSettleRequest{}
case CmdUpdateAddHTLC:
msg = &UpdateAddHTLC{}
case CmdUpdateFailHTLC:
msg = &UpdateFailHTLC{}
case CmdUpdateFufillHTLC:
msg = &UpdateFufillHTLC{}
case CmdCommitSig:
msg = &CommitSig{}
case CmdRevokeAndAck: