sqldb/sqlc: add AddV2ChannelProof query

Add SQL query to update the signature column for v2 channel auth proofs.
Unlike v1 which requires four separate signatures, v2 channels use a
single aggregated signature.
This commit is contained in:
Elle Mouton committed 2026-02-13 07:21:23 +02:00
1 parent a73189ccec
commit 315f5ed741
3 files changed
+23

No files matched your search

+6
View File
@@ -312,6 +312,12 @@ SET node_1_signature = $2,
WHERE scid = $1
AND version = 1;
-- name: AddV2ChannelProof :execresult
UPDATE graph_channels
SET signature = $2
WHERE scid = $1
AND version = 2;
-- name: GetChannelsBySCIDRange :many
SELECT sqlc.embed(c),
n1.pub_key AS node1_pub_key,