aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api
Commit message (Collapse)AuthorAgeFilesLines
* core, eth, node, rpc: port the admin and debug APIPéter Szilágyi2015-12-151-6/+6
|
* rpc: new RPC implementation with pub/sub supportBas van Kervel2015-12-143-3/+12
|
* cmd, eth, node, rpc, xeth: use single-instance servicesPéter Szilágyi2015-11-272-2/+2
|
* cmd, common, core, eth, node, rpc, tests, whisper, xeth: use protocol stacksPéter Szilágyi2015-11-273-19/+32
|
* Merge pull request #1666 from obscuren/create-transactionJeffrey Wilcke2015-11-212-7/+61
|\ | | | | rpc/api, xeth: added signTransaction method
| * rpc/api, xeth: added signTransaction methodJeffrey Wilcke2015-11-182-7/+61
| | | | | | | | | | | | | | SignTransaction creates a transaction but does submit it to the network. SignTransaction returns a structure which includes the transaction object details as well as the RLP encoded transaction that could possibly be submitted by the SendRawTransaction method.
* | Merge pull request #1917 from obscuren/validator-interfaceJeffrey Wilcke2015-11-191-4/+24
|\ \ | | | | | | core, eth, rpc: split out block validator and state processor
| * | core, eth, rpc: split out block validator and state processorJeffrey Wilcke2015-11-181-4/+24
| |/ | | | | | | | | | | | | | | | | | | | | | | This removes the burden on a single object to take care of all validation and state processing. Now instead the validation is done by the `core.BlockValidator` (`types.Validator`) that takes care of both header and uncle validation through the `ValidateBlock` method and state validation through the `ValidateState` method. The state processing is done by a new object `core.StateProcessor` (`types.Processor`) and accepts a new state as input and uses that to process the given block's transactions (and uncles for rewords) to calculate the state root for the next block (P_n + 1).
* / rpc/api: fix #1986, newIdentity autocompletePéter Szilágyi2015-11-181-1/+1
|/
* rpc/api: fix #1972 api regression (nil eth panic) in attachPéter Szilágyi2015-11-062-7/+4
|
* Merge pull request #1934 from karalabe/polish-protocol-infosJeffrey Wilcke2015-11-042-4/+7
|\ | | | | eth, p2p, rpc/api: polish protocol info gathering
| * eth, p2p, rpc/api: polish protocol info gatheringPéter Szilágyi2015-10-282-4/+7
| |
* | Merge pull request #1948 from bas-vk/rpcfixJeffrey Wilcke2015-11-032-7/+12
|\ \ | | | | | | Infinite loop in filters
| * | rpc: return an unsupported error when "pending" was used to create a filterBas van Kervel2015-10-302-7/+12
| |/
* / rpc: fixed params parsing problem which could lead to a panicBas van Kervel2015-10-291-3/+11
|/ | | | | check argument type before parsing params recover from panic in ipc channel
* rpc api: eth_getNatSpeczelig2015-10-275-15/+31
| | | | | | | | * xeth, rpc: implement eth_getNatSpec for tx confirmations * rename silly docserver -> httpclient * eth/backend: httpclient now accessible via eth.Ethereum init-d via config.DocRoot * cmd: introduce separate CLI flag for DocRoot (defaults to homedir) * common/path: delete unused assetpath func, separate HomeDir func
* console:zelig2015-10-225-20/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* core, eth, trie: fix data races and merge/review issuesPéter Szilágyi2015-10-211-3/+1
|
* core, eth: receipt chain reconstructionPéter Szilágyi2015-10-191-1/+1
|
* core: differentiate receipt concensus and storage decodingPéter Szilágyi2015-10-191-2/+2
|
* core: support inserting pure header chainsPéter Szilágyi2015-10-191-7/+1
|
* Merge pull request #1869 from Gustav-Simonsson/gpu_minerJeffrey Wilcke2015-10-161-1/+1
|\ | | | | all: Add GPU mining, disabled by default
| * all: Add GPU mining, disabled by defaultGustav Simonsson2015-10-071-1/+1
| |
* | core/state, core, miner: handle missing root error from state.NewGustav Simonsson2015-10-161-3/+3
| |
* | cmd/geth, cmd/utils, core, rpc: renamed to blockchainJeffrey Wilcke2015-10-043-6/+6
| | | | | | | | | | | | * Renamed ChainManager to BlockChain * Checkpointing is no longer required and never really properly worked when the state was corrupted.
* | cmd/evm, core/vm, test: refactored VM and coreJeffrey Wilcke2015-10-041-3/+3
|/ | | | | | | | | | | | | | | | | * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * core/vm: byte code VM moved to jump table instead of switch * Moved `vm.Transfer` to `core` package and changed execution to call `env.Transfer` instead of `core.Transfer` directly. * Byte code VM now shares the same code as the JITVM * Renamed Context to Contract * Changed initialiser of state transition & unexported methods * Removed the Execution object and refactor `Call`, `CallCode` & `Create` in to their own functions instead of being methods. * Removed the hard dep on the state for the VM. The VM now depends on a Database interface returned by the environment. In the process the core now depends less on the statedb by usage of the env * Moved `Log` from package `core/state` to package `core/vm`.
* rpc/api: don't crash for unknown blocksFelix Lange2015-09-231-25/+23
| | | | | | | | | | | Most eth RPC calls that work with blocks crashed when the block was not found because they called Hash on a nil block. This is a regression introduced in cdc2662c409 (#1779). While here, remove the insane conversions in get*CountBy*. There is no need to construct a complete BlockRes and converting int->int64->*big.Int->[]byte->hexnum->string to format the length of a slice as hex.
* jsre, rpc/api: pull in new web3 and use hex numbersPéter Szilágyi2015-09-152-7/+3
|
* eth, rpc: standardize the chain sync progress countersPéter Szilágyi2015-09-155-17/+20
|
* core: split out TD from database and all internalsPéter Szilágyi2015-09-112-40/+36
|
* Merge pull request #1742 from fjl/rpc-receipt-rootFelix Lange2015-08-311-0/+6
|\ | | | | rpc: add receiptRoot to getBlock* responses
| * rpc: add receiptRoot to getBlock* responsesFelix Lange2015-08-291-0/+6
| | | | | | | | Fixes #1679
* | Merge pull request #1724 from Gustav-Simonsson/get_workFelix Lange2015-08-291-1/+6
|\ \ | | | | | | rpc: return error code for eth_getWork when no work ready
| * | Improve error string and remove unneeded else clauseGustav Simonsson2015-08-281-1/+1
| | |
| * | rpc: return error code for eth_getWork when no work readyGustav Simonsson2015-08-261-1/+6
| | |
* | | rpc/api allow empty passwordBas van Kervel2015-08-282-4/+4
| |/ |/|
* | Merge pull request #1718 from caktux/developFelix Lange2015-08-271-0/+1
|\ \ | | | | | | add missing shh_getMessages to RPC mappings
| * | add missing shh_getMessages to RPC mappingscaktux2015-08-261-0/+1
| |/
* / rpc/api - remove personal.deleteAccount from RPC interfaceBas van Kervel2015-08-263-47/+0
|/
* Merge pull request #1675 from obscuren/submithashrate-changeJeffrey Wilcke2015-08-181-2/+2
|\ | | | | rpc/api: return boolean value for eth_submitHashrate
| * rpc/api: return boolean value for eth_submitHashrateJeffrey Wilcke2015-08-171-2/+2
| |
* | Merge pull request #1649 from maran/pending_tx_responseJeffrey Wilcke2015-08-171-8/+8
|\ \ | |/ |/| rpc/api: format pendingTx response. Fixes #1648
| * rpc/api: format pendingTx response. Fixes #1648Maran2015-08-161-8/+8
| |
* | support for user agentsBas van Kervel2015-08-125-20/+36
|/
* core, eth, trie, xeth: merged state, chain, extra databases in oneJeffrey Wilcke2015-08-081-1/+1
|
* Merge pull request #1595 from obscuren/extra-dataJeffrey Wilcke2015-08-071-6/+2
|\ | | | | cmd/geth, eth: added canonical extra data
| * miner, rpc: added length check for extra dataJeffrey Wilcke2015-08-071-6/+2
| |
* | miner, rpc: added submit hashrate for remote agentsJeffrey Wilcke2015-08-062-0/+41
|/
* Merge pull request #1461 from bas-vk/eth_resendJeffrey Wilcke2015-08-022-7/+19
|\ | | | | Old transaction after resend was not removed from pool
| * bugfix, pending transaction was resend with new gas price/limit but not ↵Bas van Kervel2015-07-282-7/+19
| | | | | | | | removed from transaction pool
* | rpc/api: add missing autocomplete commandsPéter Szilágyi2015-07-311-5/+12
| |
* | rpc: to in Call no longer required. Fixed eth_estimateGasJeffrey Wilcke2015-07-293-8/+4
| |
* | Merge pull request #1515 from fjl/license-fixesJeffrey Wilcke2015-07-2834-34/+34
|\ \ | | | | | | all: fix license headers one more time
| * | all: fix license headers one more timeFelix Lange2015-07-2434-34/+34
| | | | | | | | | | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* | | params: reduce extra data to 32 bytesJeffrey Wilcke2015-07-261-0/+8
|/ /
* / all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-2334-136/+136
|/ | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* added net.versionBas van Kervel2015-07-083-2/+10
|
* all: update license informationFelix Lange2015-07-0734-0/+544
|
* Merge pull request #1428 from obscuren/coinbase-fixesJeffrey Wilcke2015-07-073-0/+43
|\ | | | | cmd,eth,rpc,tests: default coinbase
| * eth,miner,rpc: set coinbaseJeffrey Wilcke2015-07-071-1/+1
| |
| * cmd,eth,rpc,tests: default coinbaseJeffrey Wilcke2015-07-073-0/+43
| |
* | fix/skip tests, adapt registrar to no contract addresszelig2015-07-071-6/+6
| | | | | | | | registry initialisers now return the txhash which caller can use to retrieve receipt
* | rebase with zelig/frontier/registrarBas van Kervel2015-07-071-20/+10
| |
* | corrected input formatters as suggested during reviewBas van Kervel2015-07-076-24/+4
| |
* | fixed web3 formatters mismatchBas van Kervel2015-07-079-174/+73
| |
* | fix js arguments and TestContract passeszelig2015-07-072-17/+19
| |
* | fix sleepBlocks, implement sleepzelig2015-07-073-18/+44
| |
* | add missing method to api/adminzelig2015-07-072-2/+17
| |
* | Registrar and contractInfo handlingzelig2015-07-073-13/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* | Registrar and contractInfo handlingzelig2015-07-072-0/+79
|/ | | | | | | | | | | | | | | | * resolver -> common/registrar * global registrar name registry interface * add Call to resolver backend interface * the hashReg and UrlHing contracts now initialised from global registry * initialization of contracts uniform * improve errors and more econsistent method names * common/registrar/ethreg: versioned registrar * integrate new naming and registrar in natspec * js console api: setGlobalRegistrar, setHashReg, setUrlHint * js test TestContract uses mining - tests fixed all pass * eth/backend: allow PoW test mode (small ethash DAG) * console jsre refers to resolver.abi/addr, * cmd/geth/contracts.go moved to common/registrar
* core, eth, rpc: proper gas used. Closes #1417Jeffrey Wilcke2015-07-072-5/+4
| | | | Added some additional backward compatibility code for old receipts
* rpc, xeth: fixed returned tx hash & receipt logsJeffrey Wilcke2015-07-061-9/+14
|
* Add autocomplete support for consoleTaylor Gerring2015-07-061-0/+1
|
* CleanupTaylor Gerring2015-07-051-4/+4
|
* Compose additional fieldsTaylor Gerring2015-07-052-5/+18
|
* Remove redundant functionTaylor Gerring2015-07-051-1/+1
|
* Rename local variable for clarityTaylor Gerring2015-07-041-2/+2
|
* Decode full receipt storageTaylor Gerring2015-07-041-2/+4
|
* Fix hex conversionTaylor Gerring2015-07-041-1/+2
|
* Initial getTransactionReceipt supportTaylor Gerring2015-07-042-0/+43
|
* fix logging jsonrpc request #1365ethers2015-07-011-1/+1
|
* Merge pull request #1328 from bas-vk/issue1327Jeffrey Wilcke2015-06-305-8/+252
|\ | | | | Add pendingTransactions and resend
| * solved merge conflictsBas van Kervel2015-06-301-9/+0
| |\
| | * initialize fields to prevent nil pointer exceptionBas van Kervel2015-06-291-3/+8
| | |
| | * add json parsing method for resend transactionBas van Kervel2015-06-292-2/+76
| | |
| | * improved error handling in parsing requestBas van Kervel2015-06-292-2/+8
| | |
| | * fixed unittest compilation issueBas van Kervel2015-06-241-2/+3
| | |
| | * added eth.resendBas van Kervel2015-06-244-0/+76
| | |
| | * added eth.pendingTransactionsBas van Kervel2015-06-244-6/+79
| | |
| * | rebase with developBas van Kervel2015-06-302-15/+33
| | |
| * | initialize fields to prevent nil pointer exceptionBas van Kervel2015-06-301-3/+8
| | |
| * | add json parsing method for resend transactionBas van Kervel2015-06-302-2/+76
| | |
| * | improved error handling in parsing requestBas van Kervel2015-06-302-2/+8
| | |
| * | fixed unittest compilation issueBas van Kervel2015-06-301-2/+3
| | |
| * | added eth.resendBas van Kervel2015-06-304-0/+76
| | |
| * | added eth.pendingTransactionsBas van Kervel2015-06-304-6/+79
| | |
* | | core: reduce CPU load by reducing calls to checkQueueJeffrey Wilcke2015-06-301-2/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reduced maxQueue count * Added proper deletion past maxQueue limit * Added cheap stats method to txpool queueCheck was called for **every** transaction instead of: 1. add all txs 2. check queue previously 1. add txs[i] 2. check queue 3. if i < len(txs) goto 1.
* | core, eth, rpc: avoid unnecessary block header copyingFelix Lange2015-06-301-8/+10
| |
* | rpc: unmask pending block fieldsFelix Lange2015-06-301-8/+0
| | | | | | | | This pleases the RPC tests.
* | cmd/geth, rpc/api: fix reported metrics issuesPéter Szilágyi2015-06-251-15/+12
| |
* | rpc/api, cmd/geth: retrievel all percentiles, add time unitsPéter Szilágyi2015-06-241-21/+22
| |
* | cmd/geth, rpc/api: extend metrics API, add a basic monitor commandPéter Szilágyi2015-06-243-32/+96
| |
* | cmd/geth, rpc/api: move the metrics into the new consolePéter Szilágyi2015-06-242-0/+69
|/
* bugfix in startRPC error handlingBas van Kervel2015-06-231-4/+4
|
* fixed eth sign unittestBas van Kervel2015-06-224-8/+27
|
* added RPC start/stop supportBas van Kervel2015-06-2218-91/+152
|
* fixed unittestsBas van Kervel2015-06-221-29/+0
|
* added batch support to console and attach actionsBas van Kervel2015-06-223-26/+26
|
* moved solidity test to new rpc structureBas van Kervel2015-06-221-0/+110
|
* removed old rpc structure and added new inproc api clientBas van Kervel2015-06-223-6/+2695
|
* fixed rpc test failure in eth.blockNumberBas van Kervel2015-06-221-43/+45
|
* fixed rpc test failure in net_peerCountBas van Kervel2015-06-221-1/+1
|
* fixed web3 rpc test failuresBas van Kervel2015-06-221-0/+24
|
* added DB apiBas van Kervel2015-06-226-5/+295
|
* refactored old rpc structure to newBas van Kervel2015-06-221-0/+4
|
* added comms httpBas van Kervel2015-06-221-0/+4
|
* Merge pull request #1267 from SilentCicero/developJeffrey Wilcke2015-06-193-0/+45
|\ | | | | eth_sendRawTransaction JSON RPC
| * New DataArgs and eth_sendRawTransactionSilentCicero2015-06-172-1/+30
| |
| * thanks subtly :)Nick Dodson2015-06-161-1/+1
| |
| * NewSigArgs arg change.Nick Dodson2015-06-161-1/+1
| |
| * Update utils.goNick Dodson2015-06-151-1/+1
| |
| * Update eth.goNick Dodson2015-06-151-1/+1
| |
| * Changed variable namesSilentCicero2015-06-151-7/+1
| |
| * eth_pushTx send raw signed encoded TX data to the chain through RPCSilentCicero2015-06-152-0/+22
| |
* | Merge pull request #1260 from obscuren/tx-drop-low-txJeffrey Wilcke2015-06-162-7/+10
|\ \ | | | | | | core: drop low gas tx
| * | rpc/api: fixed default gas-(price) issue.obscuren2015-06-152-7/+10
| |/
* / fixed rpc/api.GasPricezsfelfoldi2015-06-151-1/+1
|/
* upgrade web3.js with _extend supportBas van Kervel2015-06-117-6/+51
|
* added net APIBas van Kervel2015-06-111-0/+8
|
* added miner APIBas van Kervel2015-06-111-1/+5
|
* added console commandBas van Kervel2015-06-113-15/+19
|
* added API/IPC commandline flagsBas van Kervel2015-06-111-0/+5
|
* restructured eth rpc APIBas van Kervel2015-06-113-0/+122
|
* added shh APIBas van Kervel2015-06-116-5/+370
|
* cleanup of javascript APIBas van Kervel2015-06-119-88/+89
|
* added txpool APIBas van Kervel2015-06-114-1/+91
|
* upgrade web3.js with _extend supportBas van Kervel2015-06-115-79/+79
|
* added admin APIBas van Kervel2015-06-1114-203/+613
|
* added personal APIBas van Kervel2015-06-115-9/+259
|
* added debug APIBas van Kervel2015-06-115-1/+270
|
* added net APIBas van Kervel2015-06-119-11/+141
|
* added miner APIBas van Kervel2015-06-115-1/+323
|
* added console commandBas van Kervel2015-06-117-46/+165
|
* added API/IPC commandline flagsBas van Kervel2015-06-111-0/+5
|
* added RPC/IPC supportBas van Kervel2015-06-111-0/+41
|
* restructured eth rpc APIBas van Kervel2015-06-117-0/+1911