graph/db: thread context through to SetSourceNode

This commit is contained in:
Elle Mouton committed 2025-06-19 14:47:40 +02:00
1 parent e0a9705d59
commit 65049ddd02
11 files changed
+49 -32

No files matched your search

+3 -1
View File
@@ -926,7 +926,9 @@ func (c *KVStore) sourceNode(nodes kvdb.RBucket) (*models.LightningNode,
// SetSourceNode sets the source node within the graph database. The source
// node is to be used as the center of a star-graph within path finding
// algorithms.
func (c *KVStore) SetSourceNode(node *models.LightningNode) error {
func (c *KVStore) SetSourceNode(_ context.Context,
node *models.LightningNode) error {
nodePubBytes := node.PubKeyBytes[:]
return kvdb.Update(c.db, func(tx kvdb.RwTx) error {