aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app_test.go
Commit message (Collapse)AuthorAgeFilesLines
* import: switch consensus core to ↵Wei-Ning Huang2019-09-171-4/+4
| | | | gitlab.com/tangerine-network/tangerine-consensus
* Rebrand as tangerine-network/go-tangerineWei-Ning Huang2019-09-171-19/+19
|
* app: increase test accounts balance (#421)bojie2019-09-171-1/+1
|
* core: update mainnet and testnet config and genesis alloc (#337)Wei-Ning Huang2019-06-151-1/+2
|
* vendor: sync to latest core (#320)Jimmy Hu2019-06-151-11/+7
| | | | | | | | * vendor: sync to latest core * dex, core: fix conflict x
* consensus: dexcon: disqualify dead node (#280)Wei-Ning Huang2019-06-131-7/+5
| | | | | | | | | | 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.
* app: validate gas price while preparing block (#274)bojie2019-06-121-34/+120
| | | | Skip tx which is under price and add test case. Use the key which has balance in test case to run test more correctly.
* app: remove log handler in test (#261)bojie2019-06-121-3/+0
|
* app: new app test flow (#244)bojie2019-06-121-0/+2276
|
* dex: fill in correct coinbase address (#223)Wei-Ning Huang2019-06-121-722/+0
| | | Also remove app_test.go because of the refactor bojie@ is working on.
* core: sync to latest core (#214)Jimmy Hu2019-06-121-15/+3
| | | | | * vendor: sync to latest core * fix for single chain
* core: Fixed gas price (#205)Jimmy Hu2019-06-121-6/+31
| | | | | | | | | | * core/vm: update abi * core/vm: add MinGasPrice to gov * params: Add MinGasPrice to Config * dex: SuggestPrice from Governance * test: add minGasPrice to genesis.json * core: check underpriced tx * dex: verify with gas price
* core: Remove K, Phi and NumChains from Governance (#198)Jimmy Hu2019-06-121-181/+35
| | | | | | * change default sync_core.sh * vendor: sync to latest core * core: Remove K, Phi and NumChain
* consensus: dexcon: snapshot round height when finalizing block (#170)Wei-Ning Huang2019-06-121-6/+0
| | | | Instead of having BP to send a tx to register the round height, just modify the state when finalizing block.
* core, dex: use block hash as witness data (#160)Sonic2019-06-121-8/+4
| | | | | | | | | | Using only state root and receipt root as witness data can not protect other fields in block header, ex: bloom, difficulty, gas limit, gas used... So that everyone can manipulate these fields to create as many valid blocks at the same height as he want. Although this will not effect the state, one can spam us when syncing. Using block hash as witness data can solve this.
* app: remove pending block logic (#149)bojie2019-06-121-127/+97
|
* consensus: implement DEXON cryptoeconomics v4.0 (#145)Wei-Ning Huang2019-06-121-5/+17
|
* app: implement logic for prepare/verify correctly when chain number change ↵bojie2019-06-121-0/+207
| | | | (#118)
* core: vm: implement byzantine reporting mechanism (#128)Wei-Ning Huang2019-06-121-7/+8
|
* dex: fix test due to consensus-core changeWei-Ning Huang2019-06-121-9/+9
|
* dex: remove duplicate declaration of WitnessData (#92)Wei-Ning Huang2019-06-121-5/+1
| | | | Remove duplicate declaration of WitnessData and remove the TxHash field in witness data since it does not need to be witnessed.
* app: remove unnecessary code (#86)bojie2019-06-121-11/+1
|
* app: add app test case and benchmark (#66)bojie2019-06-121-0/+689