mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
switch default behavior and config value
This commit is contained in:
parent
193bbabfc2
commit
df0262769b
@ -19,8 +19,8 @@ type EngineConfig struct {
|
||||
// Alternative configuration path to manually specify data workers by multiaddr
|
||||
DataWorkerMultiaddrs []string `yaml:"dataWorkerMultiaddrs"`
|
||||
MultisigProverEnrollmentPaths []string `yaml:"multisigProverEnrollmentPaths"`
|
||||
// Does not verify execution, enables light provers
|
||||
LightNode bool
|
||||
// Fully verifies execution, omit to enable light prover
|
||||
FullProver bool
|
||||
// Automatically merges coins after minting once a sufficient number has been
|
||||
// accrued
|
||||
AutoMergeCoins bool
|
||||
|
||||
@ -200,7 +200,7 @@ func NewTokenExecutionEngine(
|
||||
[]*tries.RollingFrecencyCritbitTrie,
|
||||
error,
|
||||
) {
|
||||
if !e.engineConfig.LightNode {
|
||||
if e.engineConfig.FullProver {
|
||||
if err := e.VerifyExecution(frame, triesAtFrame); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
10
node/main.go
10
node/main.go
@ -126,7 +126,7 @@ var (
|
||||
)
|
||||
lightProver = flag.Bool(
|
||||
"light-prover",
|
||||
false,
|
||||
true,
|
||||
"when enabled, frame execution validation is skipped",
|
||||
)
|
||||
)
|
||||
@ -327,11 +327,9 @@ func main() {
|
||||
)
|
||||
}
|
||||
|
||||
if *lightProver {
|
||||
nodeConfig.Engine.LightNode = true
|
||||
fmt.Println(
|
||||
"Node is running in light mode – be sure you intended to do this.",
|
||||
)
|
||||
// If it's not explicitly set to true, we should defer to flags
|
||||
if !nodeConfig.Engine.FullProver {
|
||||
nodeConfig.Engine.FullProver = !*lightProver
|
||||
}
|
||||
|
||||
clearIfTestData(*configDirectory, nodeConfig)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user