Skip to content

Commit 698f9cb

Browse files
authored
Merge pull request #199 from bitromortac/2410-graph-custom-records
lndclient: pass custom records into RoutingPolicy
2 parents 93d663c + 380cf19 commit 698f9cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning_client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3230,6 +3230,10 @@ type RoutingPolicy struct {
32303230

32313231
// LastUpdate is the last update time for the edge policy.
32323232
LastUpdate time.Time
3233+
3234+
// CustomRecords is a set of feature id-value pairs that are used to
3235+
// advertise additional information about an edge.
3236+
CustomRecords map[uint64][]byte
32333237
}
32343238

32353239
// ChannelEdge holds the channel edge information and routing policies.
@@ -3272,6 +3276,7 @@ func getRoutingPolicy(policy *lnrpc.RoutingPolicy) *RoutingPolicy {
32723276
FeeRateMilliMsat: policy.FeeRateMilliMsat,
32733277
Disabled: policy.Disabled,
32743278
LastUpdate: time.Unix(int64(policy.LastUpdate), 0),
3279+
CustomRecords: policy.CustomRecords,
32753280
}
32763281
}
32773282

0 commit comments

Comments
 (0)