diff options
author | Wei-Ning Huang <w@dexon.org> | 2019-03-11 15:47:29 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | 22325afbf6dfd179f074018fab4866a0c56a3e6a (patch) | |
tree | 9cffb79b5265351ee64d6631ae933224119ec33a /params | |
parent | abcb28c8854c74942dd731f971dff2128fe0084f (diff) | |
download | dexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.tar dexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.tar.gz dexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.tar.bz2 dexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.tar.lz dexon-22325afbf6dfd179f074018fab4866a0c56a3e6a.tar.xz 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 'params')
-rw-r--r-- | params/config.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/params/config.go b/params/config.go index 85999119d..255f84d53 100644 --- a/params/config.go +++ b/params/config.go @@ -26,9 +26,9 @@ import ( // Genesis hashes to enforce below configs on. var ( - MainnetGenesisHash = common.HexToHash("0x0894598473a31c7cd2fa64864c33ded539a8fe0c4535035851ff57c421dbdd16") - TestnetGenesisHash = common.HexToHash("0xc5c55f7f0211bab328ce33b3ecbffd115464b70fd019cab1b21aa632d54e83fe") - YilanGenesisHash = common.HexToHash("0x523850d25315b5d0fc368b2219236e3e88a9dd544afe699b908d71d5ebd45de3") + MainnetGenesisHash = common.HexToHash("0xcf52354de5cb9e38930ef7db9a5fba771d9ac1738398ba3495d2a22897ff64d4") + TestnetGenesisHash = common.HexToHash("0x7ffc113d55e3a43f071b7475efc8eb6a866c723c5b3b2ebc7e4657a8f80d2f6c") + YilanGenesisHash = common.HexToHash("0x35c657b55ee61ffb9b4dbbea43507693da612a0bc89b8713f6865cfd3ed5f2e9") ) var ( |