aboutsummaryrefslogtreecommitdiffstats
path: root/params/config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-10-19 16:31:44 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-12 12:19:09 +0800
commit3af359c1680a260bac6729bcc6c5a85ded247109 (patch)
treeb9a15cefad13e6b52db5daeabaa0a608ce2a076e /params/config.go
parentb69f7b9987d0e373c34a1bf7bfd7fa93e1dc5b88 (diff)
downloaddexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar.gz
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.tar.zst
dexon-3af359c1680a260bac6729bcc6c5a85ded247109.zip
core: vm: add blockReward to governance
Diffstat (limited to 'params/config.go')
-rw-r--r--params/config.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/params/config.go b/params/config.go
index bab7fd546..d8aea51db 100644
--- a/params/config.go
+++ b/params/config.go
@@ -222,8 +222,9 @@ func (c *CliqueConfig) String() string {
// DexconConfig is the consensus engine configs for DEXON consensus.
type DexconConfig struct {
- Owner common.Address `json:"owner"`
GenesisCRSText string `json:"genesisCRSText"`
+ Owner common.Address `json:"owner"`
+ BlockReward *big.Int `json:"blockReward"`
NumChains uint32 `json:"numChains"`
LambdaBA uint64 `json:"lambdaBA"`
LambdaDKG uint64 `json:"lambdaDKG"`
@@ -234,7 +235,6 @@ type DexconConfig struct {
RoundInterval uint64 `json:"roundInterval"`
MinBlockInterval uint64 `json:"minBlockInterval"`
MaxBlockInterval uint64 `json:"maxBlockInterval"`
- BlockReward *big.Int `json:"blockReward"`
}
type dexconConfigSpecMarshaling struct {
@@ -243,9 +243,10 @@ type dexconConfigSpecMarshaling struct {
// String implements the stringer interface, returning the consensus engine details.
func (d *DexconConfig) String() string {
- return fmt.Sprintf("{Owner: %v GenesisCRSText: %v NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v MaxBlockInterval: %v BlockReward: %v",
- d.Owner,
+ return fmt.Sprintf("{GenesisCRSText: %v Owner: %v BlockReward: %v NumChains: %v LambdaBA: %v LambdaDKG: %v K: %v PhiRatio: %v NotarySetSize: %v DKGSetSize: %v RoundInterval: %v MinBlockInterval: %v MaxBlockInterval: %v BlockReward: %v",
d.GenesisCRSText,
+ d.Owner,
+ d.BlockReward,
d.NumChains,
d.LambdaBA,
d.LambdaDKG,
@@ -256,7 +257,6 @@ func (d *DexconConfig) String() string {
d.RoundInterval,
d.MinBlockInterval,
d.MaxBlockInterval,
- d.BlockReward,
)
}