graph/db: thread context through IsZombieEdge
This commit is contained in:
5 files changed
+20
-17
No files matched your search
+6
-6
@@ -754,10 +754,10 @@ func (c *ChannelGraph) ChannelView() ([]EdgePoint, error) {
|
||||
}
|
||||
|
||||
// IsZombieEdge returns whether the edge is considered zombie.
|
||||
func (c *ChannelGraph) IsZombieEdge(chanID uint64) (bool, [33]byte, [33]byte,
|
||||
error) {
|
||||
func (c *ChannelGraph) IsZombieEdge(ctx context.Context,
|
||||
chanID uint64) (bool, [33]byte, [33]byte, error) {
|
||||
|
||||
return c.db.IsZombieEdge(lnwire.GossipVersion1, chanID)
|
||||
return c.db.IsZombieEdge(ctx, lnwire.GossipVersion1, chanID)
|
||||
}
|
||||
|
||||
// NumZombies returns the current number of zombie channels in the graph.
|
||||
@@ -829,10 +829,10 @@ func (c *VersionedGraph) FetchChannelEdgesByOutpoint(op *wire.OutPoint) (
|
||||
}
|
||||
|
||||
// IsZombieEdge returns whether the edge is considered zombie for this version.
|
||||
func (c *VersionedGraph) IsZombieEdge(chanID uint64) (bool, [33]byte,
|
||||
[33]byte, error) {
|
||||
func (c *VersionedGraph) IsZombieEdge(ctx context.Context,
|
||||
chanID uint64) (bool, [33]byte, [33]byte, error) {
|
||||
|
||||
return c.db.IsZombieEdge(c.v, chanID)
|
||||
return c.db.IsZombieEdge(ctx, c.v, chanID)
|
||||
}
|
||||
|
||||
// AddrsForNode returns all known addresses for the target node public key.
|
||||
|
||||
Reference in new issue
Block a user