aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-11 15:47:29 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:57 +0800
commit22325afbf6dfd179f074018fab4866a0c56a3e6a (patch)
tree9cffb79b5265351ee64d6631ae933224119ec33a /cmd
parentabcb28c8854c74942dd731f971dff2128fe0084f (diff)
downloaddexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.tar.gz
dexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.tar.zst
dexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.zip
core: vm: remove delegation mechanism (#245)
The current delegation mechanism are prone to unstaking attack. i.e. a malicious attacker could unstake a small amount from a lot of node it staked before and make them unqualified, which leads to potential failure of the network. Since DEXON does not use consensus like DPoS, node is required to have at least MinStake in order to become a node. Voting mechanism is not required in our system since qualified node does not depends on the number of votes. Instead of managing the delegation mechanism in governance contract, we should let the owner manage the delegation and reward distribution mechanism on their own.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gdex/dao_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gdex/dao_test.go b/cmd/gdex/dao_test.go
index 9a768c3fc..1e8cfc487 100644
--- a/cmd/gdex/dao_test.go
+++ b/cmd/gdex/dao_test.go
@@ -77,7 +77,7 @@ var daoProForkGenesis = `{
}
}`
-var daoGenesisHash = common.HexToHash("0x917e74766af045b81b7e45650fc40af9bd41282eaaac7ec3f89d8f10d82f434e")
+var daoGenesisHash = common.HexToHash("0xa530369e97a85c4f3522bf5e89be851b00aac7c30080c4ca624ce7c4ff5c9a80")
var daoGenesisForkBlock = big.NewInt(314)
// TestDAOForkBlockNewChain tests that the DAO hard-fork number and the nodes support/opposition is correctly