aboutsummaryrefslogtreecommitdiffstats
path: root/node
Commit message (Collapse)AuthorAgeFilesLines
* all: get rid of error when creating memory database (#16716)gary rong2018-05-092-2/+2
| | | | | | | | * all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition
* all: fix various typos (#16533)Wuxiang2018-04-191-1/+1
| | | | | | | | * fix typo * fix typo * fix typo
* rpc: clean up IPC handler (#16524)Felix Lange2018-04-181-12/+2
| | | | This avoids logging accept errors on shutdown and removes a bit of duplication. It also fixes some goimports lint warnings.
* cmd/clef, signer: initial poc of the standalone signer (#16154)Martin Holst Swende2018-04-161-80/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * signer: introduce external signer command * cmd/signer, rpc: Implement new signer. Add info about remote user to Context * signer: refactored request/response, made use of urfave.cli * cmd/signer: Use common flags * cmd/signer: methods to validate calldata against abi * cmd/signer: work on abi parser * signer: add mutex around UI * cmd/signer: add json 4byte directory, remove passwords from api * cmd/signer: minor changes * cmd/signer: Use ErrRequestDenied, enable lightkdf * cmd/signer: implement tests * cmd/signer: made possible for UI to modify tx parameters * cmd/signer: refactors, removed channels in ui comms, added UI-api via stdin/out * cmd/signer: Made lowercase json-definitions, added UI-signer test functionality * cmd/signer: update documentation * cmd/signer: fix bugs, improve abi detection, abi argument display * cmd/signer: minor change in json format * cmd/signer: rework json communication * cmd/signer: implement mixcase addresses in API, fix json id bug * cmd/signer: rename fromaccount, update pythonpoc with new json encoding format * cmd/signer: make use of new abi interface * signer: documentation * signer/main: remove redundant option * signer: implement audit logging * signer: create package 'signer', minor changes * common: add 0x-prefix to mixcaseaddress in json marshalling + validation * signer, rules, storage: implement rules + ephemeral storage for signer rules * signer: implement OnApprovedTx, change signing response (API BREAKAGE) * signer: refactoring + documentation * signer/rules: implement dispatching to next handler * signer: docs * signer/rules: hide json-conversion from users, ensure context is cleaned * signer: docs * signer: implement validation rules, change signature of call_info * signer: fix log flaw with string pointer * signer: implement custom 4byte databsae that saves submitted signatures * signer/storage: implement aes-gcm-backed credential storage * accounts: implement json unmarshalling of url * signer: fix listresponse, fix gas->uint64 * node: make http/ipc start methods public * signer: add ipc capability+review concerns * accounts: correct docstring * signer: address review concerns * rpc: go fmt -s * signer: review concerns+ baptize Clef * signer,node: move Start-functions to separate file * signer: formatting
* utils: fix #16138 by checking if vhosts flag is set (#16141)Martin Holst Swende2018-03-051-5/+6
| | | | | | | | * utils: fix #16138 by checking if vhosts flag is set * utils,node: fix defaults for rpcvhosts * node,utils: address review concerns
* node: fill StandardCounters as part of debugapi/metrics (#16054)Anton Evangelatov2018-02-271-0/+10
|
* metrics: pull library and introduce ResettingTimer and InfluxDB reporter ↵Anton Evangelatov2018-02-231-1/+1
| | | | | | | | | | | | | | | | | | | | (#15910) * go-metrics: fork library and introduce ResettingTimer and InfluxDB reporter. * vendor: change nonsense/go-metrics to ethersphere/go-metrics * go-metrics: add tests. move ResettingTimer logic from reporter to type. * all, metrics: pull in metrics package in go-ethereum * metrics/test: make sure metrics are enabled for tests * metrics: apply gosimple rules * metrics/exp, internal/debug: init expvar endpoint when starting pprof server * internal/debug: tiny comment formatting fix
* node: fix typo hvosts -> vhosts (#16096)GuiltyMorishita2018-02-151-1/+1
|
* node, rpc: fix linter issuesMartin Holst Swende2018-02-121-1/+1
|
* rpc: dns rebind protection (#15962)Martin Holst Swende2018-02-123-18/+34
| | | | | | | | | | | | | | | | * 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, p2p/discv5: implement UDP port sharing (#15200)Felföldi Zsolt2018-01-221-4/+3
| | | | | | | | | | | | | | | 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.
* p2p/simulations: various stability fixes (#15198)Lewis Marshall2017-12-012-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | p2p/simulations: introduce dialBan - Refactor simulations/network connection getters to support avoiding simultaneous dials between two peers If two peers dial simultaneously, the connection will be dropped to help avoid that, we essentially lock the connection object with a timestamp which serves as a ban on dialing for a period of time (dialBanTimeout). - The connection getter InitConn can be wrapped and passed to the nodes via adapters.NodeConfig#Reachable field and then used by the respective services when they initiate connections. This massively stablise the emerging connectivity when running with hundreds of nodes bootstrapping a network. p2p: add Inbound public method to p2p.Peer p2p/simulations: Add server id to logs to support debugging in-memory network simulations when multiple peers are logging. p2p: SetupConn now returns error. The dialer checks the error and only calls resolve if the actual TCP dial fails.
* cmd/geth: make geth account new faster with many keys (#15529)Martin Holst Swende2017-11-211-14/+22
|
* p2p: add network simulation framework (#14982)Lewis Marshall2017-09-253-5/+63
| | | | | | 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.
* node: fix instance dir locking and improve error messageFelix Lange2017-08-182-24/+30
| | | | | | The lock file was ineffective because opening leveldb storage in read-only mode doesn't really take the lock. Fix it by including a dedicated flock library (which is actually split out of goleveldb).
* accounts, console, internal: support trezor hardware walletPéter Szilágyi2017-08-091-0/+7
|
* node: fix megacheck warningsEgon Elbre2017-08-072-4/+2
|
* node: fix doc typoAgustin Armellini Fischer2017-08-061-1/+1
|
* node: Rename TrusterNodes (#14827)Chase Wright2017-07-182-3/+3
| | | | | | * node: Rename TrusterNodes * node: Rename TrusterNodes
* node: don't return non-nil database on errorFelix Lange2017-06-231-1/+5
|
* cmd, node: support different bootnodes, fix default light portPéter Szilágyi2017-05-101-3/+4
|
* node: fixes deadlock on Wait()Victor Farazdagi2017-04-251-0/+1
|
* cmd, node: add --nosub and node.Config.NoUSB to disable hw walletsPéter Szilágyi2017-04-201-4/+9
|
* cmd/utils, node: remove unused solc references and improve RPC config (#14324)bas-vk2017-04-133-10/+20
| | | | | 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-126-115/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/geth, node: surface geth architecture into version (#13866)Péter Szilágyi2017-04-062-2/+2
|
* cmd, eth, les, node, pow: disk caching and progress reportsPéter Szilágyi2017-03-091-0/+7
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-232-23/+22
|
* accounts, cmd, internal, node: implement HD wallet self-derivationPéter Szilágyi2017-02-131-18/+1
|
* accounts, cmd, internal, mobile, node: canonical account URLsPéter Szilágyi2017-02-131-3/+3
|
* accounts, cmd, eth, internal, miner, node: wallets and HD APIsPéter Szilágyi2017-02-131-5/+25
|
* accounts/usbwallet: initial support for Ledger walletsPéter Szilágyi2017-02-131-2/+12
|
* accounts, cmd, eth, internal, mobile, node: split account backendsPéter Szilágyi2017-02-131-6/+7
|
* all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-091-2/+1
| | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* build, node: fix go vet nitsFelix Lange2017-01-091-1/+1
|
* node: fix pointer dereference issue in StartRPC (#3532)Victor Farazdagi2017-01-081-1/+1
|
* all: fix spelling errorsPéter Szilágyi2017-01-071-1/+1
|
* logger, pow/dagger, pow/ezp: delete dead codeFelix Lange2017-01-071-1/+1
|
* all: fix issues reported by honnef.co/go/simple/cmd/gosimpleFelix Lange2017-01-072-3/+3
|
* all: gofmt -w -sFelix Lange2017-01-061-6/+6
|
* rpc: remove HexNumber, replace all uses with hexutil typesFelix Lange2016-12-201-7/+6
| | | | | This change couldn't be automated because HexNumber was used for numbers of all sizes.
* node: improve error handling for web3_sha3 RPC methodBas van Kervel2016-11-291-3/+3
|
* cmd/bootnode, cmd/geth, cmd/bzzd: add --netrestrictFelix Lange2016-11-232-0/+6
|
* node: Remove redundant filepath.Join in parsePersistentNodes (#3300)FrankWang2016-11-181-2/+1
|
* cmd, mobile, node, p2p: surface the discovery V5 bootnodesPéter Szilágyi2016-11-152-18/+27
|
* node: add InstanceDir methodFelix Lange2016-11-112-2/+15
|
* p2p/discv5: added new topic discovery packageZsolt Felfoldi2016-11-092-0/+6
|
* common, node: move datadir defaults into package nodeFelix Lange2016-09-163-5/+65
|
* node: ensure datadir can be co-inhabited by different instancesFelix Lange2016-09-167-129/+350
| | | | | This change ensures that nodes started with different Name but same DataDir values don't use the same nodekey and IPC socket.
* cmd/utils, node: create account manager in package nodeFelix Lange2016-08-173-11/+89
| | | | | | | | | | | | | | | 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.
* Merge pull request #2740 from Firescar96/removepeerFelix Lange2016-07-291-0/+16
|\ | | | | node, p2p, internal: Add ability to remove peers via admin interface
| * node, p2p, internal: Add ability to remove peers via admin interfaceFirescar962016-07-151-0/+16
| |
* | rpc: add new client, use it everywhereFelix Lange2016-07-232-20/+20
|/ | | | | | The new client implementation supports concurrent requests, subscriptions and replaces the various ad hoc RPC clients throughout go-ethereum.
* node, p2p: move network config out of ServerFelix Lange2016-05-181-5/+3
| | | | This silences a go vet message about copying p2p.Server in package node.
* node: start RPC/WS interface on localhost by defaultBas van Kervel2016-05-061-2/+10
|
* release, all: integrate the release service into gethPéter Szilágyi2016-05-022-3/+2
|
* common/versions, cmd/utils: add geth version contractGustav Simonsson2016-05-021-0/+1
|
* all: update license informationFelix Lange2016-04-151-1/+1
|
* rpc: various fixes/enhancementsBas van Kervel2016-04-124-13/+60
| | | | | | | | 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
* rpc: add pub/sub supportBas van Kervel2016-04-021-1/+1
|
* cmd, eth, ethdb, node: prioritise chaindata for resources, bump cachePéter Szilágyi2016-03-092-4/+4
|
* 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
* cmd, node, rpc: readd inproc RPC client, expose via nodePéter Szilágyi2016-02-093-9/+60
|
* cmd, common, node, rpc: rework naming convention to canonical onePéter Szilágyi2016-02-094-67/+67
|
* cmd, node, rpc: move websockets into node, break singletonPéter Szilágyi2016-02-053-46/+122
|
* cmd, common, node, rpc: move HTTP RPC into node, drop singletone aspectPéter Szilágyi2016-02-053-75/+190
|
* cmd, common, node, rpc: move IPC into the node itselfPéter Szilágyi2016-02-047-21/+269
|
* internal/debug: APIs for profiling and tracingFelix Lange2016-01-282-28/+3
| | | | | | 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-20/+106
|
* node, rpc/api: add debug_vmodule, move admin_verbosity to debug_verbosityFelix Lange2016-01-211-0/+5
|
* core, eth, node, rpc: port the admin and debug APIPéter Szilágyi2015-12-152-3/+271
|
* rpc: new RPC implementation with pub/sub supportBas van Kervel2015-12-144-0/+22
|
* cmd, eth, node, rpc, xeth: use single-instance servicesPéter Szilágyi2015-11-277-268/+300
|
* cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-275-56/+223
|
* cmd: drop blocktest command, create gethrpctest programPéter Szilágyi2015-11-271-33/+0
|
* node: customizable protocol and service stacksPéter Szilágyi2015-11-279-0/+1313
|
* Moved node to ethereumobscuren2014-03-224-448/+0
|
* Major re-organisation.obscuren2014-03-224-0/+448
The Ethereum node and Gui are now separated.