graph/db+sqldb: use batch validation for closed SCID migration

As was done in the previous commits for nodes & channels, we update the
migrateClosedSCIDIndex function here so that it validates migrated
entries in batches rather than one-by-one.
This commit is contained in:
Elle Mouton committed 2025-08-14 08:00:06 +02:00
1 parent 8554f17b3f
commit a490e03479
5 files changed
+107 -17

No files matched your search

+5
View File
@@ -984,3 +984,8 @@ SELECT EXISTS (
FROM graph_closed_scids
WHERE scid = $1
);
-- name: GetClosedChannelsSCIDs :many
SELECT scid
FROM graph_closed_scids
WHERE scid IN (sqlc.slice('scids')/*SLICE:scids*/);