graphdb: pass context to IsPublicNode

This commit is contained in:
Elle Mouton committed 2026-02-25 16:11:42 +02:00
1 parent 397330cbdb
commit f62ea62cfe
8 files changed
+26 -18

No files matched your search

+2 -3
View File
@@ -2546,10 +2546,9 @@ func (s *SQLStore) ChannelID(ctx context.Context, v lnwire.GossipVersion,
// source node's point of view.
//
// NOTE: part of the Store interface.
func (s *SQLStore) IsPublicNode(v lnwire.GossipVersion, pubKey [33]byte) (bool,
error) {
func (s *SQLStore) IsPublicNode(ctx context.Context, v lnwire.GossipVersion,
pubKey [33]byte) (bool, error) {
ctx := context.TODO()
if !isKnownGossipVersion(v) {
return false, fmt.Errorf("unsupported gossip version: %d", v)
}