graph/db: version edge info and policy update tests
Convert testEdgeInfoUpdates and testBatchedUpdateEdgePolicy to run against both v1 and v2 gossip versions, exercising the versioned Store methods added in prior commits.
This commit is contained in:
3 files changed
+31
-33
No files matched your search
@@ -685,13 +685,6 @@ func (c *ChannelGraph) AddEdgeProof(chanID lnwire.ShortChannelID,
|
||||
return c.db.AddEdgeProof(chanID, proof)
|
||||
}
|
||||
|
||||
// ChannelID attempts to lookup the 8-byte compact channel ID.
|
||||
func (c *ChannelGraph) ChannelID(v lnwire.GossipVersion,
|
||||
chanPoint *wire.OutPoint) (uint64, error) {
|
||||
|
||||
return c.db.ChannelID(v, chanPoint)
|
||||
}
|
||||
|
||||
// HighestChanID returns the "highest" known channel ID in the channel graph.
|
||||
func (c *ChannelGraph) HighestChanID(ctx context.Context) (uint64, error) {
|
||||
return c.db.HighestChanID(ctx)
|
||||
|
||||
Reference in new issue
Block a user