aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/chaincmd.go
Commit message (Collapse)AuthorAgeFilesLines
* 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-101-1/+195
|
* 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).
* 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: add --config file flag (#13875)Felix Lange2017-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* 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.
* * cmd/geth: add --nocompaction flag + multiple import filesMartin Holst Swende2017-03-081-5/+22
| | | | | | | | | | * 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-021-1/+1
| | | | | | | | * 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-231-60/+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-231-17/+17
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-22/+21
|
* cmd/geth, cmd/swarm: Fix to close file handler appropriatelyShintaro Kaneko2017-01-301-0/+1
|
* cmd/geth: tidied up the source (#3385)Péter Szilágyi2016-11-301-0/+37
| | | cmd/geth: tidied up the source
* cmd/geth, core, light, mobile: removed state account StartingNonceJeffrey Wilcke2016-11-231-3/+0
| | | | All account's nonce start at 0.
* cmd/geth: improve command help messages (#3227)Kenji Siu2016-11-101-16/+35
|
* cmd, eth: added light client and light server modeszsfelfoldi2016-11-091-1/+1
|
* 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-191-1/+1
|
* 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-161-16/+35
| | | | | This change ensures that nodes started with different Name but same DataDir values don't use the same nodekey and IPC socket.
* cmd/geth: set correct initial nonce on testnet for import/init subcommands ↵Hellsegga2016-08-231-0/+3
| | | | (#2924)
* 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-101-6/+10
| |
* | cmd/geth: codegansta/cli package renamed to urfave/cliBas van Kervel2016-06-091-1/+1
|/
* cmd/geth, console: fix reviewer issuesPéter Szilágyi2016-05-311-1/+1
|
* cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-301-1/+2
|
* cmd/geth, cmd/utils: improve input handlingFelix Lange2016-04-121-1/+1
| | | | | | | | | | | | | | | | | | | 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.
* 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.
* core/state, core, miner: handle missing root error from state.NewGustav Simonsson2015-10-161-1/+5
|
* all: move common.Database to package ethdbFelix Lange2015-09-151-1/+2
|
* cmd/geth: Fix chain purging from cmd lineMaran2015-08-181-4/+3
|
* core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-13/+13
|
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-231-2/+2
| | | | | 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
|
* Improved error checkingTaylor Gerring2015-06-061-3/+7
|
* CleanupTaylor Gerring2015-06-061-1/+1
|
* Allow export command to take first and last argsTaylor Gerring2015-06-061-1/+21
|
* cmd/geth: don't flush databases after importFelix Lange2015-05-281-5/+4
|
* cmd/geth, cmd/utils: make chain importing interruptibleFelix Lange2015-05-281-5/+6
| | | | | | Interrupting import with Ctrl-C could cause database corruption because the signal wasn't handled. utils.ImportChain now checks for a queued interrupt on every batch.
* cmd/geth, cmd/utils: rename utils.Get* -> utils.Make*Felix Lange2015-05-281-5/+5
| | | | | The renaming should make it clearer that these functions create a new instance for every call. @obscuren suggested this renaming a while ago.
* cmd/geth: move blockchain commands to chaincmd.goFelix Lange2015-05-281-0/+159