aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
Commit message (Collapse)AuthorAgeFilesLines
* Rename geth -> gdex and fix DockerfileWei-Ning Huang2019-04-0918-3446/+0
|
* geth: add propose flag to enable/disable proposingSonic2019-04-092-0/+21
|
* Remove reference of Rinkeby network.Wei-Ning Huang2019-04-094-7/+0
| | | | We do not need ethereum Rinkeby network in our system, remove it.
* Change import go github.com/dexon-foundation/dexonWei-Ning Huang2019-04-0913-60/+60
|
* Use dex.Config instead of eth.ConfigWei-Ning Huang2019-04-091-11/+8
|
* cmd/geth: fix accidental --rpccorsdomain and --rpcvhosts removalJeremy McNevin2019-04-091-0/+2
|
* eth, les, geth: implement cli-configurable global gas cap for RPC calls (#19401)Martin Holst Swende2019-04-082-2/+2
| | | | | | | | * eth, les, geth: implement cli-configurable global gas cap for RPC calls * graphql, ethapi: place gas cap in DoCall * ethapi: reformat log message
* cmd/utils: allow for multiple influxdb tags (#18520)Anton Evangelatov2019-02-202-4/+4
| | | | | | | | This PR is replacing the metrics.influxdb.host.tag cmd-line flag with metrics.influxdb.tags - a comma-separated key/value tags, that are passed to the InfluxDB reporter, so that we can index measurements with multiple tags, and not just one host tag. This will be useful for Swarm, where we want to index measurements not just with the host tag, but also with bzzkey and git commit version (for long-running deployments). (cherry picked from commit 21acf0bc8d4f179397bb7d06d6f36df3cbee4a8e)
* cmd, core, params: add support for GoerliPéter Szilágyi2019-02-192-0/+2
| | | | (cherry picked from commit b0ed083ead2d58cc25754eacdb48046eb2bc81cb)
* cmd/geth: support dumpconfig optionally saving to file (#18327)Sean2019-01-071-3/+12
| | | | | | * Changed dumpConfig function to optionally save to file * Added O_TRUNC flag to file open and cleaned up code
* cmd/geth, core, eth: implement Constantinople override flag (#18273)Martin Holst Swende2018-12-112-1/+5
| | | | | | | | * 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
* cmd, eth: Add support for `--whitelist <blocknum>=<hash>,...` flagRyan Schneider2018-12-102-0/+2
| | | | | * 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.
* cmd, core, eth, light, trie: add trie read caching layerPéter Szilágyi2018-11-152-0/+2
|
* cmd/geth: don't set GOMAXPROCS by default (#17148)Wenbiao Zheng2018-10-161-3/+0
| | | | This is no longer needed because Go uses all CPUs by default. The change allows setting GOMAXPROCS in environment if needed.
* core/vm: add switches to select evm+ewasm interpreters (#17687)Guillaume Ballet2018-09-202-0/+4
| | | | | 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.
* cmd/geth: typo export -> import (#17703)Wenbiao Zheng2018-09-191-2/+2
|
* whisper: add light mode check to handshake (#16725)b00ris2018-09-052-0/+4
|
* cmd, core, eth, miner, params: configurable gas floor and ceilPéter Szilágyi2018-08-292-1/+2
|
* consensus, miner: stale block mining support (#17506)gary rong2018-08-282-0/+2
| | | | | | | | | | * consensus, miner: stale block supporting * consensus, miner: refactor seal signature * cmd, consensus, eth: add miner noverify flag * cmd, consensus, miner: polish
* cmd, eth: clean up miner startup API, drop noop config fieldPéter Szilágyi2018-08-231-14/+6
|
* cmd, core, miner: add --txpool.locals and priority miningPéter Szilágyi2018-08-222-0/+2
|
* cmd, eth, miner: make recommit configurable (#17444)gary rong2018-08-222-0/+2
| | | | | | | | | | | | * cmd, eth, miner: make recommit configurable * cmd, eth, les, miner: polish a bit * miner: filter duplicate sealing work * cmd: remove uncessary conversion * miner: avoid microptimization in favor of cleaner code
* cmd: polish miner flags, deprecate olds, add upgrade pathPéter Szilágyi2018-08-153-22/+34
|
* cmd, consensus/ethash, eth: miner push notificationsPéter Szilágyi2018-08-102-1/+3
|
* consensus/ethash: move remote agent logic to ethash internal (#15853)gary rong2018-08-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * consensus/ethash: start remote ggoroutine to handle remote mining * consensus/ethash: expose remote miner api * consensus/ethash: expose submitHashrate api * miner, ethash: push empty block to sealer without waiting execution * consensus, internal: add getHashrate API for ethash * consensus: add three method for consensus interface * miner: expose consensus engine running status to miner * eth, miner: specify etherbase when miner created * miner: commit new work when consensus engine is started * consensus, miner: fix some logics * all: delete useless interfaces * consensus: polish a bit
* build: rename swarm deb package to ethereum-swarm; change swarm deb version ↵Anton Evangelatov2018-07-303-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | from 1.8.x to 0.3.x (#16988) * build: add support for different package and binary names * build: bump up copyright date * build: change default PackageName to empty string * build, internal, swarm: enhance build/release process * build: hack ethereum-swarm as a "depends" in deb package * build/ci: remove redundant variables * build, cmd, mobile, params, swarm: remove VERSION file; rename Version to VersionMeta; * internal: remove VERSION() method which reads VERSION file * build: fix VersionFilePath to Version * Makefile: remove clean_go_build_cache.sh until it works * Makefile: revert removal of clean_go_build_cache.sh
* core: report progress on log chain exports (#17066)Raghav Sood2018-07-261-1/+2
| | | | | | * core/blockchain: export progress * core: polish up chain export progress report a bit
* cmd: prevent accidental invalid commands (#17248)a e r t h2018-07-261-0/+3
| | | | | | * cmd: stop parsing bootnodes if one is invalid * cmd/geth: require valid command as argument (or no arg)
* cmd/geth: clean up call to SelfDerive (#16970)Wenbiao Zheng2018-07-241-3/+3
|
* cmd/geth: fix golint issue (#17176)Roc Yu2018-07-161-3/+3
|
* cmd, dashboard, log: log collection and exploration (#17097)Kurkó Mihály2018-07-111-1/+6
| | | | | | | | | | | | * cmd, dashboard, internal, log, node: logging feature * cmd, dashboard, internal, log: requested changes * dashboard, vendor: gofmt, govendor, use vendored file watcher * dashboard, log: gofmt -s -w, goimports * dashboard, log: gosimple
* cmd/geth: fix usage formatting (#17136)Wenbiao Zheng2018-07-091-1/+2
|
* cmd/geth: fixed comment typo (#17140)LeoLiao2018-07-091-1/+1
|
* cmd/geth: export metrics to InfluxDB (#16979)Anton Evangelatov2018-07-022-1/+25
| | | | | | | | * cmd/geth: add flags for metrics export * cmd/geth: update usage fields for metrics flags * metrics/influxdb: update reporter logger to adhere to geth logging convention
* cmd/geth: remove the tail "," from genesis config (#17028)nobody2018-06-211-1/+1
| | | remove the tail "," from genesis config, which will cause genesis config parse error .
* cmd/geth: cap cache allowancerjl4934564422018-06-041-0/+20
|
* cmd: various golint fixes (#16700)kiel barry2018-05-092-5/+5
| | | | | | | | * cmd: various golint fixes * cmd: update to pr change request * cmd: update to pr change request
* core/rawdb: separate raw database access to own package (#16666)Péter Szilágyi2018-05-071-3/+3
|
* cmd/geth, mobile: add memsize to pprof server (#16532)Felix Lange2018-04-231-0/+2
| | | | | | | | * cmd/geth, mobile: add memsize to pprof server This is a temporary change, to be reverted before the next release. * cmd/geth: fix variable name
* cmd/geth: update the copyright year in the geth command usage (#16537)Vie2018-04-232-2/+2
|
* all: fix various typos (#16533)Wuxiang2018-04-191-1/+1
| | | | | | | | * fix typo * fix typo * fix typo
* cmd/geth: update template for 'geth bug' command (#16350)Zhenguo Niu2018-04-061-10/+14
|
* cmd/geth: remove relOracle variable (#16434)Nguyen Sy Thanh Son2018-04-041-3/+0
|
* whisper: switch all remaining components from v5 to v6Guillaume Ballet2018-03-261-1/+1
|\
| * whisper: some components are still using v5, switch to v6Guillaume Ballet2018-03-221-1/+1
| |
* | cmd: export preimages in RLP, support GZIP, uniform with block exportPéter Szilágyi2018-03-262-116/+63
| |
* | cmd: implement preimage dump and import cmdsrjl4934564422018-03-262-0/+115
|/
* cmd, ethdb, vendor: integrate leveldb iostats (#16277)Kurkó Mihály2018-03-081-0/+13
| | | | | | | | | | | | * cmd, dashboard, ethdb, vendor: send iostats to dashboard * ethdb: change names * ethdb: handle parsing errors * ethdb: handle iostats syntax error * ethdb: r -> w
* cmd, dashboard: use webpack dev server, remove custom assets (#16263)Kurkó Mihály2018-03-081-1/+0
| | | | | | * cmd, dashboard: remove custom assets, webpack dev server * dashboard: yarn commands, small fixes
* cmd/geth: fix broken links to JavaScript-Console wiki in cmd line help (#16183)Domino Valdano2018-02-261-3/+3
| | | | | | * Fixed broken link to JavaScript-Console wiki in cmd line help * cmd/geth: Added missing r in 'JavaScript'
* cmd, console: support all termination signalsPéter Szilágyi2018-02-211-1/+2
|
* main: add gc flags to import-commandMartin Holst Swende2018-02-151-0/+3
|
* rpc: dns rebind protection (#15962)Martin Holst Swende2018-02-122-0/+2
| | | | | | | | | | | | | | | | * cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks * p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d * rpc: add wildcard support for rpcallowedhosts + go fmt * cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check * http, rpc, utils: make vhosts into map, address review concerns * node: change log messages to use geth standard (not sprintf) * rpc: fix spelling
* core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-063-3/+10
| | | This commit reduces database I/O by not writing every state trie to disk.
* accounts/abi/bind: support event filtering in abigenPéter Szilágyi2018-01-241-17/+0
|
* dashboard: deep state update, version in footer (#15837)Kurkó Mihály2018-01-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * dashboard: footer, deep state update * dashboard: resolve asset path * dashboard: remove bundle.js * dashboard: prevent state update on every reconnection * dashboard: fix linter issue * dashboard, cmd: minor UI fix, include commit hash * remove geth binary * dashboard: gitCommit renamed to commit * dashboard: move the geth version to the right, make commit optional * dashboard: commit limited to 7 characters * dashboard: limit commit length on client side * dashboard: run go generate
* cmd/geth: user friendly light miner errorPéter Szilágyi2018-01-121-1/+4
|
* cmd/geth: remove trailing newline in license command (#15782)Péter Szilágyi2018-01-021-2/+1
|
* cmd/geth: add support for geth --rinkeby attachSorin Neacsu2017-12-161-2/+6
|
* cmd/geth: add support for geth attach --testnet (#15597)Sorin Neacsu2017-12-051-2/+10
|
* cmd/geth: fix geth attach --datadir=... (#15517)Maximilian Meister2017-11-281-1/+6
|
* cmd/geth: make geth account new faster with many keys (#15529)Martin Holst Swende2017-11-211-4/+17
|
* cmd, dashboard: dashboard using React, Material-UI, Recharts (#15393)Kurkó Mihály2017-11-153-7/+33
| | | | | | | | | | | | * cmd, dashboard: dashboard using React, Material-UI, Recharts * cmd, dashboard, metrics: initial proof of concept dashboard * dashboard: delete blobs * dashboard: gofmt -s -w . * dashboard: minor text and code polishes
* cmd, consensus, core, miner: instatx clique for --dev (#15323)Péter Szilágyi2017-10-244-11/+17
| | | | | | | | * 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
* cmd, eth: separate out FakePeer for future reusePéter Szilágyi2017-10-101-145/+18
|
* cmd: Added support for copying data to another DB instanceNick Johnson2017-10-102-1/+196
|
* Merge pull request #14885 from karalabe/trezor-boomPéter Szilágyi2017-08-141-6/+12
|\ | | | | accounts, console, internal: support trezor hardware wallet
| * accounts: refactor API for generalized USB walletsPéter Szilágyi2017-08-091-1/+3
| |
| * accounts, console, internal: support trezor hardware walletPéter Szilágyi2017-08-091-6/+10
| |
* | cmd/geth, cmd/swarm: sort commands and flags by name (#3462)Maximilian Meister2017-08-111-0/+2
|/
* cmd: add makecache cmd, use caches during import cmdPéter Szilágyi2017-08-042-26/+38
|
* common: EIP55-compliant Address.Hex() (#14815)Felix Lange2017-07-311-6/+6
|\ | | | | | | | | This patch updates the Address type in common/types.go so that the Hex function provides an EIP55-compliant output string. The implementation is pretty lightweight; on my laptop the benchmark gives 1100ns/op, with the majority of that value due to the Keccak hash.
| * cmd/geth: update tests for EIP55-compliant Address.Hex()Jim McDonald2017-07-161-6/+6
| |
* | cmd, core, eth: journal local transactions to disk (#14784)Péter Szilágyi2017-07-282-0/+4
|/ | | | | | | | | | * core: reduce txpool event loop goroutines and sync structs * cmd, core, eth: journal local transactions to disk * core: journal replacement pending transactions too * core: separate transaction journal from pool
* Merge pull request #14737 from holiman/txpool_localaccountsPéter Szilágyi2017-07-102-0/+2
|\ | | | | Txpool localaccounts
| * cmd, core: add --txpool.nolocals to disable local price exemptionsPéter Szilágyi2017-07-052-0/+2
| |
* | params: remove redundant consts, disable metro on AllProtocolChangesPéter Szilágyi2017-07-041-1/+1
|/
* core/state: access trie through Database interface, track errors (#14589)Felix Lange2017-06-271-1/+1
| | | | | | | | | With this commit, core/state's access to the underlying key/value database is mediated through an interface. Database errors are tracked in StateDB and returned by CommitTo or the new Error method. Motivation for this change: We can remove the light client's duplicated copy of core/state. The light client now supports node iteration, so tracing and storage enumeration can work with the light client (not implemented in this commit).
* Merge pull request #14540 from bas-vk/whisper-apiPéter Szilágyi2017-06-264-12/+40
|\ | | | | whisperv5: integrate whisper and implement API
| * cmd/geth: fix whisper flag group capitalizationPéter Szilágyi2017-06-261-1/+1
| |
| * whisper: use hexutil.UnmarshalFixedText for topic parsingBas van Kervel2017-06-211-1/+1
| |
| * whisper: move flags from whisper package to utilsBas van Kervel2017-06-213-11/+15
| |
| * whisperv5: integrate whisper and add whisper RPC simulatorBas van Kervel2017-06-153-12/+36
| |
* | cmd/geth: corrently init gas price for CLI CPU miningPéter Szilágyi2017-06-221-0/+4
| |
* | swarm/test: add integration test for 'swarm up' (#14353)Lewis Marshall2017-06-215-293/+93
| |
* | cmd/geth: fixed a minor typo in the commentsnecaremus2017-06-161-1/+1
|/
* cmd, core, eth: configurable txpool parametersPéter Szilágyi2017-05-292-0/+19
|
* cmd/geth: reorganise help section for new cli flag handlingBas van Kervel2017-05-252-2/+56
|
* cmd/geth: reintroduce wallet import subcommandBas van Kervel2017-05-231-15/+30
|
* cmd, node: support different bootnodes, fix default light portPéter Szilágyi2017-05-102-0/+4
|
* Merge pull request #14418 from karalabe/rinkeby-flagPéter Szilágyi2017-05-042-2/+4
|\ | | | | cmd, core, params: add --rinkeby flag for fast connectivity
| * cmd, core, params: add --rinkeby flag for fast connectivityPéter Szilágyi2017-05-042-2/+4
| |
* | cmd/geth: migrate dumpconfig command/flagsBas van Kervel2017-05-031-1/+2
| |
* | cmd/geth: migrate bug command/flagsBas van Kervel2017-05-031-1/+2
| |
* | cmd/geth: migrate metric command/flagsBas van Kervel2017-05-031-1/+1
| |
* | cmd/geth: reorganise misc commands/flagsBas van Kervel2017-05-031-4/+4
| |
* | cmd/geth: reorganise console/attach commands/flagsBas van Kervel2017-05-032-66/+78
| |
* | cmd/geth: reorganise chain commands/flagsBas van Kervel2017-05-031-20/+41
|/
* cmd/geth, cmd/utils: init/removedb on light/full dbs simultaneouslyPéter Szilágyi2017-05-031-32/+41
|
* cmd/geth: reorganise account/wallet command/flagsBas van Kervel2017-04-282-69/+70
|
* cmd, node: add --nosub and node.Config.NoUSB to disable hw walletsPéter Szilágyi2017-04-202-0/+2
|
* Merge remote-tracking branch 'fjl/license-update-1.6'Péter Szilágyi2017-04-141-1/+1
|\
| * all: update license informationFelix Lange2017-04-141-1/+1
| |
* | cmd/geth: update flag groups in the geth command usagePéter Szilágyi2017-04-132-5/+14
|/
* cmd/utils, node: remove unused solc references and improve RPC config (#14324)bas-vk2017-04-132-7/+0
| | | | | Currently http cors and websocket origins are a comma separated string in the config object. These are replaced with string arrays that are more expressive in case of a config file.
* cmd/geth: add --config file flag (#13875)Felix Lange2017-04-127-107/+215
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* eth: accept transactions when starting CPU mining (#13882)Péter Szilágyi2017-04-101-1/+1
|
* Merge pull request #13870 from karalabe/miners-fixesPéter Szilágyi2017-04-071-6/+0
|\ | | | | all: clean up various error handling in core and the miner
| * cmd/geth, eth: drop bad block reporting, its offline anywayPéter Szilágyi2017-04-061-6/+0
| |
* | cmd, les, eth, eth/gasprice: using new gas price oracle (#13853)Felföldi Zsolt2017-04-062-12/+4
|/ | | | | | | | | | | | * cmd, les, eth, eth/gasprice: using new gas price oracle * eth/gasprice: renamed source file * eth/gasprice: added security checks for gpo params * eth/gasprice: fixed naming issues * eth/gasprice: max limit, maxEmpty
* cmd/geth, node: surface geth architecture into version (#13866)Péter Szilágyi2017-04-062-3/+6
|
* core, consensus: pluggable consensus engines (#3817)Péter Szilágyi2017-04-052-3/+11
| | | | | 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-231-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* all: finish integrating Go ethash, delete C++ vendorPéter Szilágyi2017-03-093-4/+4
|
* cmd, eth, les, node, pow: disk caching and progress reportsPéter Szilágyi2017-03-092-0/+15
|
* * cmd/geth: add --nocompaction flag + multiple import filesMartin Holst Swende2017-03-082-5/+23
| | | | | | | | | | * main,import: Add --nocompaction flag + multiple import files * geth/import: documentation * import: Added more info to err message * fix :P
* Logger updates 3 (#3730)Péter Szilágyi2017-03-022-8/+8
| | | | | | | | * accounts, cmd, eth, ethdb: port logs over to new system * ethdb: drop concept of cache distribution between dbs * eth: fix some log nitpicks to make them nicer
* cmd/geth: drop upgradedb subcommand since it's unfeasiblePéter Szilágyi2017-02-232-61/+0
| | | | | | | This command was meant as a hackish way to upgrade our chain database way back when nobody cared for live updates and the size of the database along with its import times was small. With the current database weighing hundreds of GBs and processing times of many days, this command is just ludicrous.
* cmd, whisper/mailserver: revert to utils.FatalfPéter Szilágyi2017-02-236-74/+54
|
* accounts, cmd: port packages over to the new logging systemPéter Szilágyi2017-02-232-8/+12
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-236-72/+90
|
* cmd/geth: added 'geth bug' command (#3684)Jeffrey Wilcke2017-02-202-0/+109
| | | | | | | | | | | | | * cmd/geth: added 'geth bug' command Added bug command to geth, which will open a browser window with an issue template and some additional system information. * cmd/geth: update bug with better infos * cmd/geth: added browser fallback * cmd/geth: govet yo momma
* params: core, core/vm, miner: 64bit gas instructionsJeffrey Wilcke2017-02-141-1/+1
| | | | | | | | | | | | | | | | | 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
* Revert "params: core, core/vm, miner: 64bit gas instructions (#3514)"Jeffrey Wilcke2017-02-131-1/+1
| | | | This reverts commit 8b57c494908637a5c0e74f8f7a13b3218e026757.
* accounts: ledger and HD review fixesPéter Szilágyi2017-02-131-2/+3
| | | | | | | | | - Handle a data race where a Ledger drops between list and open - Prolong Ledger tx confirmation window to 30 days from 1 minute - Simplify Ledger chainid-signature calculation and validation - Simplify Ledger USB APDU request chunking algorithm - Silence keystore account cache notifications for manual actions - Only enable self derivations if wallet open succeeds
* accounts/usbwallet: make wallet responsive while Ledger is busyPéter Szilágyi2017-02-131-0/+8
|
* accounts, cmd, internal, node: implement HD wallet self-derivationPéter Szilágyi2017-02-131-2/+30
|
* accounts, cmd, internal, mobile, node: canonical account URLsPéter Szilágyi2017-02-132-13/+13
|
* accounts, cmd, eth, internal, miner, node: wallets and HD APIsPéter Szilágyi2017-02-132-7/+12
|
* accounts, cmd, eth, internal, mobile, node: split account backendsPéter Szilágyi2017-02-133-22/+32
|
* params: core, core/vm, miner: 64bit gas instructions (#3514)Jeffrey Wilcke2017-02-021-1/+1
| | | | | | | | | | | | | | | | 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
* cmd/geth, cmd/swarm: Fix to close file handler appropriatelyShintaro Kaneko2017-01-301-0/+1
|
* Merge pull request #3579 from bas-vk/natspecPéter Szilágyi2017-01-172-2/+0
|\ | | | | cmd,eth,les,internal: remove natspec support
| * cmd,eth,les,internal: remove natspec supportBas van Kervel2017-01-172-2/+0
| |
* | cmd/geth, core: add support for recording SHA3 preimages (#3543)Nick Johnson2017-01-172-0/+2
|/
* core: remove support for Olympic networkBas van Kervel2017-01-122-2/+0
|
* all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-091-1/+2
| | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* logger, pow/dagger, pow/ezp: delete dead codeFelix Lange2017-01-071-1/+0
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-071-4/+4
|
* cmd/geth: drop legacy android codePéter Szilágyi2016-12-143-126/+0
|
* cmd/geth: tidied up the source (#3385)Péter Szilágyi2016-11-303-133/+174
| | | cmd/geth: tidied up the source
* cmd: drop DAO related choice flags since ETC divergedPéter Szilágyi2016-11-292-72/+17
|
* cmd, ethstats, les, mobile, params: native netstats (#3336)Péter Szilágyi2016-11-253-10/+32
|
* Merge pull request #3325 from fjl/p2p-netrestrictFelix Lange2016-11-251-0/+1
|\ | | | | Prevent relay of invalid IPs, add --netrestrict
| * cmd/bootnode, cmd/geth, cmd/bzzd: add --netrestrictFelix Lange2016-11-231-0/+1
| |
* | core: implemented new ropsten testnetJeffrey Wilcke2016-11-231-2/+3
| |
* | cmd/geth, core, light, mobile: removed state account StartingNonceJeffrey Wilcke2016-11-232-8/+0
|/ | | | All account's nonce start at 0.
* cmd/geth: improve command help messages (#3227)Kenji Siu2016-11-105-87/+132
|
* cmd/geth: reinstate dropped --cache flagPéter Szilágyi2016-11-101-0/+1
|
* cmd/geth: use a loop in TestDAOForkBlockNewChain (#3222)xiekeyang2016-11-091-84/+68
|
* p2p/discv5: added new topic discovery packageZsolt Felfoldi2016-11-092-29/+2
|
* cmd, eth: added light client and light server modeszsfelfoldi2016-11-093-1/+35
|
* all: remove weird filesFelix Lange2016-10-301-1/+0
|
* cmd, params: only set default fork configs for test and mainnetPéter Szilágyi2016-10-291-5/+5
|
* Godeps, vendor: convert dependency management to trash (#3198)Péter Szilágyi2016-10-292-44/+1
| | | | | | | | | | | | | | | | | | | | | | | This commit converts the dependency management from Godeps to the vendor folder, also switching the tool from godep to trash. Since the upstream tool lacks a few features proposed via a few PRs, until those PRs are merged in (if), use github.com/karalabe/trash. You can update dependencies via trash --update. All dependencies have been updated to their latest version. Parts of the build system are reworked to drop old notions of Godeps and invocation of the go vet command so that it doesn't run against the vendor folder, as that will just blow up during vetting. The conversion drops OpenCL (and hence GPU mining support) from ethash and our codebase. The short reasoning is that there's noone to maintain and having opencl libs in our deps messes up builds as go install ./... tries to build them, failing with unsatisfied link errors for the C OpenCL deps. golang.org/x/net/context is not vendored in. We expect it to be fetched by the user (i.e. using go get). To keep ci.go builds reproducible the package is "vendored" in build/_vendor.
* cmd/geth, code, eth/downloader: tune import logs and mem statsPéter Szilágyi2016-10-211-22/+49
|
* cmd/geth, trie: report on trie cache unloads, also add debug logPéter Szilágyi2016-10-191-1/+2
|
* cmd, core/state: allow configurable trie cache generationsPéter Szilágyi2016-10-193-2/+9
|
* cmd/geth, trie: track and report trie cache missesPéter Szilágyi2016-10-191-4/+14
|
* cmd/geth: compact and print database stats after an importPéter Szilágyi2016-10-181-4/+21
|
* node: ensure datadir can be co-inhabited by different instancesFelix Lange2016-09-165-32/+45
| | | | | This change ensures that nodes started with different Name but same DataDir values don't use the same nodekey and IPC socket.
* cmd, eth: drop the blockchain version from cli/eth configsPéter Szilágyi2016-09-152-2/+0
|
* cmd/geth: fix port clash in genesis testFelix Lange2016-09-051-1/+4
|
* cmd/evm, cmd/geth, cmd/utils: move version handling to cmd/utilsFelix Lange2016-09-053-62/+39
|
* contracts/release: move package release to contracts/Felix Lange2016-08-301-1/+1
| | | | | | This change also deletes generator.go, moving the only interesting line in it into release.go. The binding has been regenerated with abigen from develop and solc v0.3.6.
* cmd/geth: set correct initial nonce on testnet for import/init subcommands ↵Hellsegga2016-08-232-0/+8
| | | | (#2924)
* cmd/geth: added copyright and license informationJeffrey Wilcke2016-08-222-0/+25
| | | | | | As per GNU GPL requirement I've added the copyright and the license information as a subcommand as well as a copyright notice when displaying the help command.
* cmd/utils, node: create account manager in package nodeFelix Lange2016-08-173-43/+47
| | | | | | | | | | | | | | | The account manager was previously created by packge cmd/utils as part of flag processing and then passed down into eth.Ethereum through its config struct. Since we are starting to create nodes which do not have eth.Ethereum as a registered service, the code was rearranged to register the account manager as its own service. Making it a service is ugly though and it doesn't really fix the root cause: creating nodes without eth.Ethereum requires duplicating lots of code. This commit splits utils.MakeSystemNode into three functions, making creation of other node/service configurations easier. It also moves the account manager into Node so it can be used by those configurations without requiring package eth.
* rpc: add new client, use it everywhereFelix Lange2016-07-232-31/+27
| | | | | | The new client implementation supports concurrent requests, subscriptions and replaces the various ad hoc RPC clients throughout go-ethereum.
* cmd, core, eth, miner, params, tests: finalize the DAO forkPéter Szilágyi2016-07-151-3/+3
|
* cmd, core, miner: add extradata validation to consensus rulesPéter Szilágyi2016-07-152-185/+112
|
* cmd/geth, miner, params: special extradata for DAO fork startPéter Szilágyi2016-07-151-0/+1
|
* core: gracefully handle missing homestead block configPéter Szilágyi2016-07-151-0/+105
|
* cmd, core, eth, params: implement flags to control dao fork blocksPéter Szilágyi2016-07-153-8/+308
|
* cmd/geth: print version on geth start (#2622)Matthew Di Ferrante2016-07-121-0/+2
|
* cmd, common, console, eth, release: drop redundant "full"sPéter Szilágyi2016-06-301-1/+1
|
* Merge pull request #2159 from zsfelfoldi/light-backendPéter Szilágyi2016-06-301-3/+7
|\ | | | | eth: separate common and full node-specific API and backend service
| * eth: separate common and full node-specific API and backend servicezsfelfoldi2016-06-161-3/+7
| |
* | Merge pull request #2750 from sybiload/developPéter Szilágyi2016-06-291-1/+1
|\ \ | | | | | | cmd/geth: fix the import error message
| * | cmd/geth: fix the import error messageYohann LEON2016-06-291-1/+1
| | | | | | | | | | | | cmd/geth: include the error message on import failure
* | | Revert "core: update DAO soft-fork number, clean up the code"Péter Szilágyi2016-06-292-2/+0
|/ / | | | | | | This reverts commit ba784bdf36f2daf7827ec1ec864f3393ba8d86a0.
* / core: update DAO soft-fork number, clean up the codePéter Szilágyi2016-06-232-0/+2
|/
* Merge pull request #2455 from zsfelfoldi/chaindbJeffrey Wilcke2016-06-131-1/+1
|\ | | | | core: improved chain db performance by using sequential keys
| * core: improved chainDb using sequential keyszsfelfoldi2016-06-071-1/+1
| |
* | cmd: fix CLI package deprecation warningsPéter Szilágyi2016-06-106-24/+51
| |
* | cmd/geth: codegansta/cli package renamed to urfave/cliBas van Kervel2016-06-096-6/+6
| |
* | cmd/geth: fix the keystore path in the accounts help textPéter Szilágyi2016-06-081-1/+1
| |
* | cmd/geth: truly randomize console test RPC endpointsPéter Szilágyi2016-06-081-4/+12
|/
* cmd/geth: make console tests more robustFelix Lange2016-06-031-18/+28
| | | | | | * use --port 0 to avoid p2p port conflicts * use --maxpeers 0 so it doesn't connect to bootstrap nodes * use geth.expectExit() to wait for termination
* cmd/geth, console: fix reviewer issuesPéter Szilágyi2016-05-313-4/+4
|
* cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-309-1064/+338
|
* eth: enable bad block reportsFelix Lange2016-05-251-0/+6
| | | | | | | | | | | | We used to have reporting of bad blocks, but it was disabled before the Frontier release. We need it back because users are usually unable to provide the full RLP data of a bad block when it occurs. A shortcoming of this particular implementation is that the origin peer is not tracked for blocks received during eth/63 sync. No origin peer info is still better than no report at all though.
* eth: add new RPC method (personal.) SignAndSendTransactionBas van Kervel2016-05-201-1/+1
|
* cmd/geth: fix console history exclusionFelix Lange2016-05-141-6/+3
| | | | | | Calls to 'personal' API should be excluded from console history because they can be called with an account passphrase as argument. The check for such calls was inverted and didn't work.
* Merge pull request #2549 from karalabe/geth-tester-text-templatesPéter Szilágyi2016-05-111-1/+1
|\ | | | | cmd/geth: use text/templates in the tester, not html
| * cmd/geth: use text/templates in the tester, not htmlPéter Szilágyi2016-05-111-1/+1
| |
* | cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix minerPéter Szilágyi2016-05-111-1/+1
|/
* cmd/geth: fixed to use proper version string for outputJeffrey Wilcke2016-05-031-1/+1
|
* cmd/geth, release: polish and deploy live release contractPéter Szilágyi2016-05-021-1/+1
|
* release, all: integrate the release service into gethPéter Szilágyi2016-05-021-22/+37
|
* Merge pull request #2485 from karalabe/fakepowPéter Szilágyi2016-04-292-2/+6
|\ | | | | cmd: add a `--fakepow` flag to help benchmarking database changes
| * cmd: add a `--fakepow` flag to help benchmarking database changesPéter Szilágyi2016-04-212-2/+6
| |
* | Merge pull request #2478 from fjl/geth-js-tweakFelix Lange2016-04-262-12/+26
|\ \ | |/ |/| cmd/geth, jsre: improve the js command
| * cmd/geth, jsre: improve the js commandFelix Lange2016-04-212-12/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | geth js stopped the JS runtime after running the first input file and blocked for pending callbacks. This commit makes it process all files and enables quitting with Ctrl-C regardless of callbacks. Error reporting is also improved. If a script fails to load, the error is printed and includes the backtrace. package jsre now ensures that otto is aware of the filename, the backtrace will contain them. Before: $ geth js bad.js; echo "exit $?" ... log messages ... exit 0 After: $ geth js bad.js; echo "exit $?" ... log messages ... Fatal: JavaScript Error: Invalid number of input parameters at web3.js:3109:20 at web3.js:4917:15 at web3.js:4960:5 at web3.js:4984:23 at checkWork (bad.js:11:9) at bad.js:19:1 exit 1
* | VERSION, cmd/geth: bumped versionJeffrey Wilcke2016-04-201-2/+2
|/
* rpc: move web3.js extensions to internal/web3extFelix Lange2016-04-151-1/+2
|
* all: fix go vet warningsFelix Lange2016-04-151-1/+4
|
* all: update license informationFelix Lange2016-04-151-1/+1
|
* accounts: improve API and add documentationFelix Lange2016-04-121-1/+6
| | | | | - Sign takes common.Address, not Account - Import/Export methods work with encrypted JSON keys
* cmd/geth: add recovery procedure for AmbiguousAddrErrorFelix Lange2016-04-123-2/+107
|
* cmd/geth: print actual error when --unlock failsFelix Lange2016-04-122-4/+4
|
* accounts: add ErrDecryptFelix Lange2016-04-122-2/+2
|
* accounts: cache key addressesFelix Lange2016-04-122-8/+17
| | | | | | | | | | | | | | | In order to avoid disk thrashing for Accounts and HasAccount, address->key file mappings are now cached in memory. This makes it no longer necessary to keep the key address in the file name. The address of each key is derived from file content instead. There are minor user-visible changes: - "geth account list" now reports key file paths alongside the address. - If multiple keys are present for an address, unlocking by address is not possible. Users are directed to remove the duplicate files instead. Unlocking by index is still possible. - Key files are overwritten written in place when updating the password.
* cmd/geth: add tests for account commandsFelix Lange2016-04-127-1/+522
|
* accounts: streamline APIFelix Lange2016-04-123-21/+7
| | | | | | - Manager.Accounts no longer returns an error. - Manager methods take Account instead of common.Address. - All uses of Account with unkeyed fields are converted.
* cmd/geth: move account commands to accountcmd.goFelix Lange2016-04-122-258/+286
|
* accounts, crypto: move keystore to package accountsFelix Lange2016-04-121-17/+9
| | | | | | | | | | The account management API was originally implemented as a thin layer around crypto.KeyStore, on the grounds that several kinds of key stores would be implemented later on. It turns out that this won't happen so KeyStore is a superflous abstraction. In this commit crypto.KeyStore and everything related to it moves to package accounts and is unexported.
* cmd/geth, cmd/utils: improve input handlingFelix Lange2016-04-124-67/+25
| | | | | | | | | | | | | | | | | | | These changes make prompting behave consistently on all platforms: * The input buffer is now global. Buffering was previously set up for each prompt, which can cause weird behaviour, e.g. when running "geth account update <input.txt" where input.txt contains three lines. In this case, the first password prompt would fill up the buffer with all lines and then use only the first one. * Print the "unsupported terminal" warning only once. Now that stdin prompting has global state, we can use it to track the warning there. * Work around small liner issues, particularly on Windows. Prompting didn't work under most of the third-party terminal emulators on Windows because liner assumes line editing is always available.
* Merge pull request #2359 from bas-vk/rpc-optional-argsJeffrey Wilcke2016-04-123-3/+3
|\ | | | | rpc: several fixes and support for optional arguments
| * rpc: various fixes/enhancementsBas van Kervel2016-04-123-3/+3
| | | | | | | | | | | | | | | | rpc: be less restrictive on the request id rpc: improved documentation console: upgrade web3.js to version 0.16.0 rpc: cache http connections rpc: rename wsDomains parameter to wsOrigins
* | cmd/geth: add JS preload parameterBas van Kervel2016-04-113-0/+34
|/
* cmd/geth: add missing gas target flag (fixing 0 convergence issue)Péter Szilágyi2016-04-042-1/+2
|
* cmd/geth, eth: move --genesis deprecation warning to cmd/gethFelix Lange2016-04-021-0/+6
| | | | This prevents display of the warning for --dev and --olympic.
* core: added basic chain configurationJeffrey Wilcke2016-04-013-3/+41
| | | | | | | | | 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.
* core: Added EVM configuration optionsJeffrey Wilcke2016-03-242-2/+0
| | | | | The EVM is now initialised with an additional configured object that allows you to turn on debugging options.
* cmd/utils: add --keystoreKobi Gurkan2016-03-082-0/+2
|
* cmd/geth: removed multiline supportJeffrey Wilcke2016-02-271-1/+0
| | | | | | | | | When attempting to paste very long lines of text the REPL goes completely fubar, never completing the paste. Removing the multiline support "fixes" this. Long lines of text are usually pasted when deploying contracts and as it stands right now makes creating new contracts from the REPL impossible.
* all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()Ricardo Catalinas Jiménez2016-02-221-1/+1
| | | | As we aren't really using the standarized SHA-3
* Merge pull request #2206 from fjl/update-depsJeffrey Wilcke2016-02-172-91/+30
|\ | | | | Godeps: update all dependencies
| * cmd/geth, jsre: improve auto-completionFelix Lange2016-02-151-64/+5
| |
| * cmd/geth: enable multi-line modeFelix Lange2016-02-121-0/+1
| | | | | | | | | | This was requested by some users earlier but liner didn't support it at the time. It does now.
| * cmd/geth: gofmt js.go and rename ethereum.js to web3.jsFelix Lange2016-02-121-6/+6
| | | | | | | | | | Fixing the filename matters now because it will actually show up in JS backtraces.
| * cmd/geth: update monitor to new termui codePéter Szilágyi2016-02-111-25/+22
| |
* | cmd, node, rpc: readd inproc RPC client, expose via nodePéter Szilágyi2016-02-092-6/+4
| |
* | cmd, common, node, rpc: rework naming convention to canonical onePéter Szilágyi2016-02-094-7/+7
| |
* | cmd, node, rpc: move websockets into node, break singletonPéter Szilágyi2016-02-053-38/+37
| |
* | cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspectPéter Szilágyi2016-02-051-5/+0
|/
* cmd, common, node, rpc: move IPC into the node itselfPéter Szilágyi2016-02-042-8/+3
|
* internal/debug: APIs for profiling and tracingFelix Lange2016-01-282-24/+17
| | | | | | The debug package provides an RPC wrapper for glog settings and the debugging facilities of the Go runtime. They can be triggered through both command line flags and the IPC listener.
* rpc: migrated the RPC insterface to a new reflection based RPC layerBas van Kervel2016-01-265-183/+196
|
* console: add admin.sleep and admin.sleepBlocksBas van Kervel2016-01-191-0/+9
|
* Merge pull request #2064 from fjl/remove-common-rlpJeffrey Wilcke2015-12-191-3/+2
|\ | | | | common: remove old RLP implementation, Value and ExtPackage
| * common: remove old RLP implementation, Value and ExtPackageFelix Lange2015-12-181-3/+2
| | | | | | | | | | In order to make this happen, kill all remaining trivial uses of common/{rlp,value}.go. The non-trivial ones have been updated earlier.
* | console: bugfix that causes the console to crash when connection to an ↵Bas van Kervel2015-12-181-5/+6
|/ | | | endpoint without the personal api enabled
* Merge pull request #2070 from karalabe/android-archivesFelix Lange2015-12-151-0/+56
|\ | | | | Makefile, cmd/geth: support building Android archives
| * Makefile, cmd/geth: support building Android archivesPéter Szilágyi2015-12-141-0/+56
| |
* | Merge pull request #2035 from bas-vk/rcp-v2-rebaseFelix Lange2015-12-154-4/+22
|\ \ | |/ |/| rpc: new RPC implementation with pub/sub support
| * rpc: new RPC implementation with pub/sub supportBas van Kervel2015-12-144-4/+22
| |
* | Makefile, cmd/geth: assemble ios xcode frameworksPéter Szilágyi2015-12-093-1/+72
|/
* cmd/utils: restore starting geth without any accounts and etherbaseFelix Lange2015-12-011-2/+5
| | | | Also remove some duplication around address/index parsing.