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:
4 files changed
+124
-119
No files matched your search
+3
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user