channeldb: properly check for a nil bucket when fetching LinkNodes

This commit is contained in:
Olaoluwa Osuntokun
2016-12-13 20:48:49 -08:00
parent ad180b4fba
commit 29f1328948
2 changed files with 12 additions and 8 deletions

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")