channeldb: properly check for a nil bucket when fetching LinkNodes

This commit is contained in:
Olaoluwa Osuntokun committed 2016-12-14 17:49:11 -08:00
1 parent ad180b4fba
commit 29f1328948
2 files changed
+12 -8

No files matched your search

+2 -1
View File
@@ -3,7 +3,8 @@ package channeldb
import "fmt"
var (
ErrNoChanDBExists = fmt.Errorf("channel db has not yet been created")
ErrNoChanDBExists = fmt.Errorf("channel db has not yet been created")
ErrLinkNodesNotFound = fmt.Errorf("no link nodes exist")
ErrNoActiveChannels = fmt.Errorf("no active channels exist")
ErrChannelNoExist = fmt.Errorf("this channel does not exist")