aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorBojie Wu <bojie@dexon.org>2018-10-14 11:54:17 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:39 +0800
commitf6b850f295d2224f1f32a28883b08fadb8bc8bdd (patch)
tree09ed45cb4b14d84ca2bb0d633c901741fd3d8d12 /params
parent5f8563ccfbd0700ffe0cd88e97c911d060fce99a (diff)
downloadgo-tangerine-f6b850f295d2224f1f32a28883b08fadb8bc8bdd.tar
go-tangerine-f6b850f295d2224f1f32a28883b08fadb8bc8bdd.tar.gz
go-tangerine-f6b850f295d2224f1f32a28883b08fadb8bc8bdd.tar.bz2
go-tangerine-f6b850f295d2224f1f32a28883b08fadb8bc8bdd.tar.lz
go-tangerine-f6b850f295d2224f1f32a28883b08fadb8bc8bdd.tar.xz
go-tangerine-f6b850f295d2224f1f32a28883b08fadb8bc8bdd.tar.zst
go-tangerine-f6b850f295d2224f1f32a28883b08fadb8bc8bdd.zip
app: calculate block reward according to chain num
Diffstat (limited to 'params')
-rw-r--r--params/config.go23
1 files changed, 12 insertions, 11 deletions
diff --git a/params/config.go b/params/config.go
index 4768cdcd0..bd4e254a2 100644
--- a/params/config.go
+++ b/params/config.go
@@ -228,17 +228,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.