mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-18 19:41:21 +02:00
lnwire: add custom records field to type UpdateFulfillHtlc
- Introduce the field `CustomRecords` to the type `UpdateFulfillHtlc`. - Encode and decode the new field into the `ExtraData` field of the `update_fulfill_htlc` wire message. - Empty `ExtraData` field is set to `nil`.
This commit is contained in:
@@ -2202,8 +2202,9 @@ func messageSummary(msg lnwire.Message) string {
|
||||
msg.ID, msg.Reason)
|
||||
|
||||
case *lnwire.UpdateFulfillHTLC:
|
||||
return fmt.Sprintf("chan_id=%v, id=%v, pre_image=%x",
|
||||
msg.ChanID, msg.ID, msg.PaymentPreimage[:])
|
||||
return fmt.Sprintf("chan_id=%v, id=%v, pre_image=%x, "+
|
||||
"custom_records=%v", msg.ChanID, msg.ID,
|
||||
msg.PaymentPreimage[:], msg.CustomRecords)
|
||||
|
||||
case *lnwire.CommitSig:
|
||||
return fmt.Sprintf("chan_id=%v, num_htlcs=%v", msg.ChanID,
|
||||
|
Reference in New Issue
Block a user