diff options
author | Bojie Wu <bojie@dexon.org> | 2018-10-14 11:54:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | dd691835a779329303e1a4b4aea744d9f1a0f18e (patch) | |
tree | 1591c6ae73451a01731cc99c665f82461af036b6 /params | |
parent | 6161c027582c5adde9df18cd96290ee651324dc0 (diff) | |
download | dexon-dd691835a779329303e1a4b4aea744d9f1a0f18e.tar.gz dexon-dd691835a779329303e1a4b4aea744d9f1a0f18e.tar.zst dexon-dd691835a779329303e1a4b4aea744d9f1a0f18e.zip |
app: calculate block reward according to chain num
Diffstat (limited to 'params')
-rw-r--r-- | params/config.go | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/params/config.go b/params/config.go index b2f70c6ab..500a44e29 100644 --- a/params/config.go +++ b/params/config.go @@ -218,17 +218,18 @@ func (c *CliqueConfig) String() string { // DexconConfig is the consensus engine configs for DEXON consensus. type DexconConfig struct { - GenesisCRSText string `json:"genesisCRSText"` - NumChains uint32 `json:"numChains"` - LambdaBA uint64 `json:"lambdaBA"` - LambdaDKG uint64 `json:"lambdaDKG"` - K int `json:"k"` - PhiRatio float32 `json:"phiRatio"` - NotarySetSize uint32 `json:"notarySetSize"` - DKGSetSize uint32 `json:"dkgSetSize"` - RoundInterval uint64 `json:"roundInterval"` - MinBlockInterval uint64 `json:"minBlockInterval"` - MaxBlockInterval uint64 `json:"maxBlockInterval"` + GenesisCRSText string `json:"genesisCRSText"` + NumChains uint32 `json:"numChains"` + LambdaBA uint64 `json:"lambdaBA"` + LambdaDKG uint64 `json:"lambdaDKG"` + K int `json:"k"` + PhiRatio float32 `json:"phiRatio"` + NotarySetSize uint32 `json:"notarySetSize"` + DKGSetSize uint32 `json:"dkgSetSize"` + RoundInterval uint64 `json:"roundInterval"` + MinBlockInterval uint64 `json:"minBlockInterval"` + MaxBlockInterval uint64 `json:"maxBlockInterval"` + MiningReward *big.Int `json:"miningReward"` } // String implements the stringer interface, returning the consensus engine details. |