aboutsummaryrefslogtreecommitdiffstats
path: root/params/config.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-20 11:55:01 +0800
committerGitHub <noreply@github.com>2019-03-20 11:55:01 +0800
commitd72b0255b760b3b0ded0c1ce59985754b8000a78 (patch)
tree30f6203962b52a41bf6548aadabba569d4809e03 /params/config.go
parentd22b689fdfafc3535e1008dd4e3b05d81588f807 (diff)
downloaddexon-d72b0255b760b3b0ded0c1ce59985754b8000a78.tar
dexon-d72b0255b760b3b0ded0c1ce59985754b8000a78.tar.gz
dexon-d72b0255b760b3b0ded0c1ce59985754b8000a78.tar.bz2
dexon-d72b0255b760b3b0ded0c1ce59985754b8000a78.tar.lz
dexon-d72b0255b760b3b0ded0c1ce59985754b8000a78.tar.xz
dexon-d72b0255b760b3b0ded0c1ce59985754b8000a78.tar.zst
dexon-d72b0255b760b3b0ded0c1ce59985754b8000a78.zip
consensus: dexcon: disqualify dead node (#280)
Since a qualified node might fail stopped, we need to remove them from qualified nodes to maintain network integrity. We do this by inspect the previous round to see if there are dead nodes. A dead node is a notary set node that does not propose any block in the previous round. We disqualify them by fining them so their staked value is 1 wei below minStake. This make them unqualified for being notary set in the follow on rounds.
Diffstat (limited to 'params/config.go')
-rw-r--r--params/config.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/params/config.go b/params/config.go
index 8f6efdc1d..106a7408b 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("0x8ac8e240790046eb72225eb2a2381f3ef5a7a88291fffc702ba08503cc2a1341")
- TestnetGenesisHash = common.HexToHash("0x3caf9a977e579b4de001956508b57563a4b61742c66f49323a1294ad214da29d")
- TaipeiGenesisHash = common.HexToHash("0x13e85a0207f2888ac9c1746c94d5d7fd87ff637cbd080b42d5db1252341f4428")
- YilanGenesisHash = common.HexToHash("0x6b1a94b5e4c24665942a3b768bd98b39d61771a5eaba97c0466644d78d8a2f11")
+ MainnetGenesisHash = common.HexToHash("0xa48b24e2e500e3a7f222673c240dcef6c4c4fd720e6c4653349adc6acae96fb8")
+ TestnetGenesisHash = common.HexToHash("0xf67217d7715cea0b2e8acada9b6a8e538fc3df0129dab32f8c1f6baff7a50034")
+ TaipeiGenesisHash = common.HexToHash("0xdcf32f39178f33cea762dd0e87e2be1eb9327997cb9cf20ef0645030d3ece6be")
+ YilanGenesisHash = common.HexToHash("0xbb48abd6cc576af3d0f84173e3476045def2f57c2e891e75a8835036d7012b82")
)
var (