diff options
Diffstat (limited to 'simulation/config')
-rw-r--r-- | simulation/config/config.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/simulation/config/config.go b/simulation/config/config.go index 30d1562..c704a8d 100644 --- a/simulation/config/config.go +++ b/simulation/config/config.go @@ -18,6 +18,7 @@ package config import ( + "math" "os" "github.com/naoina/toml" @@ -38,6 +39,7 @@ type Validator struct { Num int ProposeIntervalMean float64 ProposeIntervalSigma float64 + MaxBlock uint64 } // Networking config. @@ -71,6 +73,7 @@ func GenerateDefault(path string) error { Num: 7, ProposeIntervalMean: 500, ProposeIntervalSigma: 30, + MaxBlock: math.MaxUint64, }, Networking: Networking{ Type: NetworkTypeFake, |