Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | dex: implement downloader for dex | Sonic | 2018-12-19 | 12 | -88/+504 |
| | | | | | | | | | | | We need governance state to verify block's signature (randomness), but in ethereum fast sync mode, eth downloader only downloads the whole state of pivot block, so we don't have governance state to verify the downloaded block that is before pivot block if we don't processing transaction. To avoid running transactions, dex downloader also downloads the governance state (merkle proof and storage) at snapshot height of each round, so that we can verify blocks in fast sync mode. | ||||
* | core: implement insert chain, headerchain logic | Sonic | 2018-12-19 | 3 | -0/+521 |
| | |||||
* | core: support extracting governance state from state trie | Sonic | 2018-12-19 | 3 | -0/+73 |
| | |||||
* | dex: use dex/downloader in dex | Sonic | 2018-12-19 | 14 | -42/+46 |
| | | | | | To compatible with ethereum code base, make Downloader a interface in internal/ethapi | ||||
* | dex: copy fetcher and downloader from eth | Sonic | 2018-12-19 | 15 | -0/+7440 |
| | |||||
* | core: add global signature cache and improve concurrency (#42) | Wei-Ning Huang | 2018-12-19 | 6 | -55/+88 |
| | | | | | From the go trace result, the bottleneck hides in the lock of StoreTxCache. To improve this, we update the cache in a batched fassion. | ||||
* | core, dex: Batch process touchSender. Lower priority for tx. (#41) | Jimmy Hu | 2018-12-19 | 2 | -13/+20 |
| | | | | | | | * dex: Add a tx queue in broadcast * Modify queue parameter * Priority select all messages except tx * Batch process TouchSenders | ||||
* | dex: Tx message optimization (#39) | Jimmy Hu | 2018-12-19 | 2 | -7/+42 |
| | | | | | | | | * dex: Add a tx queue in broadcast * Modify queue parameter * Priority select all messages except tx | ||||
* | test: use a fixed nodekey for RPC node (#38) | Wei-Ning Huang | 2018-12-19 | 2 | -1/+2 |
| | |||||
* | vendor: sync to latest core (#37) | Jimmy Hu | 2018-12-19 | 18 | -157/+427 |
| | |||||
* | dex: add BlockDB, which implements consensus core's blockdb.BlockDatabase (#36) | Sonic | 2018-12-19 | 4 | -11/+114 |
| | |||||
* | core: vm: change offset type to int256 | Wei-Ning Huang | 2018-12-19 | 1 | -2/+7 |
| | | | | | Since we use -1 to represent the offset of empty value, we should make the return type int256 instead of uint256. | ||||
* | governance: implement delegate/undelegate function and add tests (#33) | Wei-Ning Huang | 2018-12-19 | 9 | -121/+1162 |
| | | | | | Implement delegate/undelegate function to allow others to delegate it's fund to stake on a node. Also added governance contract tests. | ||||
* | core: blockchain: fix concurrent map read and write (#34) | Wei-Ning Huang | 2018-12-19 | 1 | -4/+7 |
| | |||||
* | core: more fix on light node synchronization (#32) | Wei-Ning Huang | 2018-12-19 | 6 | -76/+58 |
| | | | | | | Fix gas calculation in governance contract. Correctly register round height when processing pending blocks. We should register the mapping when we get the pending block instead of waiting for block confirmation. | ||||
* | core: vm: add minStake to governance contract variable (#31) | Wei-Ning Huang | 2018-12-19 | 6 | -11/+63 |
| | |||||
* | core: fix light node synchronization issue (#30) | Wei-Ning Huang | 2018-12-19 | 6 | -9/+23 |
| | | | | | InsertChain() need to record the correct roundHeight mapping in order to process snapshotRoundHeight() governance method correctly. | ||||
* | core: revert changes to StateProcessor.Process (#29) | Wei-Ning Huang | 2018-12-19 | 2 | -10/+10 |
| | |||||
* | app: remove notify to prevent dead lock with consensus core | BJ4 | 2018-12-19 | 1 | -39/+3 |
| | |||||
* | app: add cache to reuse same tx address which has already recovered (#26) | BJ4 | 2018-12-19 | 4 | -12/+43 |
| | |||||
* | core: refactor validator and fix light node sync (#25) | Wei-Ning Huang | 2018-12-19 | 15 | -208/+193 |
| | | | | | | | Remove custom Dexon validator by adding a new `ValidateWitnessData` method into the validator interface. This allow us to properly detect know blocks. This also allow other gdex "light" client to sync compaction chain. Also, setup a standalone RPC node for handling RPC reqeusts. | ||||
* | dex: remove gasprice package and use eth/gasprice instead | Wei-Ning Huang | 2018-12-19 | 5 | -193/+4 |
| | | | | We did not change anything in eth/gasprice, don't copy it into dex. | ||||
* | core: use storeRoundHeight to avoid type mismatch (#21) | Sonic | 2018-12-19 | 1 | -9/+6 |
| | | | No need to store round 0, it's already pushed in genesis block | ||||
* | dex, core: Fix make fail (#24) | Jimmy Hu | 2018-12-19 | 2 | -2/+2 |
| | |||||
* | core, dex: Optimize sender calculation in block transactions. (#22) | Jimmy Hu | 2018-12-19 | 3 | -0/+40 |
| | | | | | | * Add Transactions.TouchSenders that calculates sender and update cache * Use TouchSenders to fill the caches | ||||
* | cmd: monkey: Add -parallel and -sleep to configure monkey (#20) | Jimmy Hu | 2018-12-19 | 2 | -196/+23 |
| | |||||
* | dexon: Update README (#18) | Jimmy Hu | 2018-12-19 | 1 | -61/+39 |
| | |||||
* | core: validate DKG set with correct nodeset in round-2 (#19) | Wei-Ning Huang | 2018-12-19 | 13 | -85/+101 |
| | | | | | * vendor: sync consensus core * core: validate DKG set with correct nodeset in round-2 | ||||
* | core: vm: Optimize evm (#13) | Jimmy Hu | 2018-12-19 | 5 | -18/+282 |
| | | | | | | | * core: vm: add an EVM benchmark * core: vm: optimize stack allocation and instruction for calculating 2^n * Add DEXONBet bench | ||||
* | core: push height of round 0 in genesis block (#17) | Sonic | 2018-12-19 | 2 | -8/+11 |
| | | | | | | | * core: push height of round 0 in genesis block * vm: fix governance dispatch method name mismatch with abi also rename RoundHeightLoc to roundHeightLoc | ||||
* | Update README.md | Wei-Ning Huang | 2018-12-19 | 1 | -1/+3 |
| | |||||
* | params: Do not use DEXON config for test. (#15) | Jimmy Hu | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | vendor: sync to latest core (#16) | Jimmy Hu | 2018-12-19 | 9 | -89/+131 |
| | |||||
* | dex: return correct pending nonce (#14) | Wei-Ning Huang | 2018-12-19 | 4 | -6/+23 |
| | | | | We need to return the correct pending nonce (include those in the tx pool). Also, StateAndHeaderByNumber is also fixed to use pending block. | ||||
* | test: increase numChains to 6 | Wei-Ning Huang | 2018-12-19 | 2 | -2/+2 |
| | |||||
* | gdex: monkey: Add a gamble monkey (#12) | Jimmy Hu | 2018-12-19 | 2 | -2/+379 |
| | |||||
* | cmd: gdex: Revert #6 (#11) | Jimmy Hu | 2018-12-19 | 2 | -44/+1 |
| | | | | | | | | * Revert "cmd: gdex: SIGUSR1 to dump stack (#6)" This reverts commit 86c985c76272667ad68c604ad09e229453d17859. * Add pprof to test | ||||
* | params: fix genesis block config and use testnet for test (#10) | Wei-Ning Huang | 2018-12-19 | 4 | -17/+22 |
| | |||||
* | core: fix staked calculation in genesis (#8) | Jimmy Hu | 2018-12-19 | 1 | -4/+0 |
| | |||||
* | dex: porting test to enode (#9) | Sonic | 2018-12-19 | 5 | -112/+141 |
| | |||||
* | app: bug fix (#7) | bojie | 2018-12-19 | 1 | -0/+7 |
| | | | | Add notify mutex to prevent missing chain issue while concurrent appending with same slice. | ||||
* | cmd: gdex: SIGUSR1 to dump stack (#6) | Jimmy Hu | 2018-12-19 | 1 | -0/+44 |
| | |||||
* | core: vm: expose governance contract ABI (#5) | Wei-Ning Huang | 2018-12-19 | 1 | -2/+2 |
| | |||||
* | core: blockchain: fix NewBlockChainWithDexonValidator (#4) | Wei-Ning Huang | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | core: genesis: make ToBlock() compatible with legacy ethereum code (#3) | Wei-Ning Huang | 2018-12-19 | 1 | -28/+36 |
| | | | | Make ToBlock() compatible with legacy ethereum code so we can run tests normally. | ||||
* | app: fix core test | BJ4 | 2018-12-19 | 9 | -42/+151 |
| | |||||
* | dex: remove useless code | Sonic | 2018-12-19 | 1 | -115/+0 |
| | |||||
* | vendor: sync to latest core | Jimmy Hu | 2018-12-19 | 6 | -114/+124 |
| | |||||
* | vendor: sync to latest core | Jimmy Hu | 2018-12-19 | 6 | -107/+134 |
| | |||||
* | dex: peer: more fix on ID conversion | Wei-Ning Huang | 2018-12-19 | 1 | -53/+53 |
| | |||||
* | vendor: sync to latest core | Wei-Ning Huang | 2018-12-19 | 7 | -222/+259 |
| | |||||
* | core: vm: governance: add node info | Wei-Ning Huang | 2018-12-19 | 7 | -14/+177 |
| | |||||
* | dex: fix conflict caused by rebase | Wei-Ning Huang | 2018-12-19 | 4 | -59/+79 |
| | |||||
* | vendor: sync to latest core | Jimmy Hu | 2018-12-19 | 2 | -17/+26 |
| | |||||
* | HACK: enable TX handling temporarily | Wei-Ning Huang | 2018-12-19 | 1 | -0/+3 |
| | |||||
* | dex: increase governance tx gas price | Wei-Ning Huang | 2018-12-19 | 1 | -0/+4 |
| | |||||
* | core: validate roundHeight mapping in governance contract | Wei-Ning Huang | 2018-12-19 | 7 | -4/+56 |
| | |||||
* | vendor: sync to latest core | Jimmy Hu | 2018-12-19 | 12 | -62/+164 |
| | |||||
* | core: GenerateChainWithRoundChange for testing | Sonic | 2018-12-19 | 3 | -0/+598 |
| | |||||
* | dex: proofread and fix bugs | Wei-Ning Huang | 2018-12-19 | 1 | -161/+145 |
| | |||||
* | test: disable standalone RPC server as BroadcastBlock currently cause forking | Wei-Ning Huang | 2018-12-19 | 2 | -11/+9 |
| | |||||
* | test: start a separate RPC node for testing block sync | Wei-Ning Huang | 2018-12-19 | 6 | -19/+39 |
| | |||||
* | vendor: sync to latest consensus core | Wei-Ning Huang | 2018-12-19 | 3 | -314/+262 |
| | |||||
* | app: add back mutex to prevent concurrent map read write | BJ4 | 2018-12-19 | 1 | -1/+9 |
| | |||||
* | dex: remove finalization information in block cache | Jimmy Hu | 2018-12-19 | 1 | -0/+2 |
| | |||||
* | test: save log to unique dir to preserve logs accross tests | Wei-Ning Huang | 2018-12-19 | 1 | -2/+5 |
| | |||||
* | app: lock by chain correctly and remove old core in vendor | BJ4 | 2018-12-19 | 51 | -9898/+109 |
| | |||||
* | test: add faucet address into genesis | Wei-Ning Huang | 2018-12-19 | 1 | -0/+4 |
| | |||||
* | core: vm: governance: remove maxInterval | Wei-Ning Huang | 2018-12-19 | 8 | -83/+29 |
| | |||||
* | core: vm: add nodesLengh method for reading nodeSet size | Wei-Ning Huang | 2018-12-19 | 1 | -0/+20 |
| | |||||
* | Rename import due to dexon-consensus rename | Wei-Ning Huang | 2018-12-19 | 101 | -423/+10200 |
| | |||||
* | vendor: sync to latest core | Jimmy Hu | 2018-12-19 | 6 | -59/+251 |
| | |||||
* | dex: implement PullBlocks/PullVotes (#1) | Jimmy Hu | 2018-12-19 | 6 | -2/+415 |
| | |||||
* | dex: minor refactor | Wei-Ning Huang | 2018-12-19 | 3 | -19/+24 |
| | |||||
* | app: add lock to prevent concurrent map read write | Bojie Wu | 2018-12-19 | 1 | -0/+3 |
| | |||||
* | dex: set blocktime to millisecond timestamp | Wei-Ning Huang | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | dex: increase TX queue size | Wei-Ning Huang | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | core: tx_pool: remove transactions on BlockConfirmed event | Wei-Ning Huang | 2018-12-19 | 5 | -42/+55 |
| | |||||
* | vendor: sync consensus core and fix conflic | Jimmy Hu | 2018-12-19 | 6 | -44/+69 |
| | |||||
* | vendor: sync consensus core and fix conflict | Wei-Ning Huang | 2018-12-19 | 12 | -52/+177 |
| | |||||
* | dex: add block gas limit into governance | Wei-Ning Huang | 2018-12-19 | 6 | -13/+52 |
| | |||||
* | test: add testkey | Wei-Ning Huang | 2018-12-19 | 1 | -0/+1 |
| | |||||
* | app: refactor prepare logic | Bojie Wu | 2018-12-19 | 1 | -11/+17 |
| | |||||
* | misc: ignore files in test | Jimmy Hu | 2018-12-19 | 1 | -0/+4 |
| | |||||
* | app: using lock correctly to use map safely | Bojie Wu | 2018-12-19 | 2 | -119/+163 |
| | |||||
* | cmd: monkey: create random accounts to simulate network traffic | Wei-Ning Huang | 2018-12-19 | 1 | -34/+96 |
| | |||||
* | app: fix concurrent map read write issue and accept fail transaction when ↵ | Bojie Wu | 2018-12-19 | 1 | -1/+7 |
| | | | | round change | ||||
* | core: fix blockReward serialization | Wei-Ning Huang | 2018-12-19 | 4 | -39/+30 |
| | |||||
* | app: fix nil pointer issue | Bojie Wu | 2018-12-19 | 1 | -4/+6 |
| | |||||
* | vendor: sync consensus core and fix conflict | Wei-Ning Huang | 2018-12-19 | 13 | -151/+463 |
| | |||||
* | app: add cache mechanism to increase performance | Bojie Wu | 2018-12-19 | 6 | -253/+200 |
| | |||||
* | app: add mutex to prevent concurrent read write map | Bojie Wu | 2018-12-19 | 1 | -0/+3 |
| | |||||
* | core: set correct balance for governance contract | Wei-Ning Huang | 2018-12-19 | 3 | -6/+7 |
| | |||||
* | test: add genesis balance | Wei-Ning Huang | 2018-12-19 | 1 | -1/+5 |
| | |||||
* | dex: update default network ID | Wei-Ning Huang | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | dex: fix types changes in consensus core | Sonic | 2018-12-19 | 1 | -10/+9 |
| | |||||
* | dex: return round in get block rpc output | Wei-Ning Huang | 2018-12-19 | 3 | -4/+6 |
| | |||||
* | app: fix concurrent read write issue with map | Bojie Wu | 2018-12-19 | 1 | -0/+6 |
| | |||||
* | dex: remove uneeded info from block header | Wei-Ning Huang | 2018-12-19 | 5 | -106/+93 |
| | |||||
* | core: types: fix header marshal json | Sonic | 2018-12-19 | 2 | -34/+72 |
| | |||||
* | vendor: sync consensus core and fix conflict | Wei-Ning Huang | 2018-12-19 | 17 | -214/+200 |
| | |||||
* | app: fix bug when prepare transaction | Bojie Wu | 2018-12-19 | 1 | -2/+7 |
| | |||||
* | dex: fix test | Sonic | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | Rename geth -> gdex and fix Dockerfile | Wei-Ning Huang | 2018-12-19 | 31 | -273/+273 |
| | |||||
* | cmd: add a simple monkey tool for stress test | Wei-Ning Huang | 2018-12-19 | 2 | -1/+94 |
| | |||||
* | vendor: sync consensus core | Wei-Ning Huang | 2018-12-19 | 4 | -47/+43 |
| | |||||
* | app: correct process pending block logic | Bojie Wu | 2018-12-19 | 7 | -174/+183 |
| | |||||
* | dex: fix missing randomness assignment | Wei-Ning Huang | 2018-12-19 | 2 | -2/+3 |
| | |||||
* | test: add script for syncing consensus core | Wei-Ning Huang | 2018-12-19 | 1 | -0/+3 |
| | |||||
* | vendor: use govendor to import dexon-consensus-core | Wei-Ning Huang | 2018-12-19 | 167 | -3/+349011 |
| | |||||
* | dex: fix DKG round switching | Wei-Ning Huang | 2018-12-19 | 3 | -10/+22 |
| | |||||
* | dex: prevent broadcasting agreement and randomness indefinitely | Wei-Ning Huang | 2018-12-19 | 1 | -2/+6 |
| | |||||
* | dex: fix round switching and initialize dMoment correctly | Wei-Ning Huang | 2018-12-19 | 3 | -4/+12 |
| | |||||
* | dex: misc fixes | Wei-Ning Huang | 2018-12-19 | 3 | -11/+20 |
| | |||||
* | app: check nonce and balance in prepare payload | Bojie Wu | 2018-12-19 | 3 | -25/+114 |
| | |||||
* | geth: add propose flag to enable/disable proposing | Sonic | 2018-12-19 | 4 | -0/+33 |
| | |||||
* | core: included Dexcon metadata in block | Wei-Ning Huang | 2018-12-19 | 3 | -7/+16 |
| | |||||
* | Remove reference of Rinkeby network. | Wei-Ning Huang | 2018-12-19 | 12 | -88/+5 |
| | | | | We do not need ethereum Rinkeby network in our system, remove it. | ||||
* | core: populate genesisAlloc in source code with DEXON genesis data | Wei-Ning Huang | 2018-12-19 | 6 | -30/+86 |
| | |||||
* | dex: no need to rlp encode/decode now, consensus supports it | Sonic | 2018-12-19 | 4 | -41/+31 |
| | |||||
* | dex: use RLP to encode contract payload data | Wei-Ning Huang | 2018-12-19 | 2 | -12/+12 |
| | |||||
* | dex: fix public key conversion | Wei-Ning Huang | 2018-12-19 | 1 | -6/+2 |
| | |||||
* | dex: fix DKGMasterPublicKey and DKGComplaints unmarshal | Wei-Ning Huang | 2018-12-19 | 1 | -3/+2 |
| | |||||
* | dex: pass logger object to consensus core | Wei-Ning Huang | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | test: update run_test.sh | Wei-Ning Huang | 2018-12-19 | 2 | -2/+8 |
| | |||||
* | app: implement verify block logic | Bojie Wu | 2018-12-19 | 3 | -23/+246 |
| | |||||
* | test: update test configuration | Wei-Ning Huang | 2018-12-19 | 1 | -2/+2 |
| | |||||
* | consensus: dexcon: fetch config from state | Wei-Ning Huang | 2018-12-19 | 7 | -41/+51 |
| | |||||
* | core: vm: add blockReward to governance | Wei-Ning Huang | 2018-12-19 | 5 | -23/+58 |
| | |||||
* | dex: fix public key parsing due to changes in consensus core | Wei-Ning Huang | 2018-12-19 | 8 | -26/+29 |
| | |||||
* | core: set governance owner in genesis | Wei-Ning Huang | 2018-12-19 | 4 | -15/+27 |
| | |||||
* | params: load blockReward from genesis JSON file | Wei-Ning Huang | 2018-12-19 | 5 | -3/+114 |
| | |||||
* | app: fixup message format | Wei-Ning Huang | 2018-12-19 | 2 | -11/+11 |
| | |||||
* | app: implement new insert blocks logic | Bojie Wu | 2018-12-19 | 5 | -166/+314 |
| | |||||
* | test: create account storage for governance contract | Wei-Ning Huang | 2018-12-19 | 2 | -1/+6 |
| | |||||
* | core/dex: fix governance contract implementation | Wei-Ning Huang | 2018-12-19 | 2 | -27/+21 |
| | |||||
* | core: vm: implement RAND opcode support | Wei-Ning Huang | 2018-12-19 | 10 | -0/+46 |
| | | | | | | DEXON has a built-in on chain random oracle that allow one to retrieve a random variable. Add a new opcode `RAND` to load the random variable onto the stack. | ||||
* | dex: add initial block to Run | Jimmy Hu | 2018-12-19 | 1 | -1/+3 |
| | |||||
* | dex: polish network related function | Sonic | 2018-12-19 | 4 | -103/+211 |
| | |||||
* | dex: let notary nodes connect to some dkg nodes | Sonic | 2018-12-19 | 4 | -185/+204 |
| | | | | BuildConnection builds notary and dkg connections together | ||||
* | params: update seed node ip | Wei-Ning Huang | 2018-12-19 | 1 | -2/+2 |
| | |||||
* | dex/core: misc bug fixes | Wei-Ning Huang | 2018-12-19 | 9 | -10/+27 |
| | |||||
* | dex: register ethereum APIs | Wei-Ning Huang | 2018-12-19 | 3 | -1/+1036 |
| | |||||
* | dex: implement peerSetLoop | Sonic | 2018-12-19 | 6 | -11/+74 |
| | |||||
* | app: fix log message | Bojie Wu | 2018-12-19 | 1 | -8/+8 |
| | |||||
* | hack: temp fix for running tests | Wei-Ning Huang | 2018-12-19 | 2 | -8/+5 |
| | |||||
* | test: update genesis and keypairs | Wei-Ning Huang | 2018-12-19 | 11 | -33/+43 |
| | |||||
* | app: correct dexon application logic | Bojie Wu | 2018-12-19 | 2 | -125/+88 |
| | |||||
* | core: fix nil map initialization | Wei-Ning Huang | 2018-12-19 | 2 | -1/+9 |
| | |||||
* | dex: gov: using dex-consensus-core NodeSetCache | Sonic | 2018-12-19 | 5 | -64/+71 |
| | |||||
* | app: init map | Bojie Wu | 2018-12-19 | 1 | -15/+17 |
| | |||||
* | core: setup stake in order so genesis block is deterministic | Wei-Ning Huang | 2018-12-19 | 2 | -2/+27 |
| | |||||
* | dex: add subprotocols | Sonic | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | test: add a simple test script to launch 7 local nodes | Wei-Ning Huang | 2018-12-19 | 1 | -0/+17 |
| | |||||
* | test: fix genesis.json | Wei-Ning Huang | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | dex: run consensus core on Start | Wei-Ning Huang | 2018-12-19 | 2 | -2/+3 |
| | |||||
* | core: vm: modify dkg threshold | Jimmy Hu | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | test: remove uneeded nodeky | Wei-Ning Huang | 2018-12-19 | 1 | -1/+0 |
| | |||||
* | app: add default block reward | Bojie Wu | 2018-12-19 | 3 | -4/+6 |
| | |||||
* | dex: set tmp dMoment for testing | Wei-Ning Huang | 2018-12-19 | 1 | -1/+2 |
| | |||||
* | test: add 3 more test node data | Wei-Ning Huang | 2018-12-19 | 5 | -2/+21 |
| | |||||
* | params: update bootnode info | Wei-Ning Huang | 2018-12-19 | 2 | -10/+3 |
| | |||||
* | dex: fix flaky test | Sonic | 2018-12-19 | 1 | -0/+12 |
| | |||||
* | dex: add self node meta after Start | Sonic | 2018-12-19 | 5 | -6/+51 |
| | |||||
* | dex: add method to get NumChains, NotarySet, DKGSet easily | Sonic | 2018-12-19 | 6 | -43/+80 |
| | |||||
* | dex: move dexcon blockdb into datadir | Wei-Ning Huang | 2018-12-19 | 3 | -6/+8 |
| | |||||
* | core: vm: add GovernanceStateHelper test | Wei-Ning Huang | 2018-12-19 | 2 | -0/+98 |
| | |||||
* | vendor: add github.com/stretchr/testify/suite | Wei-Ning Huang | 2018-12-19 | 4 | -1/+254 |
| | |||||
* | test: update geneiss config | Wei-Ning Huang | 2018-12-19 | 1 | -4/+4 |
| | |||||
* | dex: interface update | Wei-Ning Huang | 2018-12-19 | 1 | -1/+3 |
| | |||||
* | test: add test genesis and node keys | Wei-Ning Huang | 2018-12-19 | 5 | -8/+11 |
| | |||||
* | app: calculate block reward according to chain num | Bojie Wu | 2018-12-19 | 2 | -14/+14 |
| | |||||
* | app: pass chain config instead of nil | Bojie Wu | 2018-12-19 | 1 | -3/+6 |
| | |||||
* | dex: network: implement the network interface | Sonic | 2018-12-19 | 10 | -59/+1025 |
| | |||||
* | core: populate genesis CRS in genesis state | Wei-Ning Huang | 2018-12-19 | 3 | -1/+9 |
| | |||||
* | misc: add testing nodeKey and genesis.json | Wei-Ning Huang | 2018-12-19 | 3 | -1/+52 |
| | |||||
* | dex: bug fix to allow running geth without crashing | Wei-Ning Huang | 2018-12-19 | 5 | -54/+52 |
| | |||||
* | dex: implement sendTx related governance methods | Wei-Ning Huang | 2018-12-19 | 3 | -6/+133 |
| | |||||
* | node: change default datadir folder name to dexon | Wei-Ning Huang | 2018-12-19 | 1 | -3/+3 |
| | |||||
* | dex: pass p2p nodeKey to Dexon instance | Wei-Ning Huang | 2018-12-19 | 6 | -15/+25 |
| | |||||
* | app: modify for new interface method | Bojie Wu | 2018-12-19 | 1 | -19/+33 |
| | |||||
* | core: vm: validate if mpk, complaint, finalize is in DKG set | Wei-Ning Huang | 2018-12-19 | 1 | -36/+62 |
| | |||||
* | core: vm: allow other people to stake for a node | Wei-Ning Huang | 2018-12-19 | 1 | -6/+0 |
| | |||||
* | dex: implement some governance interface functions | Wei-Ning Huang | 2018-12-19 | 6 | -236/+441 |
| | |||||
* | dex: governance: implement governance interface | Wei-Ning Huang | 2018-12-19 | 5 | -27/+61 |
| | |||||
* | app: implement new interface method | Bojie Wu | 2018-12-19 | 2 | -27/+160 |
| | |||||
* | dex: add api_backend.go and it's dependencies | Wei-Ning Huang | 2018-12-19 | 4 | -2/+557 |
| | |||||
* | dex: update application interface | Wei-Ning Huang | 2018-12-19 | 1 | -20/+27 |
| | |||||
* | app: correct validation logic | Bojie Wu | 2018-12-19 | 1 | -4/+10 |
| | |||||
* | core: populate dexon configuration in SetupGenesisBlock | Wei-Ning Huang | 2018-12-19 | 3 | -35/+52 |
| | |||||
* | dex: implement dexon application interface | Bojie Wu | 2018-12-19 | 5 | -22/+299 |
| | |||||
* | core: add stake and public key to genesis account info | Wei-Ning Huang | 2018-12-19 | 4 | -46/+95 |
| | |||||
* | core: vm: check pk ownership in stake() | Wei-Ning Huang | 2018-12-19 | 1 | -1/+12 |
| | |||||
* | core: vm: expose nodes as public | Wei-Ning Huang | 2018-12-19 | 1 | -14/+52 |
| | |||||
* | core: vm: add eventlog for governance contract | Wei-Ning Huang | 2018-12-19 | 1 | -41/+98 |
| | |||||
* | dex: remove DAO related code | Sonic | 2018-12-19 | 2 | -62/+2 |
| | |||||
* | core: vm: refactor and add DKGFinalizeds related implementations | Wei-Ning Huang | 2018-12-19 | 3 | -98/+313 |
| | |||||
* | dex: redesign p2p network topology | Sonic | 2018-12-19 | 21 | -652/+2419 |
| | | | | | | | | | | - Let p2p server support direct connection and group connection. - Introduce node meta table to maintain IP of all nodes in node set, in memory and let nodes in the network can sync this table. - Let peerSet able to manage direct connections to notary set and dkg set. The mechanism to refresh the network topology when configuration round change is not done yet. | ||||
* | core: vm: implement the rest of governance contract methods | Wei-Ning Huang | 2018-12-19 | 4 | -136/+291 |
| | |||||
* | core: vm: check if caller already staked when adding dkg mpk | Jimmy Hu | 2018-12-19 | 1 | -0/+7 |
| | |||||
* | core: vm: fix bug and add gas usage | Wei-Ning Huang | 2018-12-19 | 2 | -22/+55 |
| | |||||
* | core: vm: finish implementing state helper | Wei-Ning Huang | 2018-12-19 | 1 | -23/+206 |
| | |||||
* | core: vm: update governance contract ABI | Wei-Ning Huang | 2018-12-19 | 1 | -9/+75 |
| | |||||
* | core: vm: implement governance contract methods | Wei-Ning Huang | 2018-12-19 | 1 | -51/+218 |
| | |||||
* | core: vm: add governance contract skeleton | Wei-Ning Huang | 2018-12-19 | 3 | -7/+502 |
| | |||||
* | dex: update consensus core interface | Wei-Ning Huang | 2018-12-19 | 4 | -36/+38 |
| | |||||
* | Change import go github.com/dexon-foundation/dexon | Wei-Ning Huang | 2018-12-19 | 748 | -3055/+3244 |
| | |||||
* | Use dex.Config instead of eth.Config | Wei-Ning Huang | 2018-12-19 | 7 | -127/+37 |
| | |||||
* | dex: implement notary node info propagation and management mechanism | Sonic | 2018-12-19 | 3 | -16/+183 |
| | |||||
* | dex: implement notarySet for keeping notary set info | Sonic | 2018-12-19 | 1 | -0/+203 |
| | |||||
* | dex: introduce dex64 and remove eth62, eth63 | Sonic | 2018-12-19 | 3 | -18/+37 |
| | |||||
* | dex: let peer able to send notary node info | Sonic | 2018-12-19 | 1 | -3/+41 |
| | |||||
* | dex: let peerSet able to manage notary peers | Sonic | 2018-12-19 | 1 | -1/+64 |
| | |||||
* | p2p: implement AddNotaryPeer and RemoveNotaryPeer | Sonic | 2018-12-19 | 3 | -5/+184 |
| | | | | | | | | | | AddNotaryPeer adds node to static node set so that server will maintain the connection with the notary node. AddNotaryPeer also sets the notaryConn flag to allow the node to always connect, even if the slot are full. RemoveNotaryPeer removes node from static, then disconnect and unsets the notaryConn flag. | ||||
* | dex: fix use of internal package not allowed | Sonic | 2018-12-19 | 1 | -1/+1 |
| | |||||
* | Change package name from eth to dex | Sonic | 2018-12-19 | 8 | -8/+8 |
| | |||||
* | Copy codebase from eth | Sonic | 2018-12-19 | 8 | -0/+2407 |
| | |||||
* | dex: update interface and use static bls lib | Wei-Ning Huang | 2018-12-19 | 14 | -385/+99 |
| | |||||
* | dex: make geth buildable and update interface skeleton | Wei-Ning Huang | 2018-12-19 | 19 | -10/+1496 |
| | |||||
* | Add udpated governance interface and app interface | Wei-Ning Huang | 2018-12-19 | 2 | -2/+34 |
| | |||||
* | Add dex package | Wei-Ning Huang | 2018-12-19 | 2 | -0/+80 |
| | |||||
* | Update testchain config and add test bootnode key | Wei-Ning Huang | 2018-12-19 | 3 | -10/+7 |
| | |||||
* | Add initial DEXON consensus engine implementation skeleton | Wei-Ning Huang | 2018-12-19 | 5 | -3/+178 |
| | |||||
* | params, swarm: release Geth v1.8.20 and Swarm v0.3.8 | Péter Szilágyi | 2018-12-11 | 2 | -8/+8 |
| | |||||
* | cmd/geth, core, eth: implement Constantinople override flag (#18273) | Martin Holst Swende | 2018-12-11 | 7 | -5/+21 |
| | | | | | | | | * geth/core/eth: implement constantinople override flag * les: implemnent constantinople override flag for les clients * cmd/geth, eth, les: fix typo, move flag to experimentals | ||||
* | Merge pull request #18281 from karalabe/puppeth-faucet | Péter Szilágyi | 2018-12-11 | 7 | -3/+10 |
|\ | | | | | cmd/faucet, cmd/puppeth: fix enode and compose regressions, expose UDP | ||||
| * | cmd/puppeth: support latest docker compose, expose faucet UDP | Péter Szilágyi | 2018-12-11 | 6 | -2/+9 |
| | | |||||
| * | cmd/faucet: fix faucet static peer regression | Péter Szilágyi | 2018-12-11 | 1 | -1/+1 |
|/ | |||||
* | cmd/swarm, metrics, swarm/api/client, swarm/storage, swarm/metrics, ↵ | Elad | 2018-12-11 | 8 | -82/+368 |
| | | | | swarm/api/http: add instrumentation (#18274) | ||||
* | Merge pull request #18271 from karalabe/1.8.20-chts | Péter Szilágyi | 2018-12-10 | 1 | -12/+12 |
|\ | | | | | params: update CHTs for the 1.8.20 release | ||||
| * | params: update CHTs for the 1.8.20 release | Péter Szilágyi | 2018-12-10 | 1 | -12/+12 |
| | | |||||
* | | Merge pull request #18028 from ryanschneider/blockhash-whitelist | Péter Szilágyi | 2018-12-10 | 8 | -6/+56 |
|\ \ | | | | | | | cmd, eth: add support for `--whitelist <blocknum>=<hash>` | ||||
| * | | cmd/utils, eth: minor polishes on whitelist code | Péter Szilágyi | 2018-12-10 | 2 | -41/+29 |
| | | | |||||
| * | | cmd, eth: Add support for `--whitelist <blocknum>=<hash>,...` flag | Ryan Schneider | 2018-12-10 | 8 | -5/+67 |
| | | | | | | | | | | | | | | | * Rejects peers that respond with a different hash for any of the passed in block numbers. * Meant for emergency situations when the network forks unexpectedly. | ||||
* | | | swarm/network: Correct ambiguity in compared addresses (#18251) | lash | 2018-12-10 | 1 | -2/+1 |
|/ / | |||||
* | | ethereum: fix typo in interfaces.go (#18266) | YOSHIDA Masanori | 2018-12-10 | 1 | -1/+1 |
| | | | | | | | | | | | | * Fix typo in interfaces.go * Update interfaces.go | ||||
* | | Merge pull request #18269 from Quasilyte/patch-1 | Péter Szilágyi | 2018-12-10 | 1 | -1/+1 |
|\ \ | |/ |/| | light: fix duplicated argument in bytes.Equal call | ||||
| * | light: fix duplicated argument in bytes.Equal call | Iskander (Alex) Sharipov | 2018-12-10 | 1 | -1/+1 |
|/ | | | | Most probably a copy/paste kind of error. Found with gocritic `dupArg` checker. | ||||
* | node, rpc: log cleanups in ipc listener function (#18124) | Péter Szilágyi | 2018-12-10 | 2 | -3/+3 |
|\ | | | | | node,rpc: remove unused log in ipc listener function | ||||
| * | remove unrelated code | Franklin | 2018-11-28 | 2 | -6/+2 |
| | | |||||
| * | . | Franklin | 2018-11-20 | 3 | -5/+9 |
| | | |||||
* | | Merge pull request #17914 from holiman/block_analysis | Péter Szilágyi | 2018-12-10 | 5 | -27/+175 |
|\ \ | | | | | | | core/vm, eth: add standard json tracing into filesystem dumps | ||||
| * | | eth, internal/web3ext: tiny polishes in tracers | Péter Szilágyi | 2018-12-10 | 2 | -77/+97 |
| | | | |||||
| * | | cmd/evm, core/vm, eth: implement api methods to do stdjson dump to local ↵ | Martin Holst Swende | 2018-12-10 | 5 | -20/+148 |
|/ / | | | | | | | filesystem | ||||
* | | Merge pull request #18268 from karalabe/forkit | Péter Szilágyi | 2018-12-10 | 1 | -2/+2 |
|\ \ | | | | | | | params: set mainnet and Rinkeby Constantinople fork blocks | ||||
| * | | params: set mainnet and Rinkeby Constantinople fork blocks | Péter Szilágyi | 2018-12-10 | 1 | -2/+2 |
|/ / | |||||
* | | eth/tracers: fixed incorrect storage from prestate_tracer (#18253) | Max Sistemich | 2018-12-10 | 2 | -17/+14 |
| | | | | | | | | | | | | * eth: fixed incorrect storage from prestate_tracer * eth/tracers: updated assets.go | ||||
* | | cmd/puppeth: fix rogue quote in alethGenesisSpec JSON (#18262) | Javier Peletier | 2018-12-10 | 1 | -1/+1 |
| | | |||||
* | | node: warn when using deprecated config/resource files (#18199) | Felix Lange | 2018-12-07 | 1 | -9/+35 |
| | | |||||
* | | Merge pull request #18211 from karalabe/drop-fd-limit | Péter Szilágyi | 2018-12-07 | 1 | -8/+3 |
|\ \ | | | | | | | cmd/utils: max out the OS file allowance, don't cap to 2K |