aboutsummaryrefslogtreecommitdiffstats
path: root/params
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-29 14:28:04 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:59 +0800
commitf0257e264b94b67137595e4a357589da7cfde82e (patch)
tree926b29bcd4e0639791fbe3da9a69b35effb75518 /params
parent3489e7ec917cd00d1995cd7a0f669bfc8aff0a8e (diff)
downloaddexon-f0257e264b94b67137595e4a357589da7cfde82e.tar
dexon-f0257e264b94b67137595e4a357589da7cfde82e.tar.gz
dexon-f0257e264b94b67137595e4a357589da7cfde82e.tar.bz2
dexon-f0257e264b94b67137595e4a357589da7cfde82e.tar.lz
dexon-f0257e264b94b67137595e4a357589da7cfde82e.tar.xz
dexon-f0257e264b94b67137595e4a357589da7cfde82e.tar.zst
dexon-f0257e264b94b67137595e4a357589da7cfde82e.zip
core: vm: make fail stop fine value configurable (#312)
A node is now quailified only if it has no pending fine and staked >= minstake.
Diffstat (limited to 'params')
-rw-r--r--params/config.go40
1 files changed, 24 insertions, 16 deletions
diff --git a/params/config.go b/params/config.go
index 3c68653db..6098024be 100644
--- a/params/config.go
+++ b/params/config.go
@@ -26,10 +26,10 @@ import (
// Genesis hashes to enforce below configs on.
var (
- MainnetGenesisHash = common.HexToHash("0x8d5edbabff11387ccff24278e9251b56e18a2604b9913695b2bbd5072533dfb2")
- TestnetGenesisHash = common.HexToHash("0xc70b04d189f2a1391e843552489fa6e19eb6b29021be2e7e6ceed6a2ccc855ff")
- TaipeiGenesisHash = common.HexToHash("0xcc805f44f6917b04be770a70fb1cdff089f7197fb68bc6839ef46e62c8011e2c")
- YilanGenesisHash = common.HexToHash("0x86fec7f128b5e6525f4177debddc2a375439593ebbd9d8c19a58e289d8621ce8")
+ MainnetGenesisHash = common.HexToHash("0x2cc76c5c8f969a84a7836780e15583f18b9687d5a27a86a17eb8faf05a18a567")
+ TestnetGenesisHash = common.HexToHash("0xe1df7b888109249932dad7f38435cfbbe4a525498b79c7c30f23069140fbca23")
+ TaipeiGenesisHash = common.HexToHash("0xd7c18ff0c38f727d94cffef4d880032399c7baafaf2eb8fd620865ac1dc5998a")
+ YilanGenesisHash = common.HexToHash("0xad24a02194aa8239fd1a14d77d0c905c306bbac8ec69125b442b8e8dbd1e486b")
)
var (
@@ -64,9 +64,11 @@ var (
RoundLength: 600,
MinBlockInterval: 1000,
FineValues: []*big.Int{
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(200)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
},
},
Recovery: &RecoveryConfig{
@@ -115,9 +117,11 @@ var (
RoundLength: 1200,
MinBlockInterval: 1000,
FineValues: []*big.Int{
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(200)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
},
},
Recovery: &RecoveryConfig{
@@ -157,9 +161,11 @@ var (
RoundLength: 1200,
MinBlockInterval: 500,
FineValues: []*big.Int{
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(200)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
},
},
Recovery: &RecoveryConfig{
@@ -207,9 +213,11 @@ var (
RoundLength: 1200,
MinBlockInterval: 500,
FineValues: []*big.Int{
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e4)),
- new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e5)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(200)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
+ new(big.Int).Mul(big.NewInt(1e18), big.NewInt(1e6)),
},
},
Recovery: &RecoveryConfig{