lntest: make DBPath aware of active net

This commit is contained in:
Johan T. Halseth 2018-10-29 05:52:10 +01:00
parent c0fadcc89b
commit cba0854230
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

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