From 380cf1935afee466b5386dd787bb4147a93af32d Mon Sep 17 00:00:00 2001 From: bitromortac Date: Thu, 17 Oct 2024 14:20:53 +0200 Subject: [PATCH] lndclient: pass custom records into RoutingPolicy --- lightning_client.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lightning_client.go b/lightning_client.go index 8460f24..5d5e944 100644 --- a/lightning_client.go +++ b/lightning_client.go @@ -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. @@ -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, } }