aboutsummaryrefslogtreecommitdiffstats
path: root/params
Commit message (Collapse)AuthorAgeFilesLines
* eth: use maxpeers from p2p layer instead of extra configPéter Szilágyi2017-09-061-2/+0
|
* core/vm: polish precompile contract code, add tests and benchesPéter Szilágyi2017-08-141-8/+16
| | | | | * Update modexp gas calculation to new version * Fix modexp modulo 0 special case to return zero
* VERSION, params: begin 1.7.0 cycle (cannot downgrade)Péter Szilágyi2017-07-141-2/+2
|
* params, VERSION: v1.6.8 unstableFelix Lange2017-07-111-4/+4
|
* params: v1.6.7 stableFelix Lange2017-07-111-4/+4
|
* params: remove redundant consts, disable metro on AllProtocolChangesPéter Szilágyi2017-07-043-67/+17
|
* params, VERSION: 1.6.7 unstableFelix Lange2017-06-231-4/+4
|
* params: 1.6.6 stableFelix Lange2017-06-231-4/+4
|
* VERSION, params: begin Geth 1.6.6 release cyclePéter Szilágyi2017-06-021-4/+4
|
* params: mark Geth v1.6.5 stable (Hat Trick)Péter Szilágyi2017-06-021-4/+4
|
* VERSION, params: begin geth 1.6.5 cyclePéter Szilágyi2017-06-011-4/+4
|
* params: Geth 1.6.4 stable (hotfix)Péter Szilágyi2017-06-011-4/+4
|
* VERSION, params: begin Geth 1.6.4 release cyclePéter Szilágyi2017-06-011-4/+4
|
* params: release Geth 1.6.3 - CovfefePéter Szilágyi2017-06-011-4/+4
|
* params, VERSION: 1.6.3 unstableFelix Lange2017-05-311-4/+4
|
* params: 1.6.2 stableFelix Lange2017-05-311-4/+4
|
* 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-182-25/+62
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* VERSION, params: begin 1.6.2 release cyclePéter Szilágyi2017-05-041-4/+4
|
* params: release Geth 1.6.1, Deripors of OhratuuPéter Szilágyi2017-05-041-4/+4
|
* cmd, core, params: add --rinkeby flag for fast connectivityPéter Szilágyi2017-05-042-1/+29
|
* VERSION, params: begin 1.6.1 release cyclePéter Szilágyi2017-04-141-4/+4
|
* params: release Geth 1.6.0, Puppeth MasterPéter Szilágyi2017-04-141-4/+4
|
* all: update license informationFelix Lange2017-04-141-7/+7
|
* cmd/geth: add --config file flag (#13875)Felix Lange2017-04-121-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p/discover, p2p/discv5: add marshaling methods to Node * p2p/netutil: make Netlist decodable from TOML * common/math: encode nil HexOrDecimal256 as 0x0 * cmd/geth: add --config file flag * cmd/geth: add missing license header * eth: prettify Config again, fix tests * eth: use gasprice.Config instead of duplicating its fields * eth/gasprice: hide nil default from dumpconfig output * cmd/geth: hide genesis block in dumpconfig output * node: make tests compile * console: fix tests * cmd/geth: make TOML keys look exactly like Go struct fields * p2p: use discovery by default This makes the zero Config slightly more useful. It also fixes package node tests because Node detects reuse of the datadir through the NodeDatabase. * cmd/geth: make ethstats URL settable through config file * cmd/faucet: fix configuration * cmd/geth: dedup attach tests * eth: add comment for DefaultConfig * eth: pass downloader.SyncMode in Config This removes the FastSync, LightSync flags in favour of a more general SyncMode flag. * cmd/utils: remove jitvm flags * cmd/utils: make mutually exclusive flag error prettier It now reads: Fatal: flags --dev, --testnet can't be used at the same time * p2p: fix typo * node: add DefaultConfig, use it for geth * mobile: add missing NoDiscovery option * cmd/utils: drop MakeNode This exposed a couple of places that needed to be updated to use node.DefaultConfig. * node: fix typo * eth: make fast sync the default mode * cmd/utils: remove IPCApiFlag (unused) * node: remove default IPC path Set it in the frontends instead. * cmd/geth: add --syncmode * cmd/utils: make --ipcdisable and --ipcpath mutually exclusive * cmd/utils: don't enable WS, HTTP when setting addr * cmd/utils: fix --identity
* params: updated testnet bootnodes (#14310)Jamie Pitts2017-04-111-3/+3
|
* 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, consensus: pluggable consensus engines (#3817)Péter Szilágyi2017-04-051-2/+2
| | | | | This commit adds pluggable consensus engines to go-ethereum. In short, it introduces a generic consensus interface, and refactors the entire codebase to use this interface.
* core: refactor genesis handlingFelix Lange2017-03-233-437/+339
| | | | | | | | | | | | | | | | | | | | | | | | 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
|
* params: updated bootnodes (#3720)Jamie Pitts2017-02-281-5/+8
| | | | | | * Updated the list of go bootnodes: replaced BR with a new one, added US-WEST and AU. * Updated bootnodes, minor go formatting change.
* common: move big integer math to common/math (#3699)Felix Lange2017-02-271-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: remove CurrencyToString Move denomination values to params instead. * common: delete dead code * common: move big integer operations to common/math This commit consolidates all big integer operations into common/math and adds tests and documentation. There should be no change in semantics for BigPow, BigMin, BigMax, S256, U256, Exp and their behaviour is now locked in by tests. The BigD, BytesToBig and Bytes2Big functions don't provide additional value, all uses are replaced by new(big.Int).SetBytes(). BigToBytes is now called PaddedBigBytes, its minimum output size parameter is now specified as the number of bytes instead of bits. The single use of this function is in the EVM's MSTORE instruction. Big and String2Big are replaced by ParseBig, which is slightly stricter. It previously accepted leading zeros for hexadecimal inputs but treated decimal inputs as octal if a leading zero digit was present. ParseUint64 is used in places where String2Big was used to decode a uint64. The new functions MustParseBig and MustParseUint64 are now used in many places where parsing errors were previously ignored. * common: delete unused big integer variables * accounts/abi: replace uses of BytesToBig with use of encoding/binary * common: remove BytesToBig * common: remove Bytes2Big * common: remove BigTrue * cmd/utils: add BigFlag and use it for error-checked integer flags While here, remove environment variable processing for DirectoryFlag because we don't use it. * core: add missing error checks in genesis block parser * common: remove String2Big * cmd/evm: use utils.BigFlag * common/math: check for 256 bit overflow in ParseBig This is supposed to prevent silent overflow/truncation of values in the genesis block JSON. Without this check, a genesis block that set a balance larger than 256 bits would lead to weird behaviour in the VM. * cmd/utils: fixup import
* VERSION, params: bumped unstable version to 1.6 (#3685)Jeffrey Wilcke2017-02-181-2/+2
|
* params: core, core/vm, miner: 64bit gas instructionsJeffrey Wilcke2017-02-142-86/+82
| | | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* VERSION, params: start 1.5.10 development cyclePéter Szilágyi2017-02-141-4/+4
|
* params: 1.5.9 stablePéter Szilágyi2017-02-141-4/+4
|
* Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)"Jeffrey Wilcke2017-02-132-82/+86
| | | | This reverts commit 8b57c494908637a5c0e74f8f7a13b3218e026757.
* params: core, core/vm, miner: 64bit gas instructions (#3514)Jeffrey Wilcke2017-02-022-86/+82
| | | | | | | | | | | | | | | | Reworked the EVM gas instructions to use 64bit integers rather than arbitrary size big ints. All gas operations, be it additions, multiplications or divisions, are checked and guarded against 64 bit integer overflows. In additon, most of the protocol paramaters in the params package have been converted to uint64 and are now constants rather than variables. * common/math: added overflow check ops * core: vmenv, env renamed to evm * eth, internal/ethapi, les: unmetered eth_call and cancel methods * core/vm: implemented big.Int pool for evm instructions * core/vm: unexported intPool methods & verification methods * core/vm: added memoryGasCost overflow check and test
* params, VERSION: v1.5.9-unstableFelix Lange2017-02-011-4/+4
|
* params: v1.5.8-stableFelix Lange2017-02-011-4/+4
|
* params, VERSION: 1.5.8 unstableFelix Lange2017-01-161-4/+4
|
* params: stable 1.5.7Felix Lange2017-01-161-4/+4
|
* params, VERSION: start 1.5.7 release cyclePéter Szilágyi2017-01-091-4/+4
|
* params: stable version 1.5.6Péter Szilágyi2017-01-091-4/+4
|
* all: fix spelling errorsPéter Szilágyi2017-01-071-1/+1
|
* params: avoid importing p2p/discover for bootnodesFelix Lange2017-01-061-19/+12
| | | | | params is imported by leaf-ish library packages and should not pull in the p2p stack.
* VERSION, params: start Geth 1.5.6 development cyclePéter Szilágyi2016-12-141-4/+4
|
* params: stable version 1.5.5Péter Szilágyi2016-12-141-4/+4
|
* VERSION, params: bump unstable version 1.5.5 (#3361)Jeffrey Wilcke2016-11-281-4/+4
|
* params: stable version 1.5.4 (#3360)Jeffrey Wilcke2016-11-281-4/+4
|
* cmd, ethstats, les, mobile, params: native netstats (#3336)Péter Szilágyi2016-11-251-0/+35
|
* core: improved bad block error reporting (#3320)Jeffrey Wilcke2016-11-231-0/+14
|
* core: implemented new ropsten testnetJeffrey Wilcke2016-11-232-14/+14
|
* cmd/utils, mobile, params: set the correct field on testnet EIP 155 (#3272)Péter Szilágyi2016-11-161-0/+2
|
* params: hardfork blocknumber (#3264)Jeffrey Wilcke2016-11-151-2/+2
|
* core, core/types: refactored tx chain id checking (#3257)Jeffrey Wilcke2016-11-151-0/+3
|\ | | | | | | | | | | | | | | * core, core/types: refactored tx chain id checking Refactored explicit chain id checking in to the Sender deriviation method * cmd/utils, params: define chain ids
| * cmd/utils, params: define chain idsJeffrey Wilcke2016-11-151-0/+3
| |
* | cmd/utils, mobile: place bootnodes in LGPL packagesPéter Szilágyi2016-11-151-0/+52
| |
* | mobile: port wrappers to EIP155 and EIP158 forkPéter Szilágyi2016-11-151-0/+22
|/
* core, params: EIP#170Jeffrey Wilcke2016-11-141-3/+1
|
* cmd/utils: set temporary HF numberJeffrey Wilcke2016-11-131-0/+3
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-131-4/+32
|
* core/vm, params: EIP160: EXP repriceJeffrey Wilcke2016-11-131-8/+4
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-132-0/+106
| | | | | | | | | | | | | | | 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>
* cmd, params: only set default fork configs for test and mainnetPéter Szilágyi2016-10-291-0/+3
|
* cmd/utils, core, params: explicitly pick reprice fork for fast syncPéter Szilágyi2016-10-291-5/+13
|
* params: set reprice block number to 2463000Jeffrey Wilcke2016-10-151-1/+1
|
* core, core/vm: added gas price variance tableJeffrey Wilcke2016-10-153-2/+70
| | | | | | | | | | | | | This implements 1b & 1c of EIP150 by adding a new GasTable which must be returned from the RuleSet config method. This table is used to determine the gas prices for the current epoch. Please note that when the CreateBySuicide gas price is set it is assumed that we're in the new epoch phase. In addition this PR will serve as temporary basis while refactorisation in being done in the EVM64 PR, which will substentially overhaul the gas price code.
* cmd, core, eth, miner, params, tests: finalize the DAO forkPéter Szilágyi2016-07-153-119/+419
|
* core, params, tests: add DAO hard-fork balance movesPéter Szilágyi2016-07-152-4/+113
|
* cmd/geth, miner, params: special extradata for DAO fork startPéter Szilágyi2016-07-151-5/+12
|
* cmd, core, eth, params: implement flags to control dao fork blocksPéter Szilágyi2016-07-151-0/+2
|
* core: added basic chain configurationJeffrey Wilcke2016-04-012-13/+5
| | | | | | | | | Added chain configuration options and write out during genesis database insertion. If no "config" was found, nothing is written to the database. Configurations are written on a per genesis base. This means that any chain (which is identified by it's genesis hash) can have their own chain settings.
* params: updated homestead blockJeffrey Wilcke2016-02-291-1/+1
|
* cmd/utils, params: homestead blockJeffrey Wilcke2016-02-291-1/+5
|
* params: settle the Pi vs Tau disputeJeffrey Wilcke2016-02-261-1/+1
| | | | This commit increases the artificial gas floor to 4712388
* generators: Don't generate params/protocol_params.go with +x bitRicardo Catalinas Jiménez2016-02-221-0/+0
|
* core, core/vm, crypto: fixes for homesteadJeffrey Wilcke2016-02-181-2/+1
| | | | | | * Removed some strange code that didn't apply state reverting properly * Refactored code setting from vm & state transition to the executioner * Updated tests
* parmas, crypto, core, core/vm: homestead consensus protocol changesGustav Simonsson2016-02-182-2/+33
| | | | | | | | * change gas cost for contract creating txs * invalidate signature with s value greater than secp256k1 N / 2 * OOG contract creation if not enough gas to store code * new difficulty adjustment algorithm * new DELEGATECALL op code
* miner: gas limit strategy, target 3141592 & def gas price 50 ShannonGustav Simonsson2015-08-041-2/+2
|
* Merge pull request #1515 from fjl/license-fixesJeffrey Wilcke2015-07-281-1/+1
|\ | | | | all: fix license headers one more time
| * all: fix license headers one more timeFelix Lange2015-07-241-1/+1
| | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* | params: reduce extra data to 32 bytesJeffrey Wilcke2015-07-261-2/+2
| |
* | cmd/geth, core, eth: Version 1.0.0Jeffrey Wilcke2015-07-251-45/+47
|/ | | | | | | Genesis release. Closes #1402 Conflicts: cmd/geth/main.go
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-4/+4
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* all: update license informationFelix Lange2015-07-071-0/+16
|
* Read most protocol params from common/params.jsonGustav Simonsson2015-04-021-0/+54
* Add params package with exported variables generated from github.com/ethereum/common/blob/master/params.json * Use params package variables in applicable places * Add check for minimum gas limit in validation of block's gas limit * Remove common/params.json from go-ethereum to avoid outdated version of it