From bd215b1a7d2f54f521658059a55b572153c577fb Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Fri, 6 Feb 2026 16:25:14 +0200 Subject: [PATCH] graph/db: set policy version for cache load Ensure policies loaded for graph cache reconstruction are tagged as v1. --- graph/db/sql_store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/graph/db/sql_store.go b/graph/db/sql_store.go index 9a62f2f5d..bcb8245be 100644 --- a/graph/db/sql_store.go +++ b/graph/db/sql_store.go @@ -4822,6 +4822,7 @@ func extractChannelPolicies(row any) (*sqlc.GraphChannelPolicy, case sqlc.ListChannelsWithPoliciesForCachePaginatedRow: if r.Policy1Timelock.Valid { policy1 = &sqlc.GraphChannelPolicy{ + Version: int16(lnwire.GossipVersion1), Timelock: r.Policy1Timelock.Int32, FeePpm: r.Policy1FeePpm.Int64, BaseFeeMsat: r.Policy1BaseFeeMsat.Int64, @@ -4838,6 +4839,7 @@ func extractChannelPolicies(row any) (*sqlc.GraphChannelPolicy, } if r.Policy2Timelock.Valid { policy2 = &sqlc.GraphChannelPolicy{ + Version: int16(lnwire.GossipVersion1), Timelock: r.Policy2Timelock.Int32, FeePpm: r.Policy2FeePpm.Int64, BaseFeeMsat: r.Policy2BaseFeeMsat.Int64,