graphdb: pass context to AddEdgeProof

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:46 +02:00
1 parent 3dc2efd7f3
commit 68c5206017
6 files changed
+9 -10

No files matched your search

+2 -3
View File
@@ -3198,8 +3198,8 @@ func (s *SQLStore) DisconnectBlockAtHeight(ctx context.Context,
// AddEdgeProof sets the proof of an existing edge in the graph database.
//
// NOTE: part of the Store interface.
func (s *SQLStore) AddEdgeProof(scid lnwire.ShortChannelID,
proof *models.ChannelAuthProof) error {
func (s *SQLStore) AddEdgeProof(ctx context.Context,
scid lnwire.ShortChannelID, proof *models.ChannelAuthProof) error {
if !isKnownGossipVersion(proof.Version) {
return fmt.Errorf("unsupported gossip version: %d",
@@ -3207,7 +3207,6 @@ func (s *SQLStore) AddEdgeProof(scid lnwire.ShortChannelID,
}
var (
ctx = context.TODO()
scidBytes = channelIDToBytes(scid.ToUint64())
)