aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2019-03-11 15:47:29 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:27:22 +0800
commit04cb64b849988c1cf71fd66a3142f01e8ba7cb23 (patch)
tree1e31ce72bf75a0e81ff95b9bcf7b4d6db26cfa98 /core/genesis_test.go
parenta03655ca09836a282db33fadf2fcd78d898364a4 (diff)
downloadgo-tangerine-04cb64b849988c1cf71fd66a3142f01e8ba7cb23.tar
go-tangerine-04cb64b849988c1cf71fd66a3142f01e8ba7cb23.tar.gz
go-tangerine-04cb64b849988c1cf71fd66a3142f01e8ba7cb23.tar.bz2
go-tangerine-04cb64b849988c1cf71fd66a3142f01e8ba7cb23.tar.lz
go-tangerine-04cb64b849988c1cf71fd66a3142f01e8ba7cb23.tar.xz
go-tangerine-04cb64b849988c1cf71fd66a3142f01e8ba7cb23.tar.zst
go-tangerine-04cb64b849988c1cf71fd66a3142f01e8ba7cb23.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 'core/genesis_test.go')
-rw-r--r--core/genesis_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/genesis_test.go b/core/genesis_test.go
index c083ed9aa..de843e05a 100644
--- a/core/genesis_test.go
+++ b/core/genesis_test.go
@@ -43,7 +43,7 @@ func TestDefaultGenesisBlock(t *testing.T) {
func TestSetupGenesis(t *testing.T) {
var (
- customghash = common.HexToHash("0xbd64608d51b78fd61aeb6d91669fd3ff09c12c7552f0923b0c2d19910887efda")
+ customghash = common.HexToHash("0x1f619d2e0f8293d83dad154ef95f6e09dcfdbe92b7f06f658d5dece20e5132e4")
customg = Genesis{
Config: &params.ChainConfig{HomesteadBlock: big.NewInt(3)},
Alloc: GenesisAlloc{