aboutsummaryrefslogtreecommitdiffstats
path: root/simulation/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'simulation/config/config.go')
-rw-r--r--simulation/config/config.go15
1 files changed, 13 insertions, 2 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go
index 0c6b5d3..6ead62e 100644
--- a/simulation/config/config.go
+++ b/simulation/config/config.go
@@ -33,10 +33,17 @@ const (
NetworkTypeTCPLocal NetworkType = "tcp-local"
)
+// Agreement settings.
+type Agreement struct {
+ CRS string
+ K int
+}
+
// Consensus settings.
type Consensus struct {
- PhiRatio float32
- K int
+ Agreement Agreement
+ PhiRatio float32
+ K int
}
// Validator config for the simulation.
@@ -83,6 +90,10 @@ func GenerateDefault(path string) error {
Title: "DEXON Consensus Simulation Config",
Validator: Validator{
Consensus: Consensus{
+ Agreement: Agreement{
+ CRS: "In DEXON we trust.",
+ K: 50,
+ },
PhiRatio: float32(2) / 3,
K: 1,
},