aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
Commit message (Collapse)AuthorAgeFilesLines
...
* whisper: switch all remaining components from v5 to v6Guillaume Ballet2018-03-262-2/+2
|\
| * whisper: some components are still using v5, switch to v6Guillaume Ballet2018-03-222-2/+2
| |
* | cmd/puppeth: add constraints to network name (#16336)Zhenguo Niu2018-03-261-1/+6
| | | | | | | | | | | | | | | | * cmd/puppeth: add constraints to network name * cmd/puppeth: update usage of network arg * cmd/puppeth: avoid package dependency on utils
* | cmd: export preimages in RLP, support GZIP, uniform with block exportPéter Szilágyi2018-03-263-119/+154
| |
* | cmd: implement preimage dump and import cmdsrjl4934564422018-03-262-0/+115
|/
* cmd/utils: fix maxpeers vs lightpeers logic (#16125)Felföldi Zsolt2018-03-091-0/+3
|
* cmd/puppeth: allow any vhost in walletVlad Bokov2018-03-091-1/+1
|
* 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-082-7/+0
| | | | | | * cmd, dashboard: remove custom assets, webpack dev server * dashboard: yarn commands, small fixes
* whisper: final refactoring (#16259)gluk2562018-03-071-31/+52
| | | | whisper: final refactoring
* cmd/evm, core/vm, internal/ethapi: don't disable call gas meteringPéter Szilágyi2018-03-052-8/+2
|
* utils: fix #16138 by checking if vhosts flag is set (#16141)Martin Holst Swende2018-03-051-3/+4
| | | | | | | | * utils: fix #16138 by checking if vhosts flag is set * utils,node: fix defaults for rpcvhosts * node,utils: address review concerns
* whisper: refactoring go-routinesVlad2018-03-051-24/+32
|
* whisper: minor refactoringVlad2018-03-041-8/+4
|
* Merge pull request #16231 from gluk256/303-readergluk2562018-03-031-0/+37
|\ | | | | whisper: filereader mode introduced to wnode
| * whisper: filereader mode introduced to wnodeVlad2018-03-021-0/+37
| |
* | Merge pull request #16228 from karalabe/faucet-background-skipPéter Szilágyi2018-03-021-3/+16
|\ \ | | | | | | cmd/faucet: update state in background, skip when busy
| * | cmd/faucet: update state in background, skip when busyPéter Szilágyi2018-03-021-3/+16
| |/
* / cmd/swarm: fix some typos in manifest cmd (#16227)Zhenguo Niu2018-03-021-3/+3
|/ | | Replace "atleast" with "at least" in the manifest error message.
* whisper: topics replaced by bloom filtersVlad2018-03-011-7/+33
|
* whisper: serious security issue fixed (#16219)gluk2562018-03-011-7/+10
| | | | | | | The diagnostic tool was saving the unencrypted version of the messages, which is an obvious security flaw. As of this commit: * encrypted messages saved instead of plain text. * all messages are stored, even that created by the user of wnode.
* puppeth: fix Parity Chain Spec parameter GasLimitBoundDivision (#16188)Saulius Grigaitis2018-02-271-14/+14
|
* Merge pull request #16198 from gluk256/266-wnodeGuillaume Ballet2018-02-271-14/+12
|\ | | | | whisper: refactor wnode to systematically store messages if a directory is provided
| * whipser: comments updatedVlad2018-02-271-3/+5
| |
| * whisper: wnode updated - all messages are saved if savedir param is givenVlad2018-02-261-14/+10
| |
* | 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'
* swarm: initial instrumentation (#15969)Anton Evangelatov2018-02-231-1/+7
| | | | | | | | | | | | | | | | | | * swarm: initial instrumentation with go-metrics * swarm: initialise metrics collection and add ResettingTimer to HTTP requests * swarm: update metrics flags names. remove redundant Timer. * swarm: rename method for periodically updating gauges * swarm: finalise metrics after feedback * swarm/network: always init kad metrics containers * swarm/network: off-by-one index in metrics containers * swarm, metrics: resolved conflicts
* core, vm, common: define constantinople fork + shift (#16045)Martin Holst Swende2018-02-231-0/+1
| | | | | | | | | | | | * core, vm, common: define constantinople fork, start implementation of shift instructions * vm: more testcases * vm: add tests for intpool erroneous intpool handling * core, vm, common: fix constantinople review concerns * vm: add string<->op definitions for new opcodes
* swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2018-02-2326-139/+198
|\
| * cmd/faucet: resolve twitter user from final redirectPéter Szilágyi2018-02-221-2/+7
| |
| * cmd/puppeth: Don't allow hyphen in network name. Fixes #16155Nilesh Trivedi2018-02-221-3/+4
| |
| * cmd, console: support all termination signalsPéter Szilágyi2018-02-212-3/+5
| |
| * whisper: only use the node id as a p2p id, not for sending messages (#16102)Guillaume Ballet2018-02-151-2/+2
| | | | | | | | | | | | | | | | | | This is in preparation for the switch to libp2p: the ID generated will be from a private key created with the help of libp2p's crypto library, while Whisper will still use Go's default crypto libraries for encrypting its messages. This change removes a conflict. It shouldn't have any impact as the person receiving emails is the user, not the node.
| * Merge pull request #16098 from holiman/fix_importPéter Szilágyi2018-02-151-0/+3
| |\ | | | | | | main: add gc flags to import-command
| | * main: add gc flags to import-commandMartin Holst Swende2018-02-151-0/+3
| | |
| * | all: update license information (#16089)Felix Lange2018-02-147-11/+43
| |/
| * cmd/puppeth: unify discv4 and discv5 portsPéter Szilágyi2018-02-129-101/+78
| |
| * rpc: dns rebind protection (#15962)Martin Holst Swende2018-02-123-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * p2p, p2p/discover: misc connectivity improvements (#16069)Felix Lange2018-02-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p: add DialRatio for configuration of inbound vs. dialed connections * p2p: add connection flags to PeerInfo * p2p/netutil: add SameNet, DistinctNetSet * p2p/discover: improve revalidation and seeding This changes node revalidation to be periodic instead of on-demand. This should prevent issues where dead nodes get stuck in closer buckets because no other node will ever come along to replace them. Every 5 seconds (on average), the last node in a random bucket is checked and moved to the front of the bucket if it is still responding. If revalidation fails, the last node is replaced by an entry of the 'replacement list' containing recently-seen nodes. Most close buckets are removed because it's very unlikely we'll ever encounter a node that would fall into any of those buckets. Table seeding is also improved: we now require a few minutes of table membership before considering a node as a potential seed node. This should make it less likely to store short-lived nodes as potential seeds. * p2p/discover: fix nits in UDP transport We would skip sending neighbors replies if there were fewer than maxNeighbors results and CheckRelayIP returned an error for the last one. While here, also resolve a TODO about pong reply tokens.
| * whisper: get wnode to work with v6 (#16051)Guillaume Ballet2018-02-101-16/+41
| | | | | | | | | | | | | | | | | | | | The bulk of the issue was to adapt to the new requirement that a v6 filter has to either contain a symmertric key or an asymmetric one. This commits revert one of the fixes that I made to remove a linter warning: unexporting NewSentMessage. This is not really a problem as I have a cleanup in the pipe that will solve this issue.
* | swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2018-02-2229-293/+855
|\|
| * core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-066-20/+70
| | | | | | This commit reduces database I/O by not writing every state trie to disk.
| * les: limit LES peer count and improve peer configuration logic (#16010)Felföldi Zsolt2018-02-051-3/+23
| | | | | | | | | | | | * les: limit number of LES connections * eth, cmd/utils: light vs max peer configuration logic
| * utils: fix #16006 by not lowering OS ulimitMartin Holst Swende2018-02-021-3/+5
| |
| * whisper: remove linter warnings (#15972)Guillaume Ballet2018-01-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: fixes warnings from the code linter * whisper: more non-API-breaking changes The remaining lint errors are because of auto-generated files and one is because an exported function has a non- exported return type. Changing this would break the API, and will be part of another commit for easier reversal. * whisper: un-export NewSentMessage to please the linter This is an API change, which is why it's in its own commit. This change was initiated after the linter complained that the returned type wasn't exported. I chose to un-export the function instead of exporting the type, because that type is an implementation detail that I would like to change in the near future to make the code more readable and with an increased coverage. * whisper: update gencodec output after upgrading it to new lint standards
| * cmd, params: update discovery v5 bootnodes (#15954)Felföldi Zsolt2018-01-251-1/+1
| |
| * Merge pull request #15832 from karalabe/abigen-eventsPéter Szilágyi2018-01-241-17/+0
| |\ | | | | | | accounts/abi/bind: support event filtering in abigen
| | * accounts/abi/bind: support event filtering in abigenPéter Szilágyi2018-01-241-17/+0
| | |
| * | p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200)Felföldi Zsolt2018-01-223-13/+23
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit affects p2p/discv5 "topic discovery" by running it on the same UDP port where the old discovery works. This is realized by giving an "unhandled" packet channel to the old v4 discovery packet handler where all invalid packets are sent. These packets are then processed by v5. v5 packets are always invalid when interpreted by v4 and vice versa. This is ensured by adding one to the first byte of the packet hash in v5 packets. DiscoveryV5Bootnodes is also changed to point to new bootnodes that are implementing the changed packet format with modified hash. Existing and new v5 bootnodes are both running on different ports ATM.
| * cmd/ethkey: fix formatting, review nits (#15807)Felix Lange2018-01-166-92/+226
| | | | | | | | | | | | | | | | This commit: - Adds a --msgfile option to read the message to sign from a file instead of command line argument. - Adds a unit test for signing subcommands. - Removes some weird whitespace in the code.
| * dashboard: deep state update, version in footer (#15837)Kurkó Mihály2018-01-152-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| |
| * common/fdlimit: Move fdlimit files to separate package (#15850)Ricardo Domingos2018-01-125-218/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * common/fdlimit: Move fdlimit files to separate package When go-ethereum is used as a library the calling program need to set the FD limit. This commit extract fdlimit files to a separate package so it can be used outside of go-ethereum. * common/fdlimit: Remove FdLimit from functions signature * common/fdlimit: Rename fdlimit functions
| * all: update generated code (#15808)Felix Lange2018-01-082-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core/types, core/vm, eth, tests: regenerate gencodec files * Makefile: update devtools target Install protoc-gen-go and print reminders about npm, solc and protoc. Also switch to github.com/kevinburke/go-bindata because it's more maintained. * contracts/ens: update contracts and regenerate with solidity v0.4.19 The newer upstream version of the FIFSRegistrar contract doesn't set the resolver anymore. The resolver is now deployed separately. * contracts/release: regenerate with solidity v0.4.19 * contracts/chequebook: fix fallback and regenerate with solidity v0.4.19 The contract didn't have a fallback function, payments would be rejected when compiled with newer solidity. References to 'mortal' and 'owned' use the local file system so we can compile without network access. * p2p/discv5: regenerate with recent stringer * cmd/faucet: regenerate * dashboard: regenerate * eth/tracers: regenerate * internal/jsre/deps: regenerate * dashboard: avoid sed -i because it's not portable * accounts/usbwallet/internal/trezor: fix go generate warnings
| * cmd/utils: handle git commit a bit safer for user specified strings (#15790)Evangelos Pappas2018-01-041-1/+1
| | | | | | | | | | | | * cmd/utils/flags.go: Applying a String len guard for the gitCommit param of the NewApp() * cmd/utils: remove redundant clause in if condition
| * all: switch gas limits from big.Int to uint64Péter Szilágyi2018-01-033-22/+22
| |
| * various: remove redundant parentheses (#15793)Furkan KAMACI2018-01-031-1/+1
| |
| * cmd/geth: remove trailing newline in license command (#15782)Péter Szilágyi2018-01-021-2/+1
| |
| * cmd/puppeth: fix faucet 502 error due to non-exposed HTTP portPéter Szilágyi2017-12-211-0/+2
| |
| * Merge pull request #15729 from karalabe/faucet-fix-twitterPéter Szilágyi2017-12-211-6/+1
| |\ | | | | | | cmd/faucet: fix removal of Twitter zlib compression
| | * cmd/faucet: fix removal of Twitter zlib compressionPéter Szilágyi2017-12-211-6/+1
| | |
| * | cmd/utils: add check on fd hard limit, skip test if below target (#15684)lash2017-12-214-1/+37
| |/ | | | | | | | | | | | | | | | | | | * cmd/utils: Add check on hard limit, skip test if below target * cmd/utils: Cross platform compatible fd limit test * cmd/utils: Remove syscall.Rlimit in test * cmd/utils: comment fd utility method
| * cmd, core, eth/tracers: support fancier js tracing (#15516)Péter Szilágyi2017-12-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd, core, eth/tracers: support fancier js tracing * eth, internal/web3ext: rework trace API, concurrency, chain tracing * eth/tracers: add three more JavaScript tracers * eth/tracers, vendor: swap ottovm to duktape for tracing * core, eth, internal: finalize call tracer and needed extras * eth, tests: prestate tracer, call test suite, rewinding * vendor: fix windows builds for tracer js engine * vendor: temporary duktape fix * eth/tracers: fix up 4byte and evmdis tracer * vendor: pull in latest duktape with my upstream fixes * eth: fix some review comments * eth: rename rewind to reexec to make it more obvious * core/vm: terminate tracing using defers
| * cmd/ethkey: new command line tool for keys (#15438)Steven Roose2017-12-216-0/+533
| | | | | | | | | | | | | | | | | | | | ethkey is a new tool that serves as a command line interface to the basic key management functionalities of geth. It currently supports: - generating keyfiles - inspecting keyfiles (print public and private key) - signing messages - verifying signed messages
| * cmd/geth: add support for geth --rinkeby attachSorin Neacsu2017-12-161-2/+6
| |
* | cmd/swarm: return error early in buildConfig functionJanos Guljas2017-12-201-0/+3
| |
* | cmd/swarm: add validation for EnsAPIs configuration parameterJanos Guljas2017-12-192-0/+130
| |
* | cmd/swarm, swarm: disable ENS API by defaultJanos Guljas2017-12-181-18/+5
| | | | | | | | | | | | Specifying ENS API CLI flag, env variable or configuration field is required for ENS resolving. Backward compatibility is preserved with --ens-api="" CLI flag value.
* | cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2017-12-144-6/+7
|\| | | | | | | Fix a conflict in cmd/swarm envVarsOverride function.
| * all: use gometalinter.v2, fix new gosimple issues (#15650)Zach2017-12-134-6/+7
| |
* | swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2017-12-1334-788/+2855
|\| | | | | | | | | | | | | | | | | | | | | | | Merge with changes that implement config file PR #15548. Field *EnsApi string* in swarm/api.Config is replaced with *EnsAPIs []string*. A new field *EnsDisabled bool* is added to swarm/api.Config for easy way to disable ENS resolving with config file. Signature of function swarm.NewSwarm is changed and simplified.
| * cmd/swarm: add config file (#15548)holisticode2017-12-124-90/+879
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a TOML configuration option to swarm. It reuses the TOML configuration structure used in geth with swarm customized items. The commit: * Adds a "dumpconfig" command to the swarm executable which allows printing the (default) configuration to stdout, which then can be redirected to a file in order to customize it. * Adds a "--config <file>" option to the swarm executable which will allow to load a configuration file in TOML format from the specified location in order to initialize the Swarm node The override priorities are like follows: environment variables override command line arguments override config file override default config.
| * cmd/utils, eth: init etherbase from within eth (#15528)Péter Szilágyi2017-12-101-9/+6
| |
| * cmd/geth: add support for geth attach --testnet (#15597)Sorin Neacsu2017-12-051-2/+10
| |
| * buld: enable goconst linter (#15566)Zach2017-11-301-3/+5
| |
| * cmd/geth: fix geth attach --datadir=... (#15517)Maximilian Meister2017-11-281-1/+6
| |
| * cmd/utils: bootstrap nodes in config file were not respectedMaximilian Meister2017-11-261-0/+2
| | | | | | | | Signed-off-by: Maximilian Meister <mmeister@suse.de>
| * cmd/utils: disallow --lightserv in light mode (#15514)Paul Litvak2017-11-241-4/+32
| | | | | | | | | | | | | | | | * Disallow --lightserv in light mode * Reformatted * cmd/utils: reduce nesting levels a bit
| * cmd, consensus, eth: split ethash related config to it own (#15520)gary rong2017-11-241-15/+19
| | | | | | | | | | | | | | | | | | | | * 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
| * cmd/puppeth: fix typo in comment (#15539)Zoe Nolan2017-11-241-2/+2
| | | | | | | | | | | | * cmd: fix typo in comment * cmd/puppeth: tiny comment fixup
| * cmd/puppeth: fix typos and review suggestionsPéter Szilágyi2017-11-2313-25/+19
| |
| * cmd/puppeth: fix unconvert lintersPéter Szilágyi2017-11-212-2/+2
| |
| * cmd/puppeth: switch over to upstream alltools docker imagePéter Szilágyi2017-11-211-1/+1
| |
| * cmd/faucet, cmd/puppeth: drop GitHub support at official requestPéter Szilágyi2017-11-215-68/+8
| |
| * cmd/puppeth: simplifications and pre-built docker imagesPéter Szilágyi2017-11-2113-164/+115
| |
| * cmd/puppeth: store genesis locally to persist restartsPéter Szilágyi2017-11-219-49/+64
| |
| * cmd/puppeth: skip genesis custom extra-dataPéter Szilágyi2017-11-212-12/+1
| |
| * cmd/puppeth: fix dashboard iframes, extend with new servicesPéter Szilágyi2017-11-215-51/+441
| |
| * cmd/faucet: protocol relative websockets, noauth modePéter Szilágyi2017-11-215-44/+87
| |
| * cmd/puppeth: add support for deploying web walletsPéter Szilágyi2017-11-215-1/+366
| |
| * cmd/puppeth: etherchain light block explorer for PoW netsPéter Szilágyi2017-11-218-11/+565
| |
| * cmd/puppeth: mount ethash dir from the host to cache DAGsPéter Szilágyi2017-11-212-13/+33
| |
| * cmd/puppeth: support deploying services with forced rebuildsPéter Szilágyi2017-11-2110-17/+52
| |
| * cmd/puppeth: concurrent server dials and health checksPéter Szilágyi2017-11-213-93/+142
| |
| * cmd/puppeth: reorganize stats reports to make it readablePéter Szilágyi2017-11-2113-136/+205
| |
| * cmd/geth: make geth account new faster with many keys (#15529)Martin Holst Swende2017-11-211-4/+17
| |
* | swarm: deprecate --ens-addr CLI flag with a warning messageJanos Guljas2017-12-051-6/+10
| |
* | swarm: check if "--ens-api ''" is specified in order to disable ENSJanos Guljas2017-12-051-0/+4
| |
* | swarm: add comment for parseFlagEnsAPI and fix a mistake in comment in codeJanos Guljas2017-12-051-1/+3
| |
* | swarm: multiple --ens-api flagsJanos Guljas2017-12-042-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow multiple --ens-api flags to be specified with value format [tld:][contract-addr@]url. Backward compatibility with only one --ens-api flag and --ens-addr flag is preserved and conflict cases are handled: - multiple --ens-api with --ens-addr returns an error - single --ens-api with contract address and --ens-addr with different contract address returns an error Previously implemented --ens-endpoint is removed. Its functionality is replaced with multiple --ens-api flags.
* | swarm: add CLI --ens-endpoint flag (#14386)Janos Guljas2017-12-012-54/+190
|/ | | | | Implement a CLI flag that can be repeated to allow multiple ENS resolvers for different TLDs.
* cmd, dashboard: dashboard using React, Material-UI, Recharts (#15393)Kurkó Mihály2017-11-154-7/+74
| | | | | | | | | | | | * 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
* puppeth: handle encrypted ssh keys (closes #15442) (#15443)Bo2017-11-132-2/+13
| | | | | | * cmd/puppeth: handle encrypted ssh keys * cmd/puppeth: fix unconvert linter error
* build: enable unconvert linter (#15456)ferhat elmas2017-11-114-6/+4
| | | | | | | | | * build: enable unconvert linter - fixes #15453 - update code base for failing cases * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
* all: gofmt -w -s (#15419)ferhat elmas2017-11-081-2/+2
|
* cmd/rlpdump: allow hex input to have leading '0x'Jim McDonald2017-10-271-1/+1
|
* cmd, consensus, core, miner: instatx clique for --dev (#15323)Péter Szilágyi2017-10-245-24/+50
| | | | | | | | * 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/evm: print stateroot in evm utility (#15341)Martin Holst Swende2017-10-201-1/+7
|
* cmd/faucet: dynamic funding progress and visual feedbackPéter Szilágyi2017-10-173-7/+83
|
* cmd/faucet: proper error handling all overPéter Szilágyi2017-10-173-36/+135
|
* cmd/faucet: support twitter, google+ and facebook auth tooPéter Szilágyi2017-10-163-67/+215
|
* Merge pull request #15269 from karalabe/puppeth-dumb-ip-filteringPéter Szilágyi2017-10-122-11/+33
|\ | | | | cmd/puppeth: use dumb textual IP filtering
| * cmd/puppeth: use dumb textual IP filteringPéter Szilágyi2017-10-102-11/+33
| |
* | cmd, eth: separate out FakePeer for future reusePéter Szilágyi2017-10-102-152/+32
| |
* | cmd: Added support for copying data to another DB instanceNick Johnson2017-10-102-1/+196
|/
* cmd/puppeth: support managing fork block in the chain configPéter Szilágyi2017-10-044-11/+77
|
* cmd/puppeth, params: enable Byzantium on all networksPéter Szilágyi2017-10-021-0/+1
|
* cmd/geth: fix --password typoayeowch2017-09-271-1/+1
|
* p2p: add network simulation framework (#14982)Lewis Marshall2017-09-251-0/+414
| | | | | | This commit introduces a network simulation framework which can be used to run simulated networks of devp2p nodes. The intention is to use this for testing protocols, performing benchmarks and visualising emergent network behaviour.
* core/vm: standard vm traces (#15035)cdetrio2017-09-221-1/+1
|
* cmd/puppeth: reserve "yournode" as a non-allowed ethstats userPéter Szilágyi2017-09-121-1/+1
|
* 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
* eth: use maxpeers from p2p layer instead of extra configPéter Szilágyi2017-09-061-4/+0
|
* cmd/puppeth: switch node containers to main onesPéter Szilágyi2017-09-051-4/+4
|
* cmd/evm: adds ability to run individual state test file (#14998)Martin Holst Swende2017-09-052-0/+120
| | | | | | | | * cmd/evm: adds ability to run individual state test file * cmd/evm: Fix statetest runner to be more json friendly * cmd/evm, tests: minor polishes, dump state on fail
* cmd/geth: fix --nousb typo (#15040)Oli Bye2017-08-251-1/+1
|
* cmd/evm, core/vm, internal/ethapi: Show error when exiting (#14985)Martin Holst Swende2017-08-232-6/+10
| | | | | | * cmd/evm, core/vm, internal/ethapi: Add 'err' to tracer interface CaptureEnd * cmd/evm: fix nullpointer when there is no error
* core, light: send chain events using event.Feed (#14865)Miya Chen2017-08-181-2/+1
|
* cmd/puppeth: support blacklisting malicious IPs on ethstatsPéter Szilágyi2017-08-183-7/+60
|
* cmd/evm: add --receiver, support code from stdin (#14873)Martin Holst Swende2017-08-152-27/+39
|
* 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-112-0/+4
|/
* cmd: fix megacheck warnings (#14912)Egon Elbre2017-08-074-19/+16
| | | | | | * cmd: fix megacheck warnings * cmd: revert time.Until changes, keep readFloat
* cmd/puppeth: remove wrapping loop in single readsPéter Szilágyi2017-08-041-18/+14
|
* cmd: add makecache cmd, use caches during import cmdPéter Szilágyi2017-08-043-27/+42
|
* swarm/api: make api.NewManifest synchronous (#14880)Lewis Marshall2017-07-312-2/+1
| | | | | Previously, NewManifest was asynchronous so subsequent code which tried to use the returned manifest could error as the manifest was not yet persisted.
* cmd/swarm: support exporting, importing chunk db (#14868)Lewis Marshall2017-07-313-41/+172
|
* 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-283-0/+20
| | | | | | | | | | | | | | | | | | | | * 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 #14824 from karalabe/faucet-ignore-whitespacePéter Szilágyi2017-07-181-2/+3
|\ \ | | | | | | cmd/faucet: ignore whitespace in gist content
| * | cmd/faucet: ignore whitespace in gist contentPéter Szilágyi2017-07-181-2/+3
| |/
* / cmd/puppeth: limit cotnainers to 10MB logsPéter Szilágyi2017-07-185-0/+25
|/
* Merge pull request #14737 from holiman/txpool_localaccountsPéter Szilágyi2017-07-103-0/+9
|\ | | | | Txpool localaccounts
| * cmd, core: add --txpool.nolocals to disable local price exemptionsPéter Szilágyi2017-07-053-0/+9
| |
* | params: remove redundant consts, disable metro on AllProtocolChangesPéter Szilágyi2017-07-042-3/+3
|/
* cmd/swarm: Exit if --ethapi is setLewis Marshall2017-06-302-15/+14
| | | | | | | | The previous attempt to use --ethapi as a fallback if --ens-api is not set does not work because --ens-api has a default value, and also setting --ens-api to "" is the suggested way to disable ENS lookups. Signed-off-by: Lewis Marshall <lewis@lmars.net>
* Merge pull request #14646 from ethersphere/swarm-ens-apiPéter Szilágyi2017-06-301-8/+97
|\ | | | | cmd/swarm: Support using Mainnet for resolving ENS names
| * cmd/swarm: Support using Mainnet for resolving ENS namesLewis Marshall2017-06-261-8/+97
| | | | | | | | Signed-off-by: Lewis Marshall <lewis@lmars.net>
* | core/state: access trie through Database interface, track errors (#14589)Felix Lange2017-06-272-4/+4
| | | | | | | | | | | | | | | | | | 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 #14690 from karalabe/faucet-key-reusePéter Szilágyi2017-06-261-2/+1
|\ \ | |/ |/| cmd/puppeth: fix key reuse during faucet deploys
| * cmd/puppeth: fix key reuse during faucet deploysPéter Szilágyi2017-06-231-2/+1
| |
* | Merge pull request #14540 from bas-vk/whisper-apiPéter Szilágyi2017-06-266-24/+79
|\ \ | |/ |/| 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-214-15/+33
| |
| * whisperv5: integrate whisper and add whisper RPC simulatorBas van Kervel2017-06-155-24/+61
| |
* | cmd/swarm: disable TestCLISwarmUp because it's flakyFelix Lange2017-06-231-0/+2
| |
* | 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-217-293/+424
| |
* | cmd/evm, core/vm: add --nomemory, --nostack to evm (#14617)Martin Holst Swende2017-06-213-16/+37
| |
* | cmd/geth: fixed a minor typo in the commentsnecaremus2017-06-161-1/+1
|/
* cmd/evm: add --prestate, --sender, --json flags for fuzzing (#14476)Martin Holst Swende2017-06-073-16/+146
|
* cmd/swarm: fix error handling in 'swarm up' (#14557)Lewis Marshall2017-06-061-13/+22
| | | | | | The error returned by client.Upload was previously being ignored due to becoming out of scope outside the if statement. This has been fixed by instead defining a function which returns the hash and error (rather than trying to set the hash in each branch of the if statement).
* cmd/puppeth: fix improper key validation for remotesPéter Szilágyi2017-05-302-3/+2
|
* cmd, core, eth: configurable txpool parametersPéter Szilágyi2017-05-293-29/+110
|
* cmd/geth: reorganise help section for new cli flag handlingBas van Kervel2017-05-253-12/+70
|
* Merge pull request #14336 from obscuren/metropolis-preparationFelix Lange2017-05-252-0/+44
|\ | | | | consensus, core/*, params: metropolis preparation refactor
| * cmd/evm: added mem/cpu profilingJeffrey Wilcke2017-05-232-0/+44
| |
* | cmd/faucet: fix a few typosPéter Szilágyi2017-05-241-1/+1
| |
* | cmd/geth: reintroduce wallet import subcommandBas van Kervel2017-05-231-15/+30
| |
* | cmd/swarm: Add --httpaddr flag (#14475)Lewis Marshall2017-05-221-0/+8
|/ | | | | Fixes #14474. Signed-off-by: Lewis Marshall <lewis@lmars.net>
* cmd, core, eth, miner: remove txpool gas price limits (#14442)Péter Szilágyi2017-05-171-1/+1
|
* cmd/puppeth: v4/v5 boot separation, signer gas configs (#14453)Péter Szilágyi2017-05-134-8/+73
|
* cmd, node: support different bootnodes, fix default light portPéter Szilágyi2017-05-103-5/+28
|
* Merge pull request #14418 from karalabe/rinkeby-flagPéter Szilágyi2017-05-043-15/+38
|\ | | | | cmd, core, params: add --rinkeby flag for fast connectivity
| * cmd, core, params: add --rinkeby flag for fast connectivityPéter Szilágyi2017-05-043-15/+38
| |
* | Merge pull request #14413 from bas-vk/cli-chain-mngtPéter Szilágyi2017-05-048-94/+129
|\ \ | | | | | | Migrate remaining flags/command to new style
| * | 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-033-67/+79
| | |
| * | cmd/geth: reorganise chain commands/flagsBas van Kervel2017-05-031-20/+41
| |/
* | cmd/faucet: fix period to days conversionPéter Szilágyi2017-05-041-4/+5
| |
* | cmd/faucet, cmd/puppeth: support multi-tiered faucetPéter Szilágyi2017-05-045-30/+92
|/
* cmd/geth, cmd/utils: init/removedb on light/full dbs simultaneouslyPéter Szilágyi2017-05-032-42/+45
|
* cmd/puppeth, vendor: update ssh, manage server keys (#14398)Péter Szilágyi2017-05-035-19/+75
|
* cmd/geth: reorganise account/wallet command/flagsBas van Kervel2017-04-283-70/+95
|
* whisper: switching to v5 + minor refactoring (#14387)gluk2562017-04-282-4/+5
|
* whisper: message format refactoring (#14335)gluk2562017-04-271-14/+17
| | | | | | | | | | | | | | * whisper: salt removed from AES encryption * whisper: padding format updated * whisper: padding test added * whisper: padding refactored, tests fixed * whisper: padding test updated * whisper: wnode bugfix * whisper: send/receive protocol updated * whisper: minor update * whisper: bugfix in test * whisper: updated parameter names and comments * whisper: functions renamed * whisper: minor refactoring
* cmd, eth, les, mobile: make networkid uint64 everywherePéter Szilágyi2017-04-253-5/+5
|
* cmd/bootnode: stop after generating/writing nodekeyBas van Kervel2017-04-241-0/+1
|
* Merge pull request #14339 from karalabe/faucet-block-banned-usersPéter Szilágyi2017-04-205-29/+109
|\ | | | | cmd/faucet: further user validations and bot protection
| * cmd: integrate invisible recaptcha into puppethPéter Szilágyi2017-04-174-19/+52
| |
| * cmd/faucet: fix websocket double close/reopenPéter Szilágyi2017-04-172-2/+2
| |
| * cmd/faucet: add optional recaptcha validation supportPéter Szilágyi2017-04-173-13/+49
| |
| * cmd/faucet: double check user against the GH websitePéter Szilágyi2017-04-161-1/+12
| |
* | cmd, node: add --nosub and node.Config.NoUSB to disable hw walletsPéter Szilágyi2017-04-203-0/+9
|/
* Merge remote-tracking branch 'fjl/license-update-1.6'Péter Szilágyi2017-04-145-12/+12
|\
| * all: update license informationFelix Lange2017-04-145-12/+12
| |
* | cmd/geth: update flag groups in the geth command usagePéter Szilágyi2017-04-132-5/+14
|/
* swarm/api: better name resolver handling (#3754)holisticode2017-04-131-0/+2
| | | Fixes #3608
* cmd/utils, node: remove unused solc references and improve RPC config (#14324)bas-vk2017-04-133-23/+7
| | | | | 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.
* Merge pull request #14320 from karalabe/rlpdump-single-flagPéter Szilágyi2017-04-121-0/+4
|\ | | | | cmd/rlpdump: support dumping only the first entity
| * cmd/rlpdump: support dumping only the first entityPéter Szilágyi2017-04-121-0/+4
| |
* | cmd/geth: add --config file flag (#13875)Felix Lange2017-04-1212-390/+613
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | cmd/puppeth: format dashboard html, update syncmode flagsPéter Szilágyi2017-04-121-249/+249
|/
* cmd/swarm: add --password (#3748)Victor Farazdagi2017-04-121-6/+18
|
* cmd/puppeth: your Ethereum private network manager (#13854)Péter Szilágyi2017-04-1121-0/+4011
|
* eth: accept transactions when starting CPU mining (#13882)Péter Szilágyi2017-04-101-1/+1
|
* whisper: big refactoring (#13852)gluk2562017-04-101-38/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: GetMessages fixed; size restriction updated * whisper: made PoW and MaxMsgSize customizable * whisper: test added * whisper: sym key management changed * whisper: identity management refactored * whisper: API refactoring (Post and Filter) * whisper: big refactoring complete * whisper: spelling fix * whisper: variable topic size allowed for a filter * whisper: final update * whisper: formatting * whisper: file exchange introduced in wnode * whisper: bugfix * whisper: API updated + new tests * whisper: statistics updated * whisper: wnode server updated * whisper: allowed filtering for variable topic size * whisper: tests added * whisper: resolving merge conflicts * whisper: refactoring (documenting mostly) * whsiper: tests fixed * whisper: down cased error messages * whisper: documenting the API functions * whisper: logging fixed * whisper: fixed wnode parameters * whisper: logs fixed (typos)
* 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
| |
* | swarm/api: refactor and improve HTTP API (#3773)Lewis Marshall2017-04-073-71/+77
| | | | | | | | | | | | | | This PR deprecates the file related RPC calls in favour of an improved HTTP API. The main aim is to expose a simple to use API which can be consumed by thin clients (e.g. curl and HTML forms) without the need for complex logic (e.g. manipulating prefix trie manifests).
* | cmd, les, eth, eth/gasprice: using new gas price oracle (#13853)Felföldi Zsolt2017-04-063-45/+13
| | | | | | | | | | | | | | | | | | | | | | | | * 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/swarm: allow uploading from stdin (#3744)Louis Holbrook2017-04-062-6/+39
|/ | | | | | - intended to be a swarm alternative to termbin.com - added --stdin flag to swarm executable. if set, swarm will read data from stdin and postRaw it.
* cmd/geth, node: surface geth architecture into version (#13866)Péter Szilágyi2017-04-062-3/+6
|
* cmd/swarm, swarm/api/client: add HTTP API client and 'swarm ls' command (#3742)Lewis Marshall2017-04-054-182/+99
| | | | | | | | This adds a swarm ls command which lists files and directories stored in a manifest. Rather than listing all files, it uses "directory prefixes" in case there are a lot of files in a manifest but you just want to traverse it. This also includes some refactoring to the tests and the introduction of a swarm/api/client package to make things easier to test.
* core, consensus: pluggable consensus engines (#3817)Péter Szilágyi2017-04-054-9/+17
| | | | | 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.
* Merge pull request #3794 from fjl/core-genesis-refactorPéter Szilágyi2017-03-232-77/+28
|\ | | | | core: refactor genesis handling
| * core: refactor genesis handlingFelix Lange2017-03-232-77/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | swarm/api: support mounting manifests via FUSE (#3690)Zahoor Mohamed2017-03-231-1/+1
|/
* all: finish integrating Go ethash, delete C++ vendorPéter Szilágyi2017-03-094-11/+12
|
* cmd, eth, les, node, pow: disk caching and progress reportsPéter Szilágyi2017-03-093-1/+75
|
* all: swap out the C++ ethash to the pure Go one (mining todo)Péter Szilágyi2017-03-091-4/+3
|
* * cmd/geth: add --nocompaction flag + multiple import filesMartin Holst Swende2017-03-083-6/+27
| | | | | | | | | | * 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-029-60/+56
| | | | | | | | * 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
* Merge pull request #3728 from obscuren/format-tracePéter Szilágyi2017-03-022-43/+44
|\ | | | | core/evm, core/vm: improved evm trace output
| * cmd/evm: removed -sysstat and moved content to -debug flagJeffrey Wilcke2017-03-012-17/+21
| | | | | | | | | | | | Added the ability to directly compile and run ethereum assembly using the evm utility: `evm run <file>`. This is equivalant to `evm compile <file> | evm run`.
| * core/evm, core/vm: improved evm trace outputJeffrey Wilcke2017-03-011-27/+24
| | | | | | | | | | | | | | | | * Improved the standard evm tracer output and renamed it to WriteTrace which now takes an io.Writer to write the logs to. * Added WriteLogs which writes logs to the given writer in a readable format. * evm utility now also prints logs generated during the execution.
* | cmd/disasm, cmd/evm: integrate disasm tool into evm tool. (#3729)Valentin Wüstholz2017-03-012-12/+24
|/
* cmd/evm, core/asm: add EVM assembler (#3686)Jeffrey Wilcke2017-03-014-115/+242
| | | | | The evm compile command implements a simple assembly language that compiles to EVM bytecode.
* cmd/utils, core, params: fork all teh things for dev mode (#3697)Jeffrey Wilcke2017-03-011-0/+2
|
* all: disable log message colors outside of gethFelix Lange2017-02-273-3/+3
| | | | Also tweak behaviour so colors are only enabled when stderr is a terminal.
* core, core/vm, cmd/disasm: unify procedures for disassembling evm code (#3530)Valentin Wüstholz2017-02-271-23/+5
|
* common: move big integer math to common/math (#3699)Felix Lange2017-02-274-62/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/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/ethtest: drop the manual test tool in favor of hivePéter Szilágyi2017-02-231-224/+0
| | | | | | All the state and block tests are ran as part of our CU builds internally, as well as have been added to hive black-box tests. As such, there is no reason for maintaining an extra standalone tool.
* cmd/gethrpctest: ethereum/rpc-tests is deprecatedPéter Szilágyi2017-02-231-161/+0
| | | | | | | | | Only ethereum/rpc-tests used this command, which hasn't been maintained for over a year now, a lot of tests failing. What's left of it was moved underneath hive, which can run the entire test against a black-box geth without special commands. Also a new RPC test suite is being added which is also based on black box tests, not needing special commands any more.
* cmd, whisper/mailserver: revert to utils.FatalfPéter Szilágyi2017-02-2311-133/+113
|
* accounts, cmd: port packages over to the new logging systemPéter Szilágyi2017-02-235-41/+38
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-2316-242/+247
|
* Whisper API fixed (#3687)gluk2562017-02-231-33/+25
| | | | | | | | | | | | | | | | | | | | | | * whisper: wnode updated for tests with geth * whisper: updated processing of incoming messages * whisper: symmetric encryption updated * whisper: filter id type changed to enhance security * whisper: allow filter without topic for asymmetric encryption * whisper: POW updated * whisper: logging updated * whisper: spellchecker update * whisper: error handling changed * whisper: JSON field names fixed
* core, core/state, core/vm: remove exported account getters (#3618)Jeffrey Wilcke2017-02-231-7/+11
| | | | Removed exported statedb object accessors, reducing the chance for nasty bugs to creep in. It's also ugly and unnecessary to have these methods.
* cmd/geth: added 'geth bug' command (#3684)Jeffrey Wilcke2017-02-203-0/+155
| | | | | | | | | | | | | * 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
* Merge pull request #3674 from obscuren/gaz64Péter Szilágyi2017-02-152-3/+3
|\ | | | | params: core, core/vm, miner: 64bit gas instructions
| * params: core, core/vm, miner: 64bit gas instructionsJeffrey Wilcke2017-02-142-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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