Merge pull request #2159 from halseth/integration-tests-net-aware-db

lntest: make DBPath aware of active net
This commit is contained in:
Johan T. Halseth 2018-11-09 12:14:55 +01:00 committed by GitHub
commit d4b042dc19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -126,7 +126,8 @@ func (cfg nodeConfig) RESTAddr() string {
} }
func (cfg nodeConfig) DBPath() 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 // genArgs generates a slice of command line arguments from the lightning node