Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: sync to latest core (#214) | Jimmy Hu | 2019-06-12 | 1 | -56/+19 |
| | | | | | * vendor: sync to latest core * fix for single chain | ||||
* | core: Fixed gas price (#205) | Jimmy Hu | 2019-06-12 | 1 | -0/+16 |
| | | | | | | | | | | * 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 Hu | 2019-06-12 | 1 | -1/+1 |
| | | | | | | * change default sync_core.sh * vendor: sync to latest core * core: Remove K, Phi and NumChain | ||||
* | app: prepare/verify block limit in correct round (#181) | bojie | 2019-06-12 | 1 | -2/+2 |
| | |||||
* | core, dex: use block hash as witness data (#160) | Sonic | 2019-06-12 | 1 | -16/+9 |
| | | | | | | | | | | 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. | ||||
* | Fix the usage of sync.Map (#156) | Mission Liao | 2019-06-12 | 1 | -4/+2 |
| | |||||
* | app: remove pending block logic (#149) | bojie | 2019-06-12 | 1 | -29/+43 |
| | |||||
* | app: implement logic for prepare/verify correctly when chain number change ↵ | bojie | 2019-06-12 | 1 | -6/+50 |
| | | | | (#118) | ||||
* | core, indexer, dex: fix DexconApp block deliver after synced (#122) | Sonic | 2019-06-12 | 1 | -9/+9 |
| | | | | | | | When starts a bp node to sync with the network, bc.chainLastHeight map may not be initialized yet. Just return error if we can not get chain last height when preparing payload and verify block. | ||||
* | core, dex, internal: block proposer syncing (first iteration) (#96) | Sonic | 2019-06-12 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | * dex, internal: block proposer syncing (first iteration) * core: find block from db if not in memory This fix handles stopping proposing and then restarting * core: no need to reorg when reset Dexon will not fork. This commit also fix when a block confirm but its parent is not in db yet, during restarting proposing. * dex: always accept NewBlockMsg, NewBlockHashesMsg We need to accept NewBlockMsg, NewBlockHashesMsg to sync current block with other peers in block proposer mode when syncing lattice data. It's a waste when the node is synced and start proposing. Todo: control msg processing on/off more granular, accept NewBlockMsg, NewBlockHashesMsg when syncing, but stop when synced. | ||||
* | dex: remove duplicate declaration of WitnessData (#92) | Wei-Ning Huang | 2019-06-12 | 1 | -9/+2 |
| | | | | 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) | bojie | 2019-06-12 | 1 | -4/+2 |
| | |||||
* | app: return retry later instead of retry with sleep time (#78) | bojie | 2019-06-12 | 1 | -31/+22 |
| | |||||
* | core, dex: polish sync (#75) | Sonic | 2019-06-12 | 1 | -0/+23 |
| | | | | | | | | | | | | | | | - Broadcasting blocks at chain head event is not correct when the full node is not running in block proposer mode. Introduce NewFinalizedBlockEvent, this event is post by the full node which runs in block proposer mode when a block is witnessed and resulting in some blocks are considered finalized. - Non block proposer node will still broadcast blocks at the following moment (same as ethereum): 1. a sync with a peer is terminated successfully 2. a block passes the fetcher's header check during inserting blocks 3. a block is successfully inserted by fetcher - Don't trigger a sync when we are not behind other peers more than acceptable distance. Fetcher is able to cover this. | ||||
* | app: misc fixes (#76) | bojie | 2019-06-12 | 1 | -50/+30 |
| | | | | Use sync map to prevent concurrent read write. Use last pending state to prepare/verify transactions. | ||||
* | core, dex: Timeout for prepare payload (#72) | Jimmy Hu | 2019-06-12 | 1 | -0/+55 |
| | | | | | | * Timeout on prepare payload * Leave 2 CPU for others * Add hardLimit and softLimit to PreparePayload | ||||
* | app: add app test case and benchmark (#66) | bojie | 2019-06-12 | 1 | -18/+33 |
| | |||||
* | Fix lint | Wei-Ning Huang | 2019-06-12 | 1 | -2/+2 |
| | |||||
* | core: various changes on tps tuning (#46) | Wei-Ning Huang | 2019-06-12 | 1 | -6/+3 |
| | |||||
* | app: skip tx which has been confirmed (#45) | bojie | 2019-06-12 | 1 | -9/+8 |
| | | | | | | * app: skip tx which has been confirmed * fixup! app: skip tx which has been confirmed | ||||
* | core: add global signature cache and improve concurrency (#42) | Wei-Ning Huang | 2019-06-12 | 1 | -1/+1 |
| | | | | | From the go trace result, the bottleneck hides in the lock of StoreTxCache. To improve this, we update the cache in a batched fassion. | ||||
* | governance: implement delegate/undelegate function and add tests (#33) | Wei-Ning Huang | 2019-06-12 | 1 | -1/+1 |
| | | | | | Implement delegate/undelegate function to allow others to delegate it's fund to stake on a node. Also added governance contract tests. | ||||
* | app: remove notify to prevent dead lock with consensus core | BJ4 | 2019-06-12 | 1 | -39/+3 |
| | |||||
* | app: add cache to reuse same tx address which has already recovered (#26) | BJ4 | 2019-06-12 | 1 | -9/+2 |
| | |||||
* | dex, core: Fix make fail (#24) | Jimmy Hu | 2019-06-12 | 1 | -1/+1 |
| | |||||
* | core, dex: Optimize sender calculation in block transactions. (#22) | Jimmy Hu | 2019-06-12 | 1 | -0/+6 |
| | | | | | | * Add Transactions.TouchSenders that calculates sender and update cache * Use TouchSenders to fill the caches | ||||
* | dex: return correct pending nonce (#14) | Wei-Ning Huang | 2019-06-12 | 1 | -3/+3 |
| | | | | We need to return the correct pending nonce (include those in the tx pool). Also, StateAndHeaderByNumber is also fixed to use pending block. | ||||
* | app: bug fix (#7) | bojie | 2019-06-12 | 1 | -0/+7 |
| | | | | Add notify mutex to prevent missing chain issue while concurrent appending with same slice. | ||||
* | dex: proofread and fix bugs | Wei-Ning Huang | 2019-06-12 | 1 | -161/+145 |
| | |||||
* | app: add back mutex to prevent concurrent map read write | BJ4 | 2019-06-12 | 1 | -1/+9 |
| | |||||
* | app: lock by chain correctly and remove old core in vendor | BJ4 | 2019-06-12 | 1 | -24/+12 |
| | |||||
* | Rename import due to dexon-consensus rename | Wei-Ning Huang | 2019-06-12 | 1 | -7/+7 |
| | |||||
* | dex: minor refactor | Wei-Ning Huang | 2019-06-12 | 1 | -12/+18 |
| | |||||
* | dex: set blocktime to millisecond timestamp | Wei-Ning Huang | 2019-06-12 | 1 | -1/+1 |
| | |||||
* | core: tx_pool: remove transactions on BlockConfirmed event | Wei-Ning Huang | 2019-06-12 | 1 | -1/+2 |
| | |||||
* | dex: add block gas limit into governance | Wei-Ning Huang | 2019-06-12 | 1 | -5/+4 |
| | |||||
* | app: refactor prepare logic | Bojie Wu | 2019-06-12 | 1 | -11/+17 |
| | |||||
* | app: using lock correctly to use map safely | Bojie Wu | 2019-06-12 | 1 | -63/+77 |
| | |||||
* | app: fix nil pointer issue | Bojie Wu | 2019-06-12 | 1 | -4/+6 |
| | |||||
* | app: add cache mechanism to increase performance | Bojie Wu | 2019-06-12 | 1 | -103/+63 |
| | |||||
* | app: add mutex to prevent concurrent read write map | Bojie Wu | 2019-06-12 | 1 | -0/+3 |
| | |||||
* | dex: remove uneeded info from block header | Wei-Ning Huang | 2019-06-12 | 1 | -15/+5 |
| | |||||
* | vendor: sync consensus core and fix conflict | Wei-Ning Huang | 2019-06-12 | 1 | -3/+2 |
| | |||||
* | app: fix bug when prepare transaction | Bojie Wu | 2019-06-12 | 1 | -2/+7 |
| | |||||
* | app: correct process pending block logic | Bojie Wu | 2019-06-12 | 1 | -29/+38 |
| | |||||
* | dex: fix missing randomness assignment | Wei-Ning Huang | 2019-06-12 | 1 | -1/+2 |
| | |||||
* | app: check nonce and balance in prepare payload | Bojie Wu | 2019-06-12 | 1 | -20/+111 |
| | |||||
* | core: included Dexcon metadata in block | Wei-Ning Huang | 2019-06-12 | 1 | -5/+11 |
| | |||||
* | app: implement verify block logic | Bojie Wu | 2019-06-12 | 1 | -22/+195 |
| | |||||
* | consensus: dexcon: fetch config from state | Wei-Ning Huang | 2019-06-12 | 1 | -0/+1 |
| | |||||
* | app: fixup message format | Wei-Ning Huang | 2019-06-12 | 1 | -8/+8 |
| | |||||
* | app: implement new insert blocks logic | Bojie Wu | 2019-06-12 | 1 | -147/+66 |
| | |||||
* | dex/core: misc bug fixes | Wei-Ning Huang | 2019-06-12 | 1 | -2/+3 |
| | |||||
* | app: fix log message | Bojie Wu | 2019-06-12 | 1 | -8/+8 |
| | |||||
* | app: correct dexon application logic | Bojie Wu | 2019-06-12 | 1 | -81/+51 |
| | |||||
* | core: fix nil map initialization | Wei-Ning Huang | 2019-06-12 | 1 | -1/+2 |
| | |||||
* | app: pass chain config instead of nil | Bojie Wu | 2019-06-12 | 1 | -3/+6 |
| | |||||
* | app: modify for new interface method | Bojie Wu | 2019-06-12 | 1 | -19/+33 |
| | |||||
* | app: implement new interface method | Bojie Wu | 2019-06-12 | 1 | -27/+104 |
| | |||||
* | dex: update application interface | Wei-Ning Huang | 2019-06-12 | 1 | -20/+27 |
| | |||||
* | app: correct validation logic | Bojie Wu | 2019-06-12 | 1 | -4/+10 |
| | |||||
* | dex: implement dexon application interface | Bojie Wu | 2019-06-12 | 1 | -13/+210 |
| | |||||
* | core: vm: implement the rest of governance contract methods | Wei-Ning Huang | 2019-06-12 | 1 | -3/+7 |
| | |||||
* | dex: update consensus core interface | Wei-Ning Huang | 2019-06-12 | 1 | -17/+5 |
| | |||||
* | Change import go github.com/dexon-foundation/dexon | Wei-Ning Huang | 2019-06-12 | 1 | -1/+1 |
| | |||||
* | Use dex.Config instead of eth.Config | Wei-Ning Huang | 2019-06-12 | 1 | -21/+5 |
| | |||||
* | dex: make geth buildable and update interface skeleton | Wei-Ning Huang | 2019-06-12 | 1 | -3/+23 |
| | |||||
* | Add udpated governance interface and app interface | Wei-Ning Huang | 2019-06-12 | 1 | -2/+2 |
| | |||||
* | Add dex package | Wei-Ning Huang | 2019-06-12 | 1 | -0/+58 |