Skip to content

Commit

Permalink
lndclient: pass custom records into RoutingPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
bitromortac committed Oct 29, 2024
1 parent 93d663c commit 380cf19
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 380cf19

Please sign in to comment.