aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/server.go
Commit message (Collapse)AuthorAgeFilesLines
* rpc: clean up check for missing methods/subscriptions on handler (#17145)Wenbiao Zheng2018-07-241-8/+5
|
* all: switch out defunct set library to different one (#16873)Ralph Caraveo III2018-07-161-2/+2
| | | | | | * keystore, ethash, eth, miner, rpc, whisperv6: tech debt with now defunct set. * whisperv5: swap out gopkg.in/fatih/set.v0 with supported set
* rpc: support returning nil pointer big.Ints (null)Péter Szilágyi2018-06-111-1/+0
|
* rpc: fix a comment typo (#16929)xincaosu2018-06-111-1/+1
|
* rpc: golint error with context as last parameter (#16657)kiel barry2018-05-031-4/+4
| | | | | | * rpc/*: golint error with context as last parameter * Update json.go
* cmd/clef, signer: initial poc of the standalone signer (#16154)Martin Holst Swende2018-04-161-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* rpc: set rpcRequest.service as methodNotFoundError.service value (#16163)Janoš Guljaš2018-02-231-1/+1
| | | | | RPC Server readRequest method sets the serverRequest error service value as the rpcRequest.method and this change sets it to the right service value.
* rpc: fix megacheck warningsEgon Elbre2017-08-081-23/+6
|
* rpc: support subscriptions under custom namespacesBas van Kervel2017-04-251-9/+8
|
* cmd/geth: add --config file flag (#13875)Felix Lange2017-04-121-3/+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
* rpc: honour pending requests before tearing conn down (#3814)Péter Szilágyi2017-03-241-14/+28
|
* all: import "context" instead of "golang.org/x/net/context"Felix Lange2017-03-231-2/+1
| | | | | | | | | | There is no need to depend on the old context package now that the minimum Go version is 1.7. The move to "context" eliminates our weird vendoring setup. Some vendored code still uses golang.org/x/net/context and it is now vendored in the normal way. This change triggered new vet checks around context.WithTimeout which didn't fire with golang.org/x/net/context.
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-7/+7
|
* rpc: refactor subscriptions and filtersBas van Kervel2016-08-171-6/+6
|
* rpc: add new client, use it everywhereFelix Lange2016-07-231-1/+1
| | | | | | The new client implementation supports concurrent requests, subscriptions and replaces the various ad hoc RPC clients throughout go-ethereum.
* rpc: fix bad method error for batch requestsFelix Lange2016-07-231-1/+6
| | | | | | If a batch request contained an invalid method, the server would reply with a non-batch error response. Fix this by tracking an error for each batch element.
* rpc: remove grace period when shutting down the serverFelix Lange2016-07-231-10/+5
| | | | | | | | | The server delayed closing of connections for 3s when stopping. This was supposed to allow for slow handlers, but it didn't really work. When geth quits, it will just exit immediately after quitting the server. Removing the timer makes testing easier because all connections will be closed after Stop returns.
* README, core, rpc: fix various typosFabio Berger2016-06-221-3/+3
|
* cmd/geth, internal/web3ext, rpc: surface rpc module, fix shh, fix minerPéter Szilágyi2016-05-111-2/+3
|
* rpc: remove NotifierContextKeyFelix Lange2016-04-161-7/+4
| | | | | | | Context keys must have a unique type in order to prevent any unintented clashes. The code used int(1) as key. Fix it by implementing the pattern recommended by package context.
* rpc: add pub/sub supportBas van Kervel2016-04-021-121/+107
|
* rpc/http: improve request handlingBas van Kervel2016-03-231-14/+46
|
* cmd, common, node, rpc: rework naming convention to canonical onePéter Szilágyi2016-02-091-2/+2
|
* cmd, eth, rpc: fix some RPC issues with pending blocksPéter Szilágyi2016-02-031-2/+0
|
* rpc: migrated the RPC insterface to a new reflection based RPC layerBas van Kervel2016-01-261-0/+438
|
* Move HTTP transport to sub package of RPCTaylor Gerring2015-01-281-104/+0
|
* Move GetRequestReply to EthereumApiTaylor Gerring2015-01-211-1/+1
| | | | Off of jsonWrapper
* cleanupTaylor Gerring2015-01-131-1/+1
|
* Added license headersTaylor Gerring2015-01-131-0/+16
|
* begin conversion to rpc over httpTaylor Gerring2015-01-131-12/+33
| | | | | Per specification at https://github.com/ethereum/wiki/wiki/Generic-JSON-RPC
* ethpipe => xeth (eXtended ETHereum)obscuren2014-10-311-3/+3
|
* ethlog => loggerobscuren2014-10-311-6/+6
|
* Merge eth-go repository into go-ethereumFelix Lange2014-10-231-2/+2
| | | | mist, etheruem have been moved to cmd/
* WIP RPC interfaceobscuren2014-10-211-0/+67