diff options
| author | Bojie Wu <bojie@dexon.org> | 2018-10-14 11:54:17 +0800 |
|---|---|---|
| committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 13:49:52 +0800 |
| commit | 3a4ed5c1a08a1ced99a32a1fec59bca1a67af756 (patch) | |
| tree | ad552eb3e21a46bec60a18800ba965bc135a09c5 /params | |
| parent | f055acd1b91064ada6c4d23aeec91ced9bfc570a (diff) | |
| download | dexon-3a4ed5c1a08a1ced99a32a1fec59bca1a67af756.tar dexon-3a4ed5c1a08a1ced99a32a1fec59bca1a67af756.tar.gz dexon-3a4ed5c1a08a1ced99a32a1fec59bca1a67af756.tar.bz2 dexon-3a4ed5c1a08a1ced99a32a1fec59bca1a67af756.tar.lz dexon-3a4ed5c1a08a1ced99a32a1fec59bca1a67af756.tar.xz dexon-3a4ed5c1a08a1ced99a32a1fec59bca1a67af756.tar.zst dexon-3a4ed5c1a08a1ced99a32a1fec59bca1a67af756.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 44b708f0d..5158eddc4 100644 --- a/params/config.go +++ b/params/config.go @@ -219,17 +219,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. |
