diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-02 12:43:39 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 1f96be77a55876efd22d1e2f7887941ede7b70c0 (patch) | |
tree | 78de5c93e2e653c35817ed35eff193a2e879ad97 /vendor/github.com/dexon-foundation/dexon-consensus/core/types/config.go | |
parent | ecd02bb80782799065ecc66eea3129317f8ed513 (diff) | |
download | dexon-1f96be77a55876efd22d1e2f7887941ede7b70c0.tar dexon-1f96be77a55876efd22d1e2f7887941ede7b70c0.tar.gz dexon-1f96be77a55876efd22d1e2f7887941ede7b70c0.tar.bz2 dexon-1f96be77a55876efd22d1e2f7887941ede7b70c0.tar.lz dexon-1f96be77a55876efd22d1e2f7887941ede7b70c0.tar.xz dexon-1f96be77a55876efd22d1e2f7887941ede7b70c0.tar.zst dexon-1f96be77a55876efd22d1e2f7887941ede7b70c0.zip |
core: vm: governance: remove maxInterval
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/types/config.go')
-rw-r--r-- | vendor/github.com/dexon-foundation/dexon-consensus/core/types/config.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/vendor/github.com/dexon-foundation/dexon-consensus/core/types/config.go b/vendor/github.com/dexon-foundation/dexon-consensus/core/types/config.go index 975eec9cb..c9d31f8c4 100644 --- a/vendor/github.com/dexon-foundation/dexon-consensus/core/types/config.go +++ b/vendor/github.com/dexon-foundation/dexon-consensus/core/types/config.go @@ -43,7 +43,6 @@ type Config struct { // Time related. RoundInterval time.Duration MinBlockInterval time.Duration - MaxBlockInterval time.Duration } // Clone return a copied configuration. @@ -58,7 +57,6 @@ func (c *Config) Clone() *Config { DKGSetSize: c.DKGSetSize, RoundInterval: c.RoundInterval, MinBlockInterval: c.MinBlockInterval, - MaxBlockInterval: c.MaxBlockInterval, } } @@ -90,9 +88,6 @@ func (c *Config) Bytes() []byte { binaryMinBlockInterval := make([]byte, 8) binary.LittleEndian.PutUint64(binaryMinBlockInterval, uint64(c.MinBlockInterval.Nanoseconds())) - binaryMaxBlockInterval := make([]byte, 8) - binary.LittleEndian.PutUint64(binaryMaxBlockInterval, - uint64(c.MaxBlockInterval.Nanoseconds())) enc := make([]byte, 0, 40) enc = append(enc, binaryNumChains...) @@ -104,6 +99,5 @@ func (c *Config) Bytes() []byte { enc = append(enc, binaryDKGSetSize...) enc = append(enc, binaryRoundInterval...) enc = append(enc, binaryMinBlockInterval...) - enc = append(enc, binaryMaxBlockInterval...) return enc } |