aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/cmd.go
Commit message (Collapse)AuthorAgeFilesLines
* core, cmd, vendor: fixes and database inspection tool (#15)gary rong2019-05-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | * core, eth: some fixes for freezer * vendor, core/rawdb, cmd/geth: add db inspector * core, cmd/utils: check ancient store path forceily * cmd/geth, common, core/rawdb: a few fixes * cmd/geth: support windows file rename and fix rename error * core: support ancient plugin * core, cmd: streaming file copy * cmd, consensus, core, tests: keep genesis in leveldb * core: write txlookup during ancient init * core: bump database version
* all: clean up and proerly abstract database accessPéter Szilágyi2019-03-061-2/+2
|
* rawdb: remove unused parameter for WritePreimages func (#18059)Corey Lin2018-11-091-2/+2
| | | | | | | * rawdb: remove unused parameter for WritePreimages func and modify a spelling mistake * rawdb: update the doc for function WritePreimages
* core/rawdb: separate raw database access to own package (#16666)Péter Szilágyi2018-05-071-4/+3
|
* cmd: export preimages in RLP, support GZIP, uniform with block exportPéter Szilágyi2018-03-261-3/+91
|
* cmd, console: support all termination signalsPéter Szilágyi2018-02-211-2/+3
|
* core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-061-9/+17
| | | This commit reduces database I/O by not writing every state trie to disk.
* core, eth/downloader: commit block data using batches (#15115)Felix Lange2017-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ethdb: add Putter interface and Has method * ethdb: improve docs and add IdealBatchSize * ethdb: remove memory batch lock Batches are not safe for concurrent use. * core: use ethdb.Putter for Write* functions This covers the easy cases. * core/state: simplify StateSync * trie: optimize local node check * ethdb: add ValueSize to Batch * core: optimize HasHeader check This avoids one random database read get the block number. For many uses of HasHeader, the expectation is that it's actually there. Using Has avoids a load + decode of the value. * core: write fast sync block data in batches Collect writes into batches up to the ideal size instead of issuing many small, concurrent writes. * eth/downloader: commit larger state batches Collect nodes into a batch up to the ideal size instead of committing whenever a node is received. * core: optimize HasBlock check This avoids a random database read to get the number. * core: use numberCache in HasHeader numberCache has higher capacity, increasing the odds of finding the header without a database lookup. * core: write imported block data using a batch Restore batch writes of state and add blocks, tx entries, receipts to the same batch. The change also simplifies the miner. This commit also removes posting of logs when a forked block is imported. * core: fix DB write error handling * ethdb: use RLock for Has * core: fix HasBlock comment
* Logger updates 3 (#3730)Péter Szilágyi2017-03-021-10/+9
| | | | | | | | * 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
* common: move big integer math to common/math (#3699)Felix Lange2017-02-271-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * common: remove CurrencyToString Move denomination values to params instead. * common: delete dead code * common: move big integer operations to common/math This commit consolidates all big integer operations into common/math and adds tests and documentation. There should be no change in semantics for BigPow, BigMin, BigMax, S256, U256, Exp and their behaviour is now locked in by tests. The BigD, BytesToBig and Bytes2Big functions don't provide additional value, all uses are replaced by new(big.Int).SetBytes(). BigToBytes is now called PaddedBigBytes, its minimum output size parameter is now specified as the number of bytes instead of bits. The single use of this function is in the EVM's MSTORE instruction. Big and String2Big are replaced by ParseBig, which is slightly stricter. It previously accepted leading zeros for hexadecimal inputs but treated decimal inputs as octal if a leading zero digit was present. ParseUint64 is used in places where String2Big was used to decode a uint64. The new functions MustParseBig and MustParseUint64 are now used in many places where parsing errors were previously ignored. * common: delete unused big integer variables * accounts/abi: replace uses of BytesToBig with use of encoding/binary * common: remove BytesToBig * common: remove Bytes2Big * common: remove BigTrue * cmd/utils: add BigFlag and use it for error-checked integer flags While here, remove environment variable processing for DirectoryFlag because we don't use it. * core: add missing error checks in genesis block parser * common: remove String2Big * cmd/evm: use utils.BigFlag * common/math: check for 256 bit overflow in ParseBig This is supposed to prevent silent overflow/truncation of values in the genesis block JSON. Without this check, a genesis block that set a balance larger than 256 bits would lead to weird behaviour in the VM. * cmd/utils: fixup import
* cmd, whisper/mailserver: revert to utils.FatalfPéter Szilágyi2017-02-231-1/+1
|
* accounts, cmd: port packages over to the new logging systemPéter Szilágyi2017-02-231-9/+0
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-13/+12
|
* 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-1/+1
|
* cmd/utils, eth: Add gzip support for chain dump and restoreNick Johnson2016-12-141-3/+28
|
* cmd/utils: don't check for stderr redirect on windowsFelix Lange2016-09-261-4/+11
| | | | | | | | The redirect check did not work on Go 1.6 and below because Stat returned an error for stdout and stderr. In Go 1.7 Stat works on stdout but doesn't return anything meaningful, causing cmd/geth test failures because the message is printed to stderr only. Fix it by printing to stdout only.
* cmd/utils: add space between "to" and filenameTosh Camille2016-06-151-5/+5
|
* cmd/utils: flush trace and CPU profile data when force-quttingFelix Lange2016-05-061-4/+2
| | | | Also reduce log messages a little bit.
* cmd/geth, cmd/utils: improve input handlingFelix Lange2016-04-121-50/+0
| | | | | | | | | | | | | | | | | | | 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.
* cmd/utils: removed password line endings when not using liner.Ramesh Nair2016-03-231-0/+1
|
* cmd/utils, internal/debug: show all stacks for 10x Ctrl-C induced panicFelix Lange2016-03-121-1/+2
| | | | | Go 1.6 only prints stacks for the current goroutine by default, but for this panic we want to see all of them.
* cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-271-6/+5
|
* cmd/geth, cmd/utils: removed legaleseJeffrey Wilcke2015-11-191-10/+0
| | | | Removed the legalese confirmation dialog. This closes #1992
* console:zelig2015-10-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* cmd: properly initialize Olympic for all subcommandsPéter Szilágyi2015-10-071-13/+0
|
* cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-041-6/+6
| | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
* cmd/utils, core: disable exp diff for olympic netJeffrey Wilcke2015-08-061-0/+2
|
* cmd, core, eth: support for the olympic networkJeffrey Wilcke2015-08-041-0/+17
| | | | Added a --olympic flag which initialiser the olympic protocol settings
* 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".
* Update disclaimerTaylor Gerring2015-07-211-9/+10
|
* Move text to separate fileTaylor Gerring2015-07-161-11/+0
|
* Prompt user to accept legalese when datadir doesn't existTaylor Gerring2015-07-161-6/+17
|
* all: add some godoc synopsis commentsFelix Lange2015-07-071-0/+1
|
* all: remove @author commentsFelix Lange2015-07-071-5/+0
|
* all: update license informationFelix Lange2015-07-071-15/+15
|
* cmd/utils: fix interrupt handling to actually see subsequent interruptsFelix Lange2015-07-061-1/+1
|
* cmd/geth, cmd/utils: improve interrupt handlingFelix Lange2015-07-061-34/+16
| | | | | | | | | 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
* Allow export command to take first and last argsTaylor Gerring2015-06-061-0/+15
|
* cmd/utils: use constant for import batch sizeFelix Lange2015-05-281-3/+6
|
* cmd/utils: skip batches with known blocks during importFelix Lange2015-05-281-3/+16
| | | | This makes block importing restartable.
* cmd/geth, cmd/utils: make chain importing interruptibleFelix Lange2015-05-281-5/+33
| | | | | | 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/utils: print errors only once if stdout and stderr are the same fileFelix Lange2015-05-281-3/+10
|
* cmd/geth, cmd/utils: don't use Ethereum for import, export and upgradedbFelix Lange2015-05-281-28/+21
| | | | | | The blockchain commands don't need the full stack. With this change, p2p, miner, downloader, etc are no longer started for blockchain operations.
* Remove unused confirm() methodTaylor Gerring2015-05-191-14/+0
|
* Refactor user prompts into utilsTaylor Gerring2015-05-191-0/+44
|
* core, cmd/geth, cmd/mist: cleanup. bump version 0.9.21obscuren2015-05-161-1/+1
|
* solidity compiler and contract metadocs integrationzelig2015-05-071-11/+2
| | | | | | | | | | | | | * common/compiler: solidity compiler + tests * rpc: eth_compilers, eth_compileSolidity + tests * fix natspec test using keystore API, notice exp dynamically changes addr, cleanup * resolver implements registrars and needs to create reg contract (temp) * xeth: solidity compiler. expose getter Solc() and paths setter SetSolc(solcPath) * ethereumApi: implement compiler related RPC calls using XEth - json struct tests * admin: make use of XEth.SetSolc to allow runtime setting of compiler paths * cli: command line flags solc to set custom solc bin path * js admin api with new features debug and contractInfo modules * wiki is the doc https://github.com/ethereum/go-ethereum/wiki/Contracts-and-Transactions
* core: return the index of the block that failed when inserting a chainobscuren2015-04-291-2/+2
|
* cmd/rlpdump, cmd/utils, eth, p2p, whisper: use rlp input limitFelix Lange2015-04-171-1/+1
|
* Added blockchain DB versioning support, closes #650Bas van Kervel2015-04-131-3/+22
|
* Updated loggingobscuren2015-04-071-4/+4
|
* cmd/ethereum, cmd/utils: partial fix for chain importFelix Lange2015-03-181-4/+3
|
* core: use package rlp to encode blocksFelix Lange2015-03-181-15/+22
| | | | | This also changes the chain export format so there is no enclosing list around the blocks, which enables streaming export.
* Moved ethutil => commonobscuren2015-03-161-5/+5
|
* Merge branch origin/develop into accounts-integrationFelix Lange2015-03-111-24/+26
|\ | | | | | | | | | | | | Conflicts: cmd/blocktest/main.go cmd/mist/debugger.go cmd/utils/cmd.go
| * Merge pull request #449 from Gustav-Simonsson/add_blockchain_tests2Jeffrey Wilcke2015-03-101-0/+9
| |\ | | | | | | Add empty total difficulty to test blocks and clean up stopping the node
| | * Add empty total difficulty to test blocks and clean up stopping the nodeGustav Simonsson2015-03-101-0/+9
| | |
| * | Merge pull request #438 from ethersphere/poc9/cliJeffrey Wilcke2015-03-101-24/+17
| |\ \ | | |/ | |/| Poc9/cli (exportchain)
| | * add export blockchain subcommand, remove BlockDozelig2015-03-081-24/+17
| | |
* | | cmd/utils: remove extra space in fatal error messageFelix Lange2015-03-101-1/+1
| | |
* | | Merge ethereum/poc-9 into accounts-integrationFelix Lange2015-03-101-1/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: cmd/utils/cmd.go cmd/utils/flags.go core/manager.go eth/backend.go rpc/http/server.go xeth/xeth.go
| * | Updated xeth instances to take extra param for ui.Interfaceobscuren2015-03-091-1/+1
| |/ | | | | | | | | | | Please be aware that if any of the instances on xeth.frontend are called the program will crash due to the default, temporarily, frontend interface.
| * Separated block db from state db. Partial fix for #416obscuren2015-03-071-1/+1
| |
* | cmd/utils: delete InitConfig, KeyTasksFelix Lange2015-03-101-40/+0
| |
* | rpc: add dataDir parameter and JSON-RPC handlerFelix Lange2015-03-101-12/+0
|/
* cmd/ethereum: improve command line interfaceFelix Lange2015-03-061-9/+16
| | | | | | | | | | The ethereum command line interface is now structured using subcommands. These separate the different tasks it can perform. Almost all flag names are backwards compatible. The key tasks have not been ported to subcommands since they will be replaced by the new accounts infrastructure very soon.
* Merge branch 'develop' into poc-9obscuren2015-03-041-13/+0
|\ | | | | | | | | Conflicts: cmd/utils/cmd.go
| * Merge branch 'develop' of github.com:ethereum/go-ethereum into removewsTaylor Gerring2015-03-021-2/+2
| |\ | | | | | | | | | | | | | | | Conflicts: cmd/ethereum/flags.go cmd/mist/flags.go
| * | Remove Websockets RPC transportTaylor Gerring2015-03-011-13/+0
| | |
* | | mergeobscuren2015-03-041-2/+2
|\ \ \ | | |/ | |/|
| * | Add flag to set RPC portTaylor Gerring2015-02-281-2/+2
| |/
* / fixed pow stuffobscuren2015-03-041-39/+0
|/
* Cleanup importsTaylor Gerring2015-02-261-3/+0
|
* DRY DefaultAssetPath()Taylor Gerring2015-02-261-26/+0
|
* Update osext import pathTaylor Gerring2015-02-261-1/+1
|
* Added eth_logs & fixed issue with manual log filteringobscuren2015-02-221-1/+1
| | | | | | * Implemented `eth_logs` * Fixed issue with `filter.Find()` where logs were appended to an incorrect, non-returned slice resulting in no logs found
* Implement command line argument to set the amount of agents created by the minerMaran2015-02-191-1/+1
| | | | Defaults to the amount of cores available on the CPU
* cmd/ethereum, cmd/mist: add flag for discovery bootstrap nodesFelix Lange2015-02-071-2/+2
|
* cmd/ethereum, cmd/mist, core, eth, javascript, xeth: fixes for new p2p APIFelix Lange2015-02-061-4/+2
|
* Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-02-061-2/+2
|\
| * Move hardcoded seed node address to app flagTaylor Gerring2015-02-031-2/+2
| | | | | | | | Replaces functionality `-seed=true` with `-seed="ip:port"`
* | Update signature for rpc websocketsTaylor Gerring2015-02-021-1/+1
|/
* Remove old websocket implementationTaylor Gerring2015-01-291-3/+0
|
* further cleaned up xeth interfaceobscuren2015-01-291-1/+1
|
* Rename transport to wsTaylor Gerring2015-01-281-1/+1
| | | | Cleanup object naming for clarity
* Update CLI to use new Websocket RPCTaylor Gerring2015-01-281-4/+12
| | | | Use “wsport” flag to change default port
* Move HTTP transport to sub package of RPCTaylor Gerring2015-01-281-2/+2
|
* Move websockets out of cmd/utilTaylor Gerring2015-01-211-0/+8
|
* Refactored ethutil.Config.Db outobscuren2015-01-071-1/+3
|
* Added license headersobscuren2015-01-061-0/+21
|
* added shh back inobscuren2015-01-061-1/+5
|
* BlockManager => BlockProcessorobscuren2015-01-051-1/+1
|
* Cleaned up some of that utilobscuren2015-01-041-99/+4
|
* Switched to new trieobscuren2014-12-241-1/+1
|
* Moved import to utilsobscuren2014-12-231-0/+24
|
* Refactored block & Transactionobscuren2014-12-231-1/+1
| | | | * Includes new rlp decoder
* resolve merge conflict hellzelig2014-12-151-10/+1
|
* adapt cmd/cli to new backendzelig2014-12-151-0/+9
| | | | | | | | | | - new flag nat for nat support UPNP|PMP - new flag pmp for PMP gateway IP - add NatType to utils/cmd to get p2p.NAT from nat type string - obsolete usepnp flag - get rid of IsUpToDate and sleep in miner start - ethereum constructor takes nat type, port, maxpeer - add pubkey arg to client identity
* adapt to new backendzelig2014-12-151-14/+24
| | | | | | | | | - eth p2p pkgs - new Ethereum initialiser - no caps param - use nat type - add NatType func to map nat type string to p2p.NAT - add pubkey to client identity
* Show newly created private key during startup. Closes #126obscuren2014-12-051-1/+1
|
* Set proper message valueobscuren2014-12-031-1/+1
|
* Implemented new miner w/ ui interface for merged mining. Closes #177obscuren2014-11-071-1/+1
| | | | | | | | * Miner has been rewritten * Added new miner pane * Added option for local txs * Added option to read from MergeMining contract and list them for merged mining
* StateManager => BlockManagerobscuren2014-11-041-1/+1
|
* ethminer => minerobscuren2014-10-311-9/+9
|
* ethwire => wireobscuren2014-10-311-4/+4
|
* ethpipe => xeth (eXtended ETHereum)obscuren2014-10-311-2/+2
|
* Moved utils to cmdobscuren2014-10-311-0/+327