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:
6 files changed
+53
-32
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user