aboutsummaryrefslogtreecommitdiffstats
path: root/console
Commit message (Collapse)AuthorAgeFilesLines
* all: use gometalinter.v2, fix new gosimple issues (#15650)Zach2017-12-131-7/+7
|
* console: add admin.clearHistory command (#15614)Sorin Neacsu2017-12-083-0/+20
|
* cmd, consensus, eth: split ethash related config to it own (#15520)gary rong2017-11-241-1/+4
| | | | | | | | | | * cmd, consensus, eth: split ethash related config to it own * eth, consensus: minor polish * eth, consenus, console: compress pow testing config field to single one * consensus, eth: document pow mode
* all: fix code comment typos (#15547)Ricardo Domingos2017-11-241-2/+2
| | | | | | | | | | | | * console: fix typo in comment * contracts/release: fix typo in comment * core: fix typo in comment * eth: fix typo in comment * miner: fix typo in comment
* cmd, consensus, core, miner: instatx clique for --dev (#15323)Péter Szilágyi2017-10-241-1/+1
| | | | | | | | * 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
* console: use keypad based pinpad (Trezor request)Péter Szilágyi2017-08-141-8/+3
|
* accounts, console, internal: support trezor hardware walletPéter Szilágyi2017-08-092-3/+58
|
* console: fix megacheck warningsEgon Elbre2017-08-071-2/+0
|
* console: avoid float64 when remarshaling parametersFelix Lange2017-05-021-3/+6
| | | | | | With Go 1.7, encoding/json marshals float64 using scientific notation ("10e+6"), but Go's int and *big.Int decoders don't accept such numbers. This change disables use of float64 to avoid the problem.
* 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-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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: next batch of log polishes to contextual versionsPéter Szilágyi2017-02-281-1/+1
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-3/+2
|
* console, internal/web3ext: remove bzz and ens extensions (#3602)Felix Lange2017-01-251-0/+4
| | | | | web3.js includes bzz methods and throws an error when the extension module is reregistered. The ENS RPC API is deprecated and not exposed by anything.
* all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-091-2/+2
| | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* console: fix error message in faux JSON-RPC responsesFelix Lange2017-01-081-12/+5
| | | | | The message was used as both key and value in the error object. This only affected unusual errors with no error code.
* all: fix spelling errorsPéter Szilágyi2017-01-072-6/+6
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-071-7/+4
|
* core/types, params: EIP#155Jeffrey Wilcke2016-11-131-1/+1
|
* core, core/state, trie: EIP158, reprice & skip empty account writeJeffrey Wilcke2016-11-131-2/+2
| | | | | | | | | | | | | | | This commit implements EIP158 part 1, 2, 3 & 4 1. If an account is empty it's no longer written to the trie. An empty account is defined as (balance=0, nonce=0, storage=0, code=0). 2. Delete an empty account if it's touched 3. An empty account is redefined as either non-existent or empty. 4. Zero value calls and zero value suicides no longer consume the 25k reation costs. params: moved core/config to params Signed-off-by: Jeffrey Wilcke <jeffrey@ethereum.org>
* all: update license informationFelix Lange2016-11-092-2/+2
|
* console: enable multiline modeFelix Lange2016-11-041-1/+1
|
* internal/ethapi: add personal_sign and fix eth_sign to hash message (#2940)bas-vk2016-10-292-4/+45
| | | | | | | | | | | | | | | | | | | | This commit includes several API changes: - The behavior of eth_sign is changed. It now accepts an arbitrary message, prepends the well-known string \x19Ethereum Signed Message:\n<length of message> hashes the result using keccak256 and calculates the signature of the hash. This breaks backwards compatability! - personal_sign(hash, address [, password]) is added. It has the same semantics as eth_sign but also accepts a password. The private key used to sign the hash is temporarily unlocked in the scope of the request. - personal_recover(message, signature) is added and returns the address for the account that created a signature.
* Merge pull request #2909 from fjl/account-manager-cleanupFelix Lange2016-08-181-8/+4
|\ | | | | all: clean up tech debt left behind by the API split
| * cmd/utils, node: create account manager in package nodeFelix Lange2016-08-171-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | console: fix return via callbacks (#2910)cdetrio2016-08-161-2/+2
|/ | | Fixes #2872
* rpc: add new client, use it everywhereFelix Lange2016-07-232-107/+71
| | | | | | The new client implementation supports concurrent requests, subscriptions and replaces the various ad hoc RPC clients throughout go-ethereum.
* cmd, common, console, eth, release: drop redundant "full"sPéter Szilágyi2016-06-301-2/+2
|
* eth: separate common and full node-specific API and backend servicezsfelfoldi2016-06-161-2/+2
|
* Merge pull request #2670 from bas-vk/indentPéter Szilágyi2016-06-092-2/+91
|\ | | | | Ignore round and curly brackets in strings for indentation level
| * console: ignore round and curly brackets in strings when determining ↵Bas van Kervel2016-06-082-2/+91
| | | | | | | | indentation level
* | console: fix windows color transformation issuePéter Szilágyi2016-06-081-1/+2
|/
* console: remove unnecessary JS evaluation in WelcomeFelix Lange2016-06-031-10/+8
|
* cmd/geth, console: fix reviewer issuesPéter Szilágyi2016-05-313-45/+64
|
* console, internal/jsre: colorize JavaScript exceptions tooPéter Szilágyi2016-05-302-10/+17
|
* cmd, console: split off the console into a reusable packagePéter Szilágyi2016-05-306-0/+1127