aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/gdex/dao_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: vm: remove delegation mechanism (#245)Wei-Ning Huang2019-04-091-1/+1
| | | | | | | | | | | | | 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.
* core: set oracle contract's code (#209)Sonic2019-04-091-1/+1
| | | So that other contract can call oracle contract.
* core: vm: implement byzantine reporting mechanism (#128)Wei-Ning Huang2019-04-091-1/+1
|
* core/vm: Add fine to governance. (#107)Jimmy Hu2019-04-091-1/+1
| | | | | | | | * core/vm: Add Fined field to nodeInfo. * core/vm: Add PayFine to Governance * Not qualify if staked-fine < minStake() * Add test for fine * Update genesis hash
* core: vm: Add `MPKReady` to governance (#97)Jimmy Hu2019-04-091-1/+1
| | | | | | * core/vm: Add DKGMPKReady * param: update GenesisHash * vendor: sync to latest core
* core: vm: add undelegate fund lockup mechanism (#94)Wei-Ning Huang2019-04-091-1/+1
| | | | | Only allow a user to withdraw funds after a certain lockup period. This way, the fund of a bad actor could be confiscated before he could escape.
* core: fix tests (#65)Wei-Ning Huang2019-04-091-1/+1
|
* cmd: fix tests (#55)bojie2019-04-091-2/+2
|
* Rename geth -> gdex and fix DockerfileWei-Ning Huang2019-04-091-0/+152