diff --git a/channeldb/graph.go b/channeldb/graph.go index 751d59db..11cd14eb 100644 --- a/channeldb/graph.go +++ b/channeldb/graph.go @@ -115,6 +115,11 @@ type ChannelGraph struct { // * 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 // when connecting to a node at a particular address. type addressType uint8