From 5eb3406b1992b5eac187e69a0845a1c2a318784f Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 10 Oct 2017 21:36:36 -0700 Subject: [PATCH] channeldb: add new Database method to ChannelGraph --- channeldb/graph.go | 5 +++++ 1 file changed, 5 insertions(+) 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