Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | core: vm: reorder minGasPriceLoc | Wei-Ning Huang | 2019-03-17 | 1 | -4/+4 |
| | |||||
* | core: fill in genesis timstamp and remove dMoment from protocol handshake (#263) | Wei-Ning Huang | 2019-03-17 | 1 | -3/+4 |
| | | | | | Fill in dmoment as genesis block timestamp. This allow us to remove dMoment check from protocol handshake since genesis block hash itself will protect us against different dMoment. | ||||
* | dex: implement recovery mechanism (#258) | Wei-Ning Huang | 2019-03-17 | 1 | -4/+33 |
| | | | | | | | | | * dex: implement recovery mechanism The DEXON recovery protocol allows us to use the Ethereum blockchain as a fallback consensus chain to coordinate recovery. * fix | ||||
* | core: vm: group min gas price with related state variables (#257) | Wei-Ning Huang | 2019-03-14 | 1 | -8/+8 |
| | |||||
* | params: update testnet config to 40 nodes | Jimmy Hu | 2019-03-13 | 1 | -7/+7 |
| | |||||
* | core: vm: remove delegation mechanism (#245) | Wei-Ning Huang | 2019-03-12 | 1 | -3/+3 |
| | | | | | | | | | | | | | 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: vm: expose CRSRound and DKGRound and fix consistency (#236) | Wei-Ning Huang | 2019-03-12 | 1 | -3/+3 |
| | |||||
* | params: Change taipei to 40 nodes (#227) | Jimmy Hu | 2019-03-12 | 1 | -3/+3 |
| | |||||
* | params: Update config (#224) | Jimmy Hu | 2019-03-12 | 1 | -9/+9 |
| | | | | | | * params: Update config * Update taipei to 30 nodes setup | ||||
* | core: vm: validate addDKGMasterPublicKey caller properly (#220) | Wei-Ning Huang | 2019-03-12 | 1 | -3/+3 |
| | | | | | | There are two keys in the system: one is the owner's key which is used for stake / unstake. The other is the node key which is used for DKG related operations. We need to allow them to be different so fund renmains safe even if the the node key is lost. | ||||
* | core: vm: flatten governance | Wei-Ning Huang | 2019-03-12 | 1 | -3/+3 |
| | |||||
* | core: sync to latest core (#214) | Jimmy Hu | 2019-03-12 | 1 | -1/+1 |
| | | | | | * vendor: sync to latest core * fix for single chain | ||||
* | params: add Yilan network (#207) | Mission Liao | 2019-03-12 | 1 | -0/+37 |
| | | | | | | * Add Yilan network * Fixup: remove dummy log | ||||
* | core: Fixed gas price (#205) | Jimmy Hu | 2019-03-12 | 1 | -3/+9 |
| | | | | | | | | | | * 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: set oracle contract's code (#209) | Sonic | 2019-03-12 | 1 | -2/+2 |
| | | | So that other contract can call oracle contract. | ||||
* | core: Remove K, Phi and NumChains from Governance (#198) | Jimmy Hu | 2019-03-12 | 1 | -23/+8 |
| | | | | | | * change default sync_core.sh * vendor: sync to latest core * core: Remove K, Phi and NumChain | ||||
* | copy testnet config to taipei | Jimmy Hu | 2019-03-12 | 1 | -8/+8 |
| | |||||
* | vendor, param: sync to latest core and update dmoment (#182) | Jimmy Hu | 2019-03-12 | 1 | -1/+1 |
| | | | | | | * vendor: sync to latest core * params: update dmoment | ||||
* | vendor, param: sync to latest core and update testnet config (#178) | Jimmy Hu | 2019-03-12 | 1 | -3/+3 |
| | | | | | * param: update testnet config * vendor: sync to latest core | ||||
* | params: Update taipei config | Jimmy Hu | 2019-03-12 | 1 | -4/+4 |
| | |||||
* | params: update testnet config (#177) | Jimmy Hu | 2019-03-12 | 1 | -3/+3 |
| | | | | | * vendor:sync to latest core * params: Update config for testnet | ||||
* | params: Update testnet dmoment | Jimmy Hu | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | params: Update testnet config (#167) | Jimmy Hu | 2019-03-12 | 1 | -4/+4 |
| | | | | | | | | * vendor: sync to latest core * param: update testnet config * params: update dmoment | ||||
* | param: Update testnet dmoment (#166) | Jimmy Hu | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | params: update testnet dMoment | Wei-Ning Huang | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | params: update testnet genesis and dMoment | Wei-Ning Huang | 2019-03-12 | 1 | -4/+4 |
| | |||||
* | core: sync to latest core (#158) | Jimmy Hu | 2019-03-12 | 1 | -5/+5 |
| | | | | | | * vendor: sync to latest core * param: Update config * core: update genesis alloc | ||||
* | params: update testnet dMoment | Wei-Ning Huang | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | vendor: sync to latest core (#154) | Jimmy Hu | 2019-03-12 | 1 | -1/+1 |
| | | | | | | * vendor: sync to latest core with BA3.0 * params: Update dmoment | ||||
* | params: update testnet dMoment | Wei-Ning Huang | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | params: write dMoment into ChainConfig (#150) | Wei-Ning Huang | 2019-03-12 | 1 | -4/+10 |
| | |||||
* | params: update genesis config | Wei-Ning Huang | 2019-03-12 | 1 | -9/+9 |
| | |||||
* | consensus: implement DEXON cryptoeconomics v4.0 (#145) | Wei-Ning Huang | 2019-03-12 | 1 | -68/+79 |
| | |||||
* | core: vm: add totalSupply and totalStaked in the governance contract (#144) | Wei-Ning Huang | 2019-03-12 | 1 | -2/+2 |
| | | | | | | | Add totalSupply and totalStaked in the governance contract for the preperation of DEXON cryptoeconomics 4.0. Also removed the unstaked variable in node info and improve tests for delegate/undeleate. | ||||
* | core: vm: move governance abi to a separate file (#143) | Wei-Ning Huang | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | core: update testnet genesis_alloc | Jimmy Hu | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | core: vm: implement byzantine reporting mechanism (#128) | Wei-Ning Huang | 2019-03-12 | 1 | -3/+21 |
| | |||||
* | params: update taipei genesis config (#130) | Wei-Ning Huang | 2019-03-12 | 1 | -3/+3 |
| | |||||
* | core: update taipei testnet genesis config and alloc (#119) | Wei-Ning Huang | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | params: update taipei testnet genesis and config (#113) | Wei-Ning Huang | 2019-03-12 | 1 | -5/+5 |
| | |||||
* | core/vm: Add fine to governance. (#107) | Jimmy Hu | 2019-03-12 | 1 | -2/+2 |
| | | | | | | | | * 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 | ||||
* | params: enable constantinople fork for testnets | Wei-Ning Huang | 2019-03-12 | 1 | -1/+2 |
| | |||||
* | core: vm: Add `MPKReady` to governance (#97) | Jimmy Hu | 2019-03-12 | 1 | -2/+2 |
| | | | | | | * core/vm: Add DKGMPKReady * param: update GenesisHash * vendor: sync to latest core | ||||
* | core: vm: add undelegate fund lockup mechanism (#94) | Wei-Ning Huang | 2019-03-12 | 1 | -3/+8 |
| | | | | | 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 Huang | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | tests: updates testadata | Wei-Ning Huang | 2019-03-12 | 1 | -0/+30 |
| | |||||
* | core: fix tests | Wei-Ning Huang | 2019-03-12 | 1 | -3/+5 |
| | |||||
* | core: add Taipei testnet (#47) | Wei-Ning Huang | 2019-03-12 | 1 | -1/+30 |
| | | | | Add a new testnet named Taipei. | ||||
* | core: various changes on tps tuning (#46) | Wei-Ning Huang | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | governance: implement delegate/undelegate function and add tests (#33) | Wei-Ning Huang | 2019-03-12 | 1 | -3/+3 |
| | | | | | Implement delegate/undelegate function to allow others to delegate it's fund to stake on a node. Also added governance contract tests. | ||||
* | core: vm: add minStake to governance contract variable (#31) | Wei-Ning Huang | 2019-03-12 | 1 | -1/+6 |
| | |||||
* | core: validate DKG set with correct nodeset in round-2 (#19) | Wei-Ning Huang | 2019-03-12 | 1 | -1/+1 |
| | | | | | * vendor: sync consensus core * core: validate DKG set with correct nodeset in round-2 | ||||
* | params: Do not use DEXON config for test. (#15) | Jimmy Hu | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | test: increase numChains to 6 | Wei-Ning Huang | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | params: fix genesis block config and use testnet for test (#10) | Wei-Ning Huang | 2019-03-12 | 1 | -4/+4 |
| | |||||
* | app: fix core test | BJ4 | 2019-03-12 | 1 | -4/+5 |
| | |||||
* | core: vm: governance: remove maxInterval | Wei-Ning Huang | 2019-03-12 | 1 | -5/+1 |
| | |||||
* | dex: add block gas limit into governance | Wei-Ning Huang | 2019-03-12 | 1 | -1/+5 |
| | |||||
* | Remove reference of Rinkeby network. | Wei-Ning Huang | 2019-03-12 | 1 | -55/+0 |
| | | | | 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 | 2019-03-12 | 1 | -14/+39 |
| | |||||
* | core: vm: add blockReward to governance | Wei-Ning Huang | 2019-03-12 | 1 | -5/+5 |
| | |||||
* | core: set governance owner in genesis | Wei-Ning Huang | 2019-03-12 | 1 | -13/+15 |
| | |||||
* | params: load blockReward from genesis JSON file | Wei-Ning Huang | 2019-03-12 | 1 | -0/+7 |
| | |||||
* | dex/core: misc bug fixes | Wei-Ning Huang | 2019-03-12 | 1 | -1/+2 |
| | |||||
* | app: add default block reward | Bojie Wu | 2019-03-12 | 1 | -3/+4 |
| | |||||
* | app: calculate block reward according to chain num | Bojie Wu | 2019-03-12 | 1 | -11/+12 |
| | |||||
* | dex: network: implement the network interface | Sonic | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | core: populate genesis CRS in genesis state | Wei-Ning Huang | 2019-03-12 | 1 | -1/+3 |
| | |||||
* | core: populate dexon configuration in SetupGenesisBlock | Wei-Ning Huang | 2019-03-12 | 1 | -4/+24 |
| | |||||
* | Change import go github.com/dexon-foundation/dexon | Wei-Ning Huang | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | Update testchain config and add test bootnode key | Wei-Ning Huang | 2019-03-07 | 1 | -6/+6 |
| | |||||
* | Add initial DEXON consensus engine implementation skeleton | Wei-Ning Huang | 2019-03-07 | 1 | -3/+14 |
| | |||||
* | cmd, core, params: add support for Goerli | Péter Szilágyi | 2019-02-19 | 1 | -0/+27 |
| | | | | (cherry picked from commit b0ed083ead2d58cc25754eacdb48046eb2bc81cb) | ||||
* | params: new CHTs (#18577) | Felföldi Zsolt | 2019-01-30 | 1 | -12/+12 |
| | |||||
* | core, cmd/puppeth: implement constantinople fix, disable EIP-1283 (#18486) | Martin Holst Swende | 2019-01-30 | 1 | -8/+24 |
| | | | | | | | | | | | | | | | | | This PR adds a new fork which disables EIP-1283. Internally it's called Petersburg, but the genesis/config field is ConstantinopleFix. The block numbers are: 7280000 for Constantinople on Mainnet 7280000 for ConstantinopleFix on Mainnet 4939394 for ConstantinopleFix on Ropsten 9999999 for ConstantinopleFix on Rinkeby (real number decided later) This PR also defaults to using the same ConstantinopleFix number as whatever Constantinople is set to. That is, it will default to mainnet behaviour if ConstantinopleFix is not set.This means that for private networks which have already transitioned to Constantinople, this PR will break the network unless ConstantinopleFix is explicitly set! | ||||
* | params: postpone Constantinople due to net SSTORE reentrancy | Péter Szilágyi | 2019-01-16 | 1 | -1/+1 |
| | |||||
* | params: update CHTs for the 1.8.20 release | Péter Szilágyi | 2018-12-10 | 1 | -12/+12 |
| | |||||
* | params: set mainnet and Rinkeby Constantinople fork blocks | Péter Szilágyi | 2018-12-10 | 1 | -2/+2 |
| | |||||
* | params: update CHTs for the v1.8.19 release | Péter Szilágyi | 2018-11-28 | 1 | -12/+12 |
| | |||||
* | config: add constantinople block to testchainconfig | Martin Holst Swende | 2018-11-26 | 1 | -1/+1 |
| | |||||
* | params: add Constantinople block to AllXYZProtocolChanges (#18162) | Enrique Fynn | 2018-11-22 | 1 | -2/+2 |
| | | | | | | * params: Add Constantinople block to AllCliqueProtocolChanges * params: Add Constantinople block to AllEthashProtocolChanges | ||||
* | params: update CHTs | Péter Szilágyi | 2018-11-14 | 1 | -12/+12 |
| | |||||
* | params: add ropsten fork delay, update les checkpoints | Péter Szilágyi | 2018-10-05 | 1 | -13/+13 |
| | |||||
* | params: enable constantinople on ropsten at 4.2M | EOS Classic | 2018-10-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #17383 from holiman/eip1283 | Péter Szilágyi | 2018-09-21 | 1 | -2/+10 |
|\ | | | | | Eip1283 | ||||
| * | core, params: polish net gas metering PR a bit | Péter Szilágyi | 2018-09-18 | 1 | -2/+10 |
| | | |||||
* | | les, light, params: update light client CHTs | Péter Szilágyi | 2018-09-20 | 1 | -0/+39 |
| | | |||||
* | | core/vm: add switches to select evm+ewasm interpreters (#17687) | Guillaume Ballet | 2018-09-20 | 1 | -3/+12 |
|/ | | | | | Interpreter initialization is left to the PRs implementing them. Options for external interpreters are passed after a colon in the `--vm.ewasm` and `--vm.evm` switches. | ||||
* | params: fix typo (#17552) | Mymskmkt | 2018-09-03 | 1 | -1/+1 |
| | |||||
* | consensus/clique, light: light client snapshots on Rinkeby | Péter Szilágyi | 2018-08-21 | 1 | -0/+1 |
| | |||||
* | core/vm, params: implement EXTCODEHASH opcode (#17202) | gary rong | 2018-07-24 | 1 | -0/+2 |
| | | | | | | | | * core/vm, params: implement EXTCODEHASH opcode * core, params: tiny fixes and polish * core: add function description | ||||
* | params: fix golint warnings (#16853) | kiel barry | 2018-06-05 | 1 | -14/+21 |
| | | | params: fix golint warnings | ||||
* | core, vm, common: define constantinople fork + shift (#16045) | Martin Holst Swende | 2018-02-23 | 1 | -37/+46 |
| | | | | | | | | | | | | * core, vm, common: define constantinople fork, start implementation of shift instructions * vm: more testcases * vm: add tests for intpool erroneous intpool handling * core, vm, common: fix constantinople review concerns * vm: add string<->op definitions for new opcodes | ||||
* | cmd, consensus, core, miner: instatx clique for --dev (#15323) | Péter Szilágyi | 2017-10-24 | 1 | -10/+15 |
| | | | | | | | | * cmd, consensus, core, miner: instatx clique for --dev * cmd, consensus, clique: support configurable --dev block times * cmd, core: allow --dev to use persistent storage too | ||||
* | params: explain EIP150Hash (#15237) | Péter Szilágyi | 2017-10-10 | 1 | -2/+3 |
| | |||||
* | cmd/puppeth, params: enable Byzantium on all networks | Péter Szilágyi | 2017-10-02 | 1 | -3/+2 |
| | |||||
* | params: rename EIP150 gas table (#15167) | gary rong | 2017-09-20 | 1 | -1/+1 |
| | |||||
* | params: enable Byzantium on Ropsten/tests, fix failures | Péter Szilágyi | 2017-09-14 | 1 | -3/+3 |
| | |||||
* | consensus, core, params: rebrand Metro to Byzantium | Péter Szilágyi | 2017-09-14 | 1 | -36/+36 |
| | |||||
* | params: remove redundant consts, disable metro on AllProtocolChanges | Péter Szilágyi | 2017-07-04 | 1 | -11/+17 |
| | |||||
* | consensus, core, core/vm, parems: review fixes | Jeffrey Wilcke | 2017-05-18 | 1 | -18/+20 |
| | |||||
* | core/types: corrected abstract signing address | Jeffrey Wilcke | 2017-05-18 | 1 | -1/+1 |
| | |||||
* | consensus, core/*, params: metropolis preparation refactor | Jeffrey Wilcke | 2017-05-18 | 1 | -23/+56 |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit is a preparation for the upcoming metropolis hardfork. It prepares the state, core and vm packages such that integration with metropolis becomes less of a hassle. * Difficulty calculation requires header instead of individual parameters * statedb.StartRecord renamed to statedb.Prepare and added Finalise method required by metropolis, which removes unwanted accounts from the state (i.e. selfdestruct) * State keeps record of destructed objects (in addition to dirty objects) * core/vm pre-compiles may now return errors * core/vm pre-compiles gas check now take the full byte slice as argument instead of just the size * core/vm now keeps several hard-fork instruction tables instead of a single instruction table and removes the need for hard-fork checks in the instructions * core/vm contains a empty restruction function which is added in preparation of metropolis write-only mode operations * Adds the bn256 curve * Adds and sets the metropolis chain config block parameters (2^64-1) | ||||
* | cmd, core, params: add --rinkeby flag for fast connectivity | Péter Szilágyi | 2017-05-04 | 1 | -1/+17 |
| | |||||
* | consensus/clique: Proof of Authority (#3753) | Péter Szilágyi | 2017-04-10 | 1 | -10/+45 |
| | | | | This PR is a prototype implementation of plugable consensus engines and the Clique PoA protocol ethereum/EIPs#225 | ||||
* | core: refactor genesis handling | Felix Lange | 2017-03-23 | 1 | -68/+140 |
| | | | | | | | | | | | | | | | | | | | | | | | | This commit solves several issues concerning the genesis block: * Genesis/ChainConfig loading was handled by cmd/geth code. This left library users in the cold. They could specify a JSON-encoded string and overwrite the config, but didn't get any of the additional checks performed by geth. * Decoding and writing of genesis JSON was conflated in WriteGenesisBlock. This made it a lot harder to embed the genesis block into the forthcoming config file loader. This commit changes things so there is a single Genesis type that represents genesis blocks. All uses of Write*Genesis* are changed to use the new type instead. * If the chain config supplied by the user was incompatible with the current chain (i.e. the chain had already advanced beyond a scheduled fork), it got overwritten. This is not an issue in practice because previous forks have always had the highest total difficulty. It might matter in the future though. The new code reverts the local chain to the point of the fork when upgrading configuration. The change to genesis block data removes compression library dependencies from package core. | ||||
* | cmd/utils, core, params: fork all teh things for dev mode (#3697) | Jeffrey Wilcke | 2017-03-01 | 1 | -0/+10 |
| | |||||
* | core: improved bad block error reporting (#3320) | Jeffrey Wilcke | 2016-11-23 | 1 | -0/+14 |
| | |||||
* | core: implemented new ropsten testnet | Jeffrey Wilcke | 2016-11-23 | 1 | -8/+8 |
| | |||||
* | cmd/utils, mobile, params: set the correct field on testnet EIP 155 (#3272) | Péter Szilágyi | 2016-11-16 | 1 | -0/+2 |
| | |||||
* | mobile: port wrappers to EIP155 and EIP158 fork | Péter Szilágyi | 2016-11-15 | 1 | -0/+22 |
| | |||||
* | core/types, params: EIP#155 | Jeffrey Wilcke | 2016-11-13 | 1 | -4/+32 |
| | |||||
* | core, core/state, trie: EIP158, reprice & skip empty account write | Jeffrey Wilcke | 2016-11-13 | 1 | -0/+84 |
This commit implements EIP158 part 1, 2, 3 & 4 1. If an account is empty it's no longer written to the trie. An empty account is defined as (balance=0, nonce=0, storage=0, code=0). 2. Delete an empty account if it's touched 3. An empty account is redefined as either non-existent or empty. 4. Zero value calls and zero value suicides no longer consume the 25k reation costs. params: moved core/config to params Signed-off-by: Jeffrey Wilcke <jeffrey@ethereum.org> |