aboutsummaryrefslogtreecommitdiffstats
path: root/params/config.go
Commit message (Collapse)AuthorAgeFilesLines
* core: vm: reorder minGasPriceLocWei-Ning Huang2019-03-171-4/+4
|
* core: fill in genesis timstamp and remove dMoment from protocol handshake (#263)Wei-Ning Huang2019-03-171-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 Huang2019-03-171-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 Huang2019-03-141-8/+8
|
* params: update testnet config to 40 nodesJimmy Hu2019-03-131-7/+7
|
* core: vm: remove delegation mechanism (#245)Wei-Ning Huang2019-03-121-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 Huang2019-03-121-3/+3
|
* params: Change taipei to 40 nodes (#227)Jimmy Hu2019-03-121-3/+3
|
* params: Update config (#224)Jimmy Hu2019-03-121-9/+9
| | | | | | * params: Update config * Update taipei to 30 nodes setup
* core: vm: validate addDKGMasterPublicKey caller properly (#220)Wei-Ning Huang2019-03-121-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 governanceWei-Ning Huang2019-03-121-3/+3
|
* core: sync to latest core (#214)Jimmy Hu2019-03-121-1/+1
| | | | | * vendor: sync to latest core * fix for single chain
* params: add Yilan network (#207)Mission Liao2019-03-121-0/+37
| | | | | | * Add Yilan network * Fixup: remove dummy log
* core: Fixed gas price (#205)Jimmy Hu2019-03-121-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)Sonic2019-03-121-2/+2
| | | So that other contract can call oracle contract.
* core: Remove K, Phi and NumChains from Governance (#198)Jimmy Hu2019-03-121-23/+8
| | | | | | * change default sync_core.sh * vendor: sync to latest core * core: Remove K, Phi and NumChain
* copy testnet config to taipeiJimmy Hu2019-03-121-8/+8
|
* vendor, param: sync to latest core and update dmoment (#182)Jimmy Hu2019-03-121-1/+1
| | | | | | * vendor: sync to latest core * params: update dmoment
* vendor, param: sync to latest core and update testnet config (#178)Jimmy Hu2019-03-121-3/+3
| | | | | * param: update testnet config * vendor: sync to latest core
* params: Update taipei configJimmy Hu2019-03-121-4/+4
|
* params: update testnet config (#177)Jimmy Hu2019-03-121-3/+3
| | | | | * vendor:sync to latest core * params: Update config for testnet
* params: Update testnet dmomentJimmy Hu2019-03-121-1/+1
|
* params: Update testnet config (#167)Jimmy Hu2019-03-121-4/+4
| | | | | | | | * vendor: sync to latest core * param: update testnet config * params: update dmoment
* param: Update testnet dmoment (#166)Jimmy Hu2019-03-121-1/+1
|
* params: update testnet dMomentWei-Ning Huang2019-03-121-1/+1
|
* params: update testnet genesis and dMomentWei-Ning Huang2019-03-121-4/+4
|
* core: sync to latest core (#158)Jimmy Hu2019-03-121-5/+5
| | | | | | * vendor: sync to latest core * param: Update config * core: update genesis alloc
* params: update testnet dMomentWei-Ning Huang2019-03-121-1/+1
|
* vendor: sync to latest core (#154)Jimmy Hu2019-03-121-1/+1
| | | | | | * vendor: sync to latest core with BA3.0 * params: Update dmoment
* params: update testnet dMomentWei-Ning Huang2019-03-121-1/+1
|
* params: write dMoment into ChainConfig (#150)Wei-Ning Huang2019-03-121-4/+10
|
* params: update genesis configWei-Ning Huang2019-03-121-9/+9
|
* consensus: implement DEXON cryptoeconomics v4.0 (#145)Wei-Ning Huang2019-03-121-68/+79
|
* core: vm: add totalSupply and totalStaked in the governance contract (#144)Wei-Ning Huang2019-03-121-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 Huang2019-03-121-2/+2
|
* core: update testnet genesis_allocJimmy Hu2019-03-121-2/+2
|
* core: vm: implement byzantine reporting mechanism (#128)Wei-Ning Huang2019-03-121-3/+21
|
* params: update taipei genesis config (#130)Wei-Ning Huang2019-03-121-3/+3
|
* core: update taipei testnet genesis config and alloc (#119)Wei-Ning Huang2019-03-121-2/+2
|
* params: update taipei testnet genesis and config (#113)Wei-Ning Huang2019-03-121-5/+5
|
* core/vm: Add fine to governance. (#107)Jimmy Hu2019-03-121-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 testnetsWei-Ning Huang2019-03-121-1/+2
|
* core: vm: Add `MPKReady` to governance (#97)Jimmy Hu2019-03-121-2/+2
| | | | | | * core/vm: Add DKGMPKReady * param: update GenesisHash * vendor: sync to latest core
* core: vm: add undelegate fund lockup mechanism (#94)Wei-Ning Huang2019-03-121-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 Huang2019-03-121-2/+2
|
* tests: updates testadataWei-Ning Huang2019-03-121-0/+30
|
* core: fix testsWei-Ning Huang2019-03-121-3/+5
|
* core: add Taipei testnet (#47)Wei-Ning Huang2019-03-121-1/+30
| | | | Add a new testnet named Taipei.
* core: various changes on tps tuning (#46)Wei-Ning Huang2019-03-121-2/+2
|
* governance: implement delegate/undelegate function and add tests (#33)Wei-Ning Huang2019-03-121-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 Huang2019-03-121-1/+6
|
* core: validate DKG set with correct nodeset in round-2 (#19)Wei-Ning Huang2019-03-121-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 Hu2019-03-121-1/+1
|
* test: increase numChains to 6Wei-Ning Huang2019-03-121-1/+1
|
* params: fix genesis block config and use testnet for test (#10)Wei-Ning Huang2019-03-121-4/+4
|
* app: fix core testBJ42019-03-121-4/+5
|
* core: vm: governance: remove maxIntervalWei-Ning Huang2019-03-121-5/+1
|
* dex: add block gas limit into governanceWei-Ning Huang2019-03-121-1/+5
|
* Remove reference of Rinkeby network.Wei-Ning Huang2019-03-121-55/+0
| | | | We do not need ethereum Rinkeby network in our system, remove it.
* core: populate genesisAlloc in source code with DEXON genesis dataWei-Ning Huang2019-03-121-14/+39
|
* core: vm: add blockReward to governanceWei-Ning Huang2019-03-121-5/+5
|
* core: set governance owner in genesisWei-Ning Huang2019-03-121-13/+15
|
* params: load blockReward from genesis JSON fileWei-Ning Huang2019-03-121-0/+7
|
* dex/core: misc bug fixesWei-Ning Huang2019-03-121-1/+2
|
* app: add default block rewardBojie Wu2019-03-121-3/+4
|
* app: calculate block reward according to chain numBojie Wu2019-03-121-11/+12
|
* dex: network: implement the network interfaceSonic2019-03-121-1/+1
|
* core: populate genesis CRS in genesis stateWei-Ning Huang2019-03-121-1/+3
|
* core: populate dexon configuration in SetupGenesisBlockWei-Ning Huang2019-03-121-4/+24
|
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-03-121-1/+1
|
* Update testchain config and add test bootnode keyWei-Ning Huang2019-03-071-6/+6
|
* Add initial DEXON consensus engine implementation skeletonWei-Ning Huang2019-03-071-3/+14
|
* cmd, core, params: add support for GoerliPéter Szilágyi2019-02-191-0/+27
| | | | (cherry picked from commit b0ed083ead2d58cc25754eacdb48046eb2bc81cb)
* params: new CHTs (#18577)Felföldi Zsolt2019-01-301-12/+12
|
* core, cmd/puppeth: implement constantinople fix, disable EIP-1283 (#18486)Martin Holst Swende2019-01-301-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 reentrancyPéter Szilágyi2019-01-161-1/+1
|
* params: update CHTs for the 1.8.20 releasePéter Szilágyi2018-12-101-12/+12
|
* params: set mainnet and Rinkeby Constantinople fork blocksPéter Szilágyi2018-12-101-2/+2
|
* params: update CHTs for the v1.8.19 releasePéter Szilágyi2018-11-281-12/+12
|
* config: add constantinople block to testchainconfigMartin Holst Swende2018-11-261-1/+1
|
* params: add Constantinople block to AllXYZProtocolChanges (#18162)Enrique Fynn2018-11-221-2/+2
| | | | | | * params: Add Constantinople block to AllCliqueProtocolChanges * params: Add Constantinople block to AllEthashProtocolChanges
* params: update CHTsPéter Szilágyi2018-11-141-12/+12
|
* params: add ropsten fork delay, update les checkpointsPéter Szilágyi2018-10-051-13/+13
|
* params: enable constantinople on ropsten at 4.2MEOS Classic2018-10-011-1/+1
|
* Merge pull request #17383 from holiman/eip1283Péter Szilágyi2018-09-211-2/+10
|\ | | | | Eip1283
| * core, params: polish net gas metering PR a bitPéter Szilágyi2018-09-181-2/+10
| |
* | les, light, params: update light client CHTsPéter Szilágyi2018-09-201-0/+39
| |
* | core/vm: add switches to select evm+ewasm interpreters (#17687)Guillaume Ballet2018-09-201-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)Mymskmkt2018-09-031-1/+1
|
* consensus/clique, light: light client snapshots on RinkebyPéter Szilágyi2018-08-211-0/+1
|
* core/vm, params: implement EXTCODEHASH opcode (#17202)gary rong2018-07-241-0/+2
| | | | | | | | * core/vm, params: implement EXTCODEHASH opcode * core, params: tiny fixes and polish * core: add function description
* params: fix golint warnings (#16853)kiel barry2018-06-051-14/+21
| | | params: fix golint warnings
* core, vm, common: define constantinople fork + shift (#16045)Martin Holst Swende2018-02-231-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ágyi2017-10-241-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ágyi2017-10-101-2/+3
|
* cmd/puppeth, params: enable Byzantium on all networksPéter Szilágyi2017-10-021-3/+2
|
* params: rename EIP150 gas table (#15167)gary rong2017-09-201-1/+1
|
* params: enable Byzantium on Ropsten/tests, fix failuresPéter Szilágyi2017-09-141-3/+3
|
* consensus, core, params: rebrand Metro to ByzantiumPéter Szilágyi2017-09-141-36/+36
|
* params: remove redundant consts, disable metro on AllProtocolChangesPéter Szilágyi2017-07-041-11/+17
|
* consensus, core, core/vm, parems: review fixesJeffrey Wilcke2017-05-181-18/+20
|
* core/types: corrected abstract signing addressJeffrey Wilcke2017-05-181-1/+1
|
* consensus, core/*, params: metropolis preparation refactorJeffrey Wilcke2017-05-181-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 connectivityPéter Szilágyi2017-05-041-1/+17
|
* consensus/clique: Proof of Authority (#3753)Péter Szilágyi2017-04-101-10/+45
| | | | This PR is a prototype implementation of plugable consensus engines and the Clique PoA protocol ethereum/EIPs#225
* core: refactor genesis handlingFelix Lange2017-03-231-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 Wilcke2017-03-011-0/+10
|
* core: improved bad block error reporting (#3320)Jeffrey Wilcke2016-11-231-0/+14
|
* core: implemented new ropsten testnetJeffrey Wilcke2016-11-231-8/+8
|
* cmd/utils, mobile, params: set the correct field on testnet EIP 155 (#3272)Péter Szilágyi2016-11-161-0/+2
|
* mobile: port wrappers to EIP155 and EIP158 forkPéter Szilágyi2016-11-151-0/+22
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-131-4/+32
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-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>