aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app_test.go
Commit message (Collapse)AuthorAgeFilesLines
* core: vm: refactor vm config and contextJhih-Ming Huang2019-05-061-1/+4
| | | | | | | | | | | | | | | | To support multiple VMs, there must be a shared execution environment for each VM, so this pull request moved some shared component to vm.Context and implemented the vm.ExecPack to hold the list of VM, list of VM configures, context and some shared resources. The adjustment includes: * Move NoRecursion, Depth, ReadOnly, RandCallIndex, IntPool and CallGasTemp to Context. * Adjust VM enumeration from byte to uint8, and the VMList from map to array. * Register VM constructor in each VM package's init function. * Initialize all VM instance in NewExecPack. * Remove EVMImplement, and modify EVM, such that EVM can do the same functions with EVMImplement.
* remove dexon/crypto/sha3 pkg.Jhih-Ming Huang2019-05-061-2/+2
|
* core: update mainnet and testnet config and genesis alloc (#337)Wei-Ning Huang2019-04-091-1/+2
|
* vendor: sync to latest core (#320)Jimmy Hu2019-04-091-11/+7
| | | | | | | | * vendor: sync to latest core * dex, core: fix conflict x
* consensus: dexcon: disqualify dead node (#280)Wei-Ning Huang2019-04-091-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-04-091-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-04-091-3/+0
|
* app: new app test flow (#244)bojie2019-04-091-0/+2276
|
* dex: fill in correct coinbase address (#223)Wei-Ning Huang2019-04-091-722/+0
| | | Also remove app_test.go because of the refactor bojie@ is working on.
* core: sync to latest core (#214)Jimmy Hu2019-04-091-15/+3
| | | | | * vendor: sync to latest core * fix for single chain
* core: Fixed gas price (#205)Jimmy Hu2019-04-091-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-04-091-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-04-091-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-04-091-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-04-091-127/+97
|
* consensus: implement DEXON cryptoeconomics v4.0 (#145)Wei-Ning Huang2019-04-091-5/+17
|
* app: implement logic for prepare/verify correctly when chain number change ↵bojie2019-04-091-0/+207
| | | | (#118)
* core: vm: implement byzantine reporting mechanism (#128)Wei-Ning Huang2019-04-091-7/+8
|
* dex: fix test due to consensus-core changeWei-Ning Huang2019-04-091-9/+9
|
* dex: remove duplicate declaration of WitnessData (#92)Wei-Ning Huang2019-04-091-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-04-091-11/+1
|
* app: add app test case and benchmark (#66)bojie2019-04-091-0/+689