From cba0854230e546a83ca91e83eaf2590e04e4c0c1 Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Mon, 29 Oct 2018 05:52:10 +0100 Subject: [PATCH] lntest: make DBPath aware of active net --- lntest/node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lntest/node.go b/lntest/node.go index f73e2900b..0b9308e2b 100644 --- a/lntest/node.go +++ b/lntest/node.go @@ -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