channeldb: add new Database method to ChannelGraph

This commit is contained in:
Olaoluwa Osuntokun 2017-10-10 21:36:36 -07:00
parent eb7b5b342e
commit 5eb3406b19
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 5 additions and 0 deletions

View File

@ -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