channeldb: add new Database method to ChannelGraph
This commit is contained in:
1 file changed
+5
@@ -115,6 +115,11 @@ type ChannelGraph struct {
|
|||||||
// * LRU cache for edges?
|
// * LRU cache for edges?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Database returns a pointer to the underlying database.
|
||||||
|
func (c *ChannelGraph) Database() *DB {
|
||||||
|
return c.db
|
||||||
|
}
|
||||||
|
|
||||||
// addressType specifies the network protocol and version that should be used
|
// addressType specifies the network protocol and version that should be used
|
||||||
// when connecting to a node at a particular address.
|
// when connecting to a node at a particular address.
|
||||||
type addressType uint8
|
type addressType uint8
|
||||||
|
|||||||
Reference in new issue
Block a user