Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lightning_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3230,6 +3230,10 @@ type RoutingPolicy struct {

// LastUpdate is the last update time for the edge policy.
LastUpdate time.Time

// CustomRecords is a set of feature id-value pairs that are used to
// advertise additional information about an edge.
CustomRecords map[uint64][]byte
}

// ChannelEdge holds the channel edge information and routing policies.
Expand Down Expand Up @@ -3272,6 +3276,7 @@ func getRoutingPolicy(policy *lnrpc.RoutingPolicy) *RoutingPolicy {
FeeRateMilliMsat: policy.FeeRateMilliMsat,
Disabled: policy.Disabled,
LastUpdate: time.Unix(int64(policy.LastUpdate), 0),
CustomRecords: policy.CustomRecords,
}
}

Expand Down
Loading