pass in net params during channeldb initialization

This commit is contained in:
Olaoluwa Osuntokun 2016-04-24 12:37:09 -07:00
parent 3e3c028313
commit ea49b15e70

2
lnd.go
View File

@ -56,7 +56,7 @@ func main() {
// Open the channeldb, which is dedicated to storing channel, and
// network related meta-data.
chanDB, err := channeldb.Open(loadedConfig.DataDir)
chanDB, err := channeldb.Open(loadedConfig.DataDir, activeNetParams)
if err != nil {
fmt.Println("unable to open channeldb: ", err)
os.Exit(1)