aboutsummaryrefslogtreecommitdiffstats
path: root/core/types/config.go
diff options
context:
space:
mode:
authorMission Liao <mission.liao@dexon.org>2018-10-03 17:48:56 +0800
committerGitHub <noreply@github.com>2018-10-03 17:48:56 +0800
commitf5f34f81f8f3149adb002c65a7cc0cfa1244f77d (patch)
treee7b9ce05f6943fcd8f2e4cb17edac9e5272529a0 /core/types/config.go
parent3bab25bee98df72a25c273d6de1166facaa6a69e (diff)
downloaddexon-consensus-f5f34f81f8f3149adb002c65a7cc0cfa1244f77d.tar
dexon-consensus-f5f34f81f8f3149adb002c65a7cc0cfa1244f77d.tar.gz
dexon-consensus-f5f34f81f8f3149adb002c65a7cc0cfa1244f77d.tar.bz2
dexon-consensus-f5f34f81f8f3149adb002c65a7cc0cfa1244f77d.tar.lz
dexon-consensus-f5f34f81f8f3149adb002c65a7cc0cfa1244f77d.tar.xz
dexon-consensus-f5f34f81f8f3149adb002c65a7cc0cfa1244f77d.tar.zst
dexon-consensus-f5f34f81f8f3149adb002c65a7cc0cfa1244f77d.zip
core: publish round based config (#165)
Diffstat (limited to 'core/types/config.go')
-rw-r--r--core/types/config.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/types/config.go b/core/types/config.go
index 0b85363..384041d 100644
--- a/core/types/config.go
+++ b/core/types/config.go
@@ -26,7 +26,6 @@ import (
// Config stands for Current Configuration Parameters.
type Config struct {
// Network related.
- NumShards uint32
NumChains uint32
// Lambda related.
@@ -50,8 +49,6 @@ type Config struct {
// Bytes returns []byte representation of Config.
func (c *Config) Bytes() []byte {
- binaryNumShards := make([]byte, 4)
- binary.LittleEndian.PutUint32(binaryNumShards, c.NumShards)
binaryNumChains := make([]byte, 4)
binary.LittleEndian.PutUint32(binaryNumChains, c.NumChains)
@@ -85,7 +82,6 @@ func (c *Config) Bytes() []byte {
uint64(c.MaxBlockInterval.Nanoseconds()))
enc := make([]byte, 0, 40)
- enc = append(enc, binaryNumShards...)
enc = append(enc, binaryNumChains...)
enc = append(enc, binaryLambdaBA...)
enc = append(enc, binaryLambdaDKG...)