mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-01 16:41:39 +01:00
graph/db+sqldb: implement AddEdgeProof
And run `TestAddEdgeProof` against the SQL backends.
This commit is contained in:
@@ -208,6 +208,15 @@ INSERT INTO channels (
|
||||
)
|
||||
RETURNING id;
|
||||
|
||||
-- name: AddV1ChannelProof :execresult
|
||||
UPDATE channels
|
||||
SET node_1_signature = $2,
|
||||
node_2_signature = $3,
|
||||
bitcoin_1_signature = $4,
|
||||
bitcoin_2_signature = $5
|
||||
WHERE scid = $1
|
||||
AND version = 1;
|
||||
|
||||
-- name: GetChannelsBySCIDRange :many
|
||||
SELECT sqlc.embed(c),
|
||||
n1.pub_key AS node1_pub_key,
|
||||
|
||||
Reference in New Issue
Block a user