diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-02 12:43:39 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | b2e87ed696aed980902308e9210fa33bf9143657 (patch) | |
tree | 1d757233e4cfe74df87e031cef55f8808ee662ec /vendor/github.com/dexon-foundation/dexon-consensus/core/types | |
parent | fa4a62c777f38a5f03176405a53c3926fcb90a31 (diff) | |
download | go-tangerine-b2e87ed696aed980902308e9210fa33bf9143657.tar go-tangerine-b2e87ed696aed980902308e9210fa33bf9143657.tar.gz go-tangerine-b2e87ed696aed980902308e9210fa33bf9143657.tar.bz2 go-tangerine-b2e87ed696aed980902308e9210fa33bf9143657.tar.lz go-tangerine-b2e87ed696aed980902308e9210fa33bf9143657.tar.xz go-tangerine-b2e87ed696aed980902308e9210fa33bf9143657.tar.zst go-tangerine-b2e87ed696aed980902308e9210fa33bf9143657.zip |
core: vm: governance: remove maxInterval
Diffstat (limited to 'vendor/github.com/dexon-foundation/dexon-consensus/core/types')
-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 } |