mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-21 14:04:06 +01:00
lntest: make DBPath aware of active net
This commit is contained in:
parent
c0fadcc89b
commit
cba0854230
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue