config: expose distinct accept-amp flag

This mirrors the accept-keysend flag, but also permits users to
eventually toggle off keysend separately from AMP.
This commit is contained in:
Conner Fromknecht committed 2021-05-10 22:02:15 -07:00
1 parent 64d07558d9
commit 2ecd1de713
6 files changed
+53 -32

No files matched your search

+5
View File
@@ -210,6 +210,7 @@ type NodeConfig struct {
ProfilePort int
AcceptKeySend bool
AcceptAMP bool
FeeURL string
@@ -297,6 +298,10 @@ func (cfg NodeConfig) genArgs() []string {
args = append(args, "--accept-keysend")
}
if cfg.AcceptAMP {
args = append(args, "--accept-amp")
}
if cfg.Etcd {
args = append(args, "--db.backend=etcd")
args = append(args, "--db.etcd.embedded")