diff options
author | Bojie Wu <bojie@dexon.org> | 2018-10-14 11:54:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9 (patch) | |
tree | d3423659cb59bb3b44b5d94ca62b4e8000ab5c4a /params | |
parent | 7f0898896dc1176af08c63a3f26977c150568f76 (diff) | |
download | dexon-3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9.tar dexon-3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9.tar.gz dexon-3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9.tar.bz2 dexon-3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9.tar.lz dexon-3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9.tar.xz dexon-3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9.tar.zst dexon-3968c55e2cf0c2384e2d83efc43d3d1cbe366bd9.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 c0cf782a6..9f8d70868 100644 --- a/params/config.go +++ b/params/config.go @@ -186,17 +186,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. |