Skip to content

Commit

Permalink
Merge pull request #199 from bitromortac/2410-graph-custom-records
Browse files Browse the repository at this point in the history
lndclient: pass custom records into RoutingPolicy
  • Loading branch information
guggero authored Oct 29, 2024
2 parents 93d663c + 380cf19 commit 698f9cb
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 698f9cb

Please sign in to comment.