lntest: make DBPath aware of active net

This commit is contained in:
Johan T. Halseth committed 2018-11-06 10:32:32 +01:00
1 parent c0fadcc89b
commit cba0854230
1 file changed
+2 -1
+2 -1
View File
@@ -126,7 +126,8 @@ func (cfg nodeConfig) RESTAddr() string {
}
func (cfg nodeConfig) DBPath() string {
return filepath.Join(cfg.DataDir, "graph", "simnet/channel.db")
return filepath.Join(cfg.DataDir, "graph",
fmt.Sprintf("%v/channel.db", cfg.NetParams.Name))
}
// genArgs generates a slice of command line arguments from the lightning node