itest: add db backend flag

This commit is contained in:
Joost Jager committed 2021-07-05 10:10:02 +02:00
1 parent 387f1ef274
commit 98e75b486d
5 files changed
+47 -25

No files matched your search

+2 -2
View File
@@ -220,7 +220,7 @@ type NodeConfig struct {
FeeURL string
Etcd bool
DbBackend DatabaseBackend
}
func (cfg NodeConfig) P2PAddr() string {
@@ -308,7 +308,7 @@ func (cfg NodeConfig) genArgs() []string {
args = append(args, "--accept-amp")
}
if cfg.Etcd {
if cfg.DbBackend == BackendEtcd {
args = append(args, "--db.backend=etcd")
args = append(args, "--db.etcd.embedded")
args = append(