lnwire: add custom records field to type UpdateAddHtlc
- Introduce the field `CustomRecords` to the type `UpdateAddHtlc`. - Encode and decode the new field into the `ExtraData` field of the `update_add_htlc` wire message.
This commit is contained in:
1 parent
af50694643
commit
81f6a8060f
4 files changed
+272
-19
No files matched your search
+3
-3
@@ -2193,9 +2193,9 @@ func messageSummary(msg lnwire.Message) string {
|
||||
)
|
||||
|
||||
return fmt.Sprintf("chan_id=%v, id=%v, amt=%v, expiry=%v, "+
|
||||
"hash=%x, blinding_point=%x", msg.ChanID, msg.ID,
|
||||
msg.Amount, msg.Expiry, msg.PaymentHash[:],
|
||||
blindingPoint)
|
||||
"hash=%x, blinding_point=%x, custom_records=%v",
|
||||
msg.ChanID, msg.ID, msg.Amount, msg.Expiry,
|
||||
msg.PaymentHash[:], blindingPoint, msg.CustomRecords)
|
||||
|
||||
case *lnwire.UpdateFailHTLC:
|
||||
return fmt.Sprintf("chan_id=%v, id=%v, reason=%x", msg.ChanID,
|
||||
|
||||
Reference in new issue
Block a user