aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* console: fix instance name printed incorrect on startBas van Kervel2015-11-301-1/+1
|
* Merge pull request #1970 from karalabe/customizable-protocol-stacksJeffrey Wilcke2015-11-274-408/+195
|\ | | | | Customizable protocol stacks
| * cmd, eth, node, rpc, xeth: use single-instance servicesPéter Szilágyi2015-11-273-10/+10
| |
| * cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-273-273/+195
| |
| * cmd: drop blocktest command, create gethrpctest programPéter Szilágyi2015-11-271-135/+0
| |
* | cmd, crypto: fixed nil public keys and updated web3Jeffrey Wilcke2015-11-261-2/+2
|/
* cmd/geth, cmd/utils: removed legaleseJeffrey Wilcke2015-11-191-26/+0
| | | | Removed the legalese confirmation dialog. This closes #1992
* cmd/geth, cmd/utils: surface the light KDF flag to the CLIPéter Szilágyi2015-11-102-0/+2
|
* cmd/geth: fix recover command crash if no param is suppliedPéter Szilágyi2015-11-051-2/+2
|
* VERSION, cmd/geth: bumped version 1.4.0Jeffrey Wilcke2015-11-031-2/+2
|
* cmd/geth, cmd/utils, eth: group CLI flags by purposePéter Szilágyi2015-10-302-4/+213
|
* rpc api: eth_getNatSpeczelig2015-10-272-23/+18
| | | | | | | | * xeth, rpc: implement eth_getNatSpec for tx confirmations * rename silly docserver -> httpclient * eth/backend: httpclient now accessible via eth.Ethereum init-d via config.DocRoot * cmd: introduce separate CLI flag for DocRoot (defaults to homedir) * common/path: delete unused assetpath func, separate HomeDir func
* fix console history, lines with leadning whitespace NOT includedzelig2015-10-241-1/+1
|
* console:zelig2015-10-222-54/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lines with leading space are ommitted from history * exit processed even with whitespace around * all whitespace lines (not only empty ones) are ignored add 7 missing commands to admin api autocomplete registrar: methods now return proper error if reg addresses are not set. fixes #1457 rpc/console: fix personal.newAccount() regression. Now all comms accept interactive password registrar: add registrar tests for errors crypto: catch AES decryption error on presale wallet import + fix error msg format. fixes #1580 CLI: improve error message when starting a second instance of geth. fixes #1564 cli/accounts: unlock multiple accounts. fixes #1785 * make unlocking multiple accounts work with inline <() fd * passwdfile now correctly read only once * improve logs * fix CLI help text for unlocking fix regression with docRoot / admin API * docRoot/jspath passed to rpc/api ParseApis, which passes onto adminApi * docRoot field for JS console in order to pass when RPC is (re)started * improve flag desc for jspath common/docserver: catch http errors from response fix rpc/api tests common/natspec: fix end to end test (skipped because takes 8s) registrar: fix major regression: * deploy registrars on frontier * register HashsReg and UrlHint in GlobalRegistrar. * set all 3 contract addresses in code * zero out addresses first in tests
* eth: clean out light node notions from ethPéter Szilágyi2015-10-191-3/+1
|
* cmd, eth: support switching client modes of operationPéter Szilágyi2015-10-191-0/+1
|
* Merge pull request #1869 from Gustav-Simonsson/gpu_minerJeffrey Wilcke2015-10-162-3/+45
|\ | | | | all: Add GPU mining, disabled by default
| * all: Add GPU mining, disabled by defaultGustav Simonsson2015-10-072-3/+45
| |
* | core/state, core, miner: handle missing root error from state.NewGustav Simonsson2015-10-162-4/+12
| |
* | Merge pull request #1888 from obscuren/testnetJeffrey Wilcke2015-10-091-0/+1
|\ \ | | | | | | cmd, core, eth: added official testnet
| * | cmd, core, eth: added official testnetJeffrey Wilcke2015-10-091-0/+1
| | |
* | | cmd: properly initialize Olympic for all subcommandsPéter Szilágyi2015-10-071-3/+1
| | |
* | | Merge pull request #1851 from bas-vk/historyfileJeffrey Wilcke2015-10-072-11/+7
|\ \ \ | |/ / |/| | console/history respect datadir
| * | console/history respect datadirBas van Kervel2015-09-252-11/+7
| | |
* | | cmd/geth: dev version numberJeffrey Wilcke2015-10-061-2/+2
| | |
* | | cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-043-3/+3
| |/ |/| | | | | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
* | common: fix #1818, secondary datadir paths to fall back toPéter Szilágyi2015-10-011-12/+12
|/
* cmd/geth, core: make "geth blocktest" work againFelix Lange2015-09-231-6/+0
| | | | | | | | | The test genesis block was not written properly, block insertion failed immediately. While here, fix the panic when shutting down "geth blocktest" with Ctrl+C. The signal handler is now installed automatically, causing ethereum.Stop to crash because everything is already stopped.
* Merge pull request #1669 from obscuren/tx-pool-auto-resendJeffrey Wilcke2015-09-221-1/+1
|\ | | | | core, xeth: chain reorg move missing transactions to transaction pool
| * core, core/types: readd transactions after chain re-orgJeffrey Wilcke2015-09-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a `Difference` method to `types.Transactions` which sets the receiver to the difference of a to b (NOTE: not a **and** b). Transaction pool subscribes to RemovedTransactionEvent adding back to those potential missing from the chain. When a chain re-org occurs remove any transactions that were removed from the canonical chain during the re-org as well as the receipts that were generated in the process. Closes #1746
* | cmd/geth: changed version number to 1.2.0Jeffrey Wilcke2015-09-211-2/+2
|/ | | Changed the version number of geth to 1.2.0 so that dev builds are now properly build (instead of master). Note to self; increase version number to 1.2.1 for our next actual release.
* tests: use lastblockhash field to validate reorgs and block headersGustav Simonsson2015-09-181-7/+9
|
* cmd/geth: extradata is correcly initialized with consoleKobi Gurkan2015-09-171-1/+3
|
* Merge pull request #1801 from fjl/ethdbJeffrey Wilcke2015-09-163-4/+4
|\ | | | | all: move common.Database to ethdb and add NewBatch
| * all: move common.Database to package ethdbFelix Lange2015-09-153-4/+4
| |
* | cmd/geth: adds extradata flagKobi Gurkan2015-09-161-1/+15
|/
* core: split out TD from database and all internalsPéter Szilágyi2015-09-111-4/+3
|
* Merge pull request #1773 from obscuren/dev-modeFelix Lange2015-09-111-0/+1
|\ | | | | cmd/geth, cmd/utils, eth: added dev mode flag
| * cmd/geth, cmd/utils, eth: added dev mode flagJeffrey Wilcke2015-09-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Dev mode enabled some debugging flags such as: * VM debugging mode * Simpler proof of work * Whisper enabled by default * Datadir to a tmp datadir * Maxpeers set to 0 * Gas price of 0 * Random listen port
* | cmd/geth Autocompletion bugfix which let the console crashBas van Kervel2015-09-061-1/+1
|/
* cmd/geth: honor datadir when attachingKobi Gurkan2015-09-031-1/+1
|
* eth: update metrics collection to handle eth/62 algosPéter Szilágyi2015-08-251-1/+1
|
* eth, eth/downloader: handle header requests, table driven proto testsPéter Szilágyi2015-08-241-0/+2
|
* cmd/geth: bumped version 1.1.0Jeffrey Wilcke2015-08-211-3/+3
|
* cmd/geth: bumped version 1.0.3Jeffrey Wilcke2015-08-201-2/+2
|
* geth: bumped version 1.0.2Jeffrey Wilcke2015-08-201-2/+2
|
* Revert "fdtrack: temporary hack for tracking file descriptor usage"Jeffrey Wilcke2015-08-201-4/+0
| | | | This reverts commit 5c949d3b3ba81ea0563575b19a7b148aeac4bf61.
* cmd/geth: Fix chain purging from cmd lineMaran2015-08-181-4/+3
|
* Merge pull request #1659 from bas-vk/exec-outputJeffrey Wilcke2015-08-151-6/+1
|\ | | | | Javascript --exec output
| * main print console output for js statement given by the exec argumentBas van Kervel2015-08-141-6/+1
| |
* | Merge pull request #1658 from bas-vk/liner-ctrl-cJeffrey Wilcke2015-08-141-0/+11
|\ \ | | | | | | Clear current line on ctrl-C
| * | main clear current line on ctrl-CBas van Kervel2015-08-141-0/+11
| | |
* | | Merge pull request #1642 from ethereum/fix-js-console-windowsJeffrey Wilcke2015-08-142-43/+15
|\ \ \ | |/ / |/| / | |/ cmd/geth, jsre: restore command line editing on windows
| * cmd/geth, jsre: restore command line editing on windowsFelix Lange2015-08-122-43/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | PR #856 broke command line editing by wrapping stdout with a filter that interprets ANSI escape sequences to fix colored printing on windows. Implement the printer in Go instead so it can do its own platform-dependent coloring. As a nice side effect, the JS console is now noticeably more responsive when printing results. Fixes #1608 Fixes #1612
* | Merge pull request #1635 from bas-vk/useragentJeffrey Wilcke2015-08-142-8/+4
|\ \ | | | | | | support for user agents
| * | support for user agentsBas van Kervel2015-08-122-8/+4
| |/
* / cmd/geth: remove spaces in client identifierFelix Lange2015-08-121-1/+1
|/
* Merge pull request #1604 from obscuren/db-mergeJeffrey Wilcke2015-08-091-13/+13
|\ | | | | core, eth, trie, xeth: merged state, chain, extra databases in one
| * core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-13/+13
| |
* | cmd/geth, core/vm: setup vm settings and defaulted JIT disabledJeffrey Wilcke2015-08-091-0/+1
| |
* | Merge pull request #1490 from obscuren/jit-vmJeffrey Wilcke2015-08-081-0/+3
|\ \ | | | | | | core/vm: jit vm
| * | core/vm, tests: implemented semi-jit vmJeffrey Wilcke2015-08-071-0/+3
| | | | | | | | | | | | * changed stack and removed stack ptr. Let go decide on slice reuse.
* | | string version for build servercaktux2015-08-081-1/+1
| |/ |/|
* | cmd/geth, eth: added canonical extra dataJeffrey Wilcke2015-08-071-2/+30
|/ | | | | Implemented canonical extra data according to https://github.com/ethereum/wiki/wiki/Extra-Data
* fake commit for build server :(Jeffrey Wilcke2015-08-061-1/+1
|
* cmd/geth: bumped version numberJeffrey Wilcke2015-08-061-1/+1
|
* Merge pull request #1574 from fjl/fdtrackJeffrey Wilcke2015-08-041-0/+4
|\ | | | | fdtrack: hack to track file descriptor usage
| * fdtrack: temporary hack for tracking file descriptor usageFelix Lange2015-08-041-0/+4
| | | | | | | | | | Package fdtrack logs statistics about open file descriptors. This should help identify the source of #1549.
* | Merge pull request #1562 from ethersphere/blankpasswdJeffrey Wilcke2015-08-041-2/+17
|\ \ | | | | | | jsre: leave out lines from history possibly containing passwords
| * | jsre: leave out lines from history containing methods of the personal modulezelig2015-07-311-2/+17
| |/
* / cmd, core, eth: support for the olympic networkJeffrey Wilcke2015-08-041-0/+4
|/ | | | Added a --olympic flag which initialiser the olympic protocol settings
* etherbase defaults to first account even if created during the sessionzelig2015-07-271-1/+2
|
* cmd/geth, core, eth: Version 1.0.0Jeffrey Wilcke2015-07-251-2/+1
| | | | | | | Genesis release. Closes #1402 Conflicts: cmd/geth/main.go
* Merge pull request #1510 from fjl/license-fixesJeffrey Wilcke2015-07-236-12/+12
|\ | | | | all: license fixes
| * all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-236-12/+12
| | | | | | | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* | Merge pull request #1508 from karalabe/database-cachingJeffrey Wilcke2015-07-231-1/+2
|\ \ | |/ |/| cmd, core, eth, ethdb: cache flag to allocate memory for db internal use
| * cmd, core, eth, ethdb: cache flag to allocate memory for db internal usePéter Szilágyi2015-07-221-1/+2
| |
* | Update disclaimerTaylor Gerring2015-07-211-3/+24
|/
* Prompt user to accept legalese when datadir doesn't existTaylor Gerring2015-07-161-0/+5
|
* cmd, core, eth, common: genesis preparationJeffrey Wilcke2015-07-102-2/+5
| | | | | Implemented the --genesis flag thru which we can set a custom genesis block, including the official Ethereum genesis block.
* cmd/geth: bump version 0.9.39Jeffrey Wilcke2015-07-101-1/+1
|
* cmd/geth: version bump 0.9.38Jeffrey Wilcke2015-07-091-1/+1
|
* cmd/geth, cmd/utils: changed ParamsToAddress to return errorJeffrey Wilcke2015-07-071-9/+12
| | | | | ParamsToAddress no longer aborts the process, it now returns an error instead so that the caller can handle the error properly.
* cmd/geth: version number 0.9.36Jeffrey Wilcke2015-07-071-1/+1
|
* all: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1
|
* all: remove @author commentsFelix Lange2015-07-071-4/+0
|
* all: update license informationFelix Lange2015-07-076-27/+90
|
* cmd/geth: fixed testJeffrey Wilcke2015-07-071-1/+1
|
* Merge pull request #1428 from obscuren/coinbase-fixesJeffrey Wilcke2015-07-071-16/+1
|\ | | | | cmd,eth,rpc,tests: default coinbase
| * cmd,eth,rpc,tests: default coinbaseJeffrey Wilcke2015-07-071-16/+1
| |
* | fix/skip tests, adapt registrar to no contract addresszelig2015-07-071-3/+9
| | | | | | | | registry initialisers now return the txhash which caller can use to retrieve receipt
* | fix natspec testzelig2015-07-071-1/+1
| | | | | | | | | | | | * registar url string retrieval chop leading zeros now * rewrite test using test mining * remove temporary applyTxs from xeth
* | fix js arguments and TestContract passeszelig2015-07-071-7/+10
| |
* | rename js methods in js_test for new console APIzelig2015-07-071-7/+7
| | | | | | | | + rebase fixes
* | fix GPO missing flagszelig2015-07-071-0/+6
| |
* | Registrar and contractInfo handlingzelig2015-07-072-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* | Registrar and contractInfo handlingzelig2015-07-075-73/+168
|/ | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* cmd/geth, cmd/utils: improve interrupt handlingFelix Lange2015-07-061-3/+1
| | | | | | | | | The new strategy for interrupts is to handle them explicitly. Ethereum.Stop is now only called once, even if multiple interrupts are sent. Interrupting ten times in a row forces a panic. Fixes #869 Fixes #1359
* account update: migrate or change passwordzelig2015-07-031-7/+61
| | | | | | * account.Update * KeyStore.Cleanup * fix dir rm for old format deleteKey
* fix account orderingzelig2015-07-031-1/+1
| | | | | | | | * chronological order of creation * new naming scheme keystore/UTC--<created_at UTC ISO8601>-<address hex> * KeyStore2 -> KeyStore * backward compatibility * refactor keyStore methods
* accounts order by keyfile ctimezelig2015-07-031-3/+3
|
* rpc/js coinbase returns null if no etherbase setzelig2015-07-031-3/+1
|
* no primary when listing accountszelig2015-07-031-4/+2
|
* unlock multiple passes and obsolete primaryzelig2015-07-032-17/+23
| | | | | | | * multiple passwords allowed in password file * split on "\n", sideeffect: chop trailing slashes. fixes common mistake <(echo 'pass') * remove accounts.Primary method * do not fall back to primary account for mining