meowsbits
e862cbff95
internal/web3ext, node: migrate node admin API (Start|Stop)RPC->HTTP ( #22461 )
...
* internal/web3ext,node: migrate node admin API (Start|Stop)RPC->HTTP
Corresponding CLI flags --rpc have been moved to --http.
This moves the admin module HTTP RPC start/stop
methods to an equivalent namespace.
Rel https://github.com/ethereum/go-ethereum/pull/22263
Date: 2021-03-08 08:00:11-06:00
Signed-off-by: meows <b5c6@protonmail.com>
* internal/web3ext: fix startRPC/HTTP param count (4->5)
Date: 2021-03-16 06:13:23-05:00
Signed-off-by: meows <b5c6@protonmail.com>
4 years ago
Felföldi Zsolt
dc109cce26
les: move server pool to les/vflux/client ( #22377 )
...
* les: move serverPool to les/vflux/client
* les: add metrics
* les: moved ValueTracker inside ServerPool
* les: protect against node registration before server pool is started
* les/vflux/client: fixed tests
* les: make peer registration safe
4 years ago
mr_franklin
5c6155f9f4
internal/web3ext: improve some web3 apis ( #21639 )
...
* imporve some web3-ext apis
* Update web3ext.go
Co-authored-by: Felix Lange <fjl@twurst.com>
4 years ago
mr_franklin
a04294d160
internal/web3ext: improve eth_getBlockByNumber and eth_getBlockByHash console api ( #21608 )
4 years ago
Marius van der Wijden
c1544423d6
internal/ethapi: fix nil deref + fix estimateGas console bindings ( #21601 )
...
* tried to fix
* fix for js api
* fix for nil pointer ex
* rev space
* rev space
* input call formatter
4 years ago
Felföldi Zsolt
4996fce25a
les, les/lespay/server: refactor client pool ( #21236 )
...
* les, les/lespay/server: refactor client pool
* les: use ns.Operation and sub calls where needed
* les: fixed tests
* les: removed active/inactive logic from peerSet
* les: removed active/inactive peer logic
* les: fixed linter warnings
* les: fixed more linter errors and added missing metrics
* les: addressed comments
* cmd/geth: fixed TestPriorityClient
* les: simplified clientPool state machine
* les/lespay/server: do not use goroutine for balance callbacks
* internal/web3ext: fix addBalance required parameters
* les: removed freeCapacity, always connect at minCapacity initially
* les: only allow capacity change with priority status
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
4 years ago
Marius van der Wijden
de971cc845
eth: added trace_call to trace on top of arbitrary blocks ( #21338 )
...
* eth: Added TraceTransactionPending
* eth: Implement Trace_Call, remove traceTxPending
* eth: debug_call -> debug_traceCall, recompute tx environment if pruned
* eth: fix nil panic
* eth: improve block retrieving logic in tracers
* internal/web3ext: add debug_traceCall to console
4 years ago
HackyMiner
9371b2f70c
internal/web3ext: add missing params to debug.accountRange ( #21208 )
4 years ago
Felföldi Zsolt
0851646e48
les, les/lespay/client: add service value statistics and API ( #20837 )
...
This PR adds service value measurement statistics to the light client. It
also adds a private API that makes these statistics accessible. A follow-up
PR will add the new server pool which uses these statistics to select
servers with good performance.
This document describes the function of the new components:
https://gist.github.com/zsfelfoldi/3c7ace895234b7b345ab4f71dab102d4
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
5 years ago
Péter Szilágyi
e6ca1958d3
internal/web3ext: fix clique console apis to work on missing arguments
5 years ago
Ryan Schneider
c4b7fdd27e
eth, internal/web3ext: add optional first and last arguments to the `admin_exportChain` RPC. ( #20107 )
5 years ago
xinluyin
d556d39a2c
internal/web3ext: add debug_accountRange ( #20410 )
5 years ago
Felix Lange
9c6cf960b4
internal/web3ext, les: update clique JS and make it work with the light client ( #20318 )
...
Also fix the input formatter on clique_getSnapshot and clique_getSigners
so that integers as well as hex number strings are accepted.
5 years ago
Felföldi Zsolt
422604b438
les: rename UpdateBalance to AddBalance and simplify return format ( #20304 )
5 years ago
Felföldi Zsolt
bf5c6b29fa
les: implement server priority API ( #20070 )
...
This PR implements the LES server RPC API. Methods for server
capacity, client balance and client priority management are provided.
5 years ago
Martin Holst Swende
c55e1b495c
ethapi: implement filltransaction
5 years ago
gary rong
530f78e22d
eth, internal, les: add getHeaderBy* APIs ( #19669 )
...
* eth, interal, les: add getHeaderBy* APIs
* internal: address the comment
* eth, internal, les: getHeader nits, missing TD, console callable
5 years ago
gary rong
f7cdea2bdc
all: on-chain oracle checkpoint syncing ( #19543 )
...
* all: implement simple checkpoint syncing
cmd, les, node: remove callback mechanism
cmd, node: remove callback definition
les: simplify the registrar
les: expose checkpoint rpc services in the light client
les, light: don't store untrusted receipt
cmd, contracts, les: discard stale checkpoint
cmd, contracts/registrar: loose restriction of registeration
cmd, contracts: add replay-protection
all: off-chain multi-signature contract
params: deploy checkpoint contract for rinkeby
cmd/registrar: add raw signing mode for registrar
cmd/registrar, contracts/registrar, les: fixed messages
* cmd/registrar, contracts/registrar: fix lints
* accounts/abi/bind, les: address comments
* cmd, contracts, les, light, params: minor checkpoint sync cleanups
* cmd, eth, les, light: move checkpoint config to config file
* cmd, eth, les, params: address comments
* eth, les, params: address comments
* cmd: polish up the checkpoint admin CLI
* cmd, contracts, params: deploy new version contract
* cmd/checkpoint-admin: add another flag for clef mode signing
* cmd, contracts, les: rename and regen checkpoint oracle with abigen
5 years ago
Nick Johnson
f7027dd68c
accounts, core, internal, node: Add support for smartcard wallets
6 years ago
Péter Szilágyi
29bc982d75
cmd/geth, internal, node, vendor: nuke geth monitor
6 years ago
Matthew Halpern
e6c06a1da8
console, internal: enforce camel case variable names ( #19059 )
6 years ago
Martin Holst Swende
75d292bcf6
clef: external signing fixes + signing data ( #19003 )
...
* signer/clef: make use of json-rpc notification
* signer: tidy up output of OnApprovedTx
* accounts/external, signer: implement remote signing of text, make accounts_sign take hexdata
* clef: added basic testscript
* signer, external, api: add clique signing test to debug rpc, fix clique signing in clef
* signer: fix clique interoperability between geth and clef
* clef: rename networkid switch to chainid
* clef: enable chainid flag
* clef, signer: minor changes from review
* clef: more tests for signer
6 years ago
Jerzy Lasyk
880de230b4
p2p/protocols: accounting metrics rpc ( #18336 )
...
* p2p/protocols: accounting metrics rpc added (#847 )
* p2p/protocols: accounting api documentation added (#847 )
* p2p/protocols: accounting api doc updated (#847 )
* p2p/protocols: accounting api doc update (#847 )
* p2p/protocols: accounting api doc update (#847 )
* p2p/protocols: fix file is not gofmted
* fix lint error
* updated comments after review
* add account balance to rpc
* naming changed after review
6 years ago
Péter Szilágyi
0983d02aa9
eth, internal/web3ext: tiny polishes in tracers
6 years ago
Martin Holst Swende
42a914a84f
cmd/evm, core/vm, eth: implement api methods to do stdjson dump to local filesystem
6 years ago
Ryan Schneider
bd519ab8ae
internal/web3ext: add eth.getProof ( #18052 )
6 years ago
Martin Holst Swende
89a32451ae
core/vm: faster create/create2 ( #17806 )
...
* core/vm/runtim: benchmark create/create2
* core/vm: do less hashing in CREATE2
* core/vm: avoid storing jumpdest analysis for initcode
* core/vm: avoid unneccesary lookups, remove unused fields
* core/vm: go formatting tests
* core/vm: save jumpdest analysis locally
* core/vm: use common.Hash instead of nil, fix review comments
* core/vm: removed type destinations
* core/vm: correct check for empty hash
* eth: more elegant api_tracer
* core/vm: address review concerns
6 years ago
HackyMiner
107f556b2d
internal/ethapi: add eth_chainId method ( #17617 )
...
This implements EIP-695.
6 years ago
gary rong
b2c644ffb5
cmd, eth, miner: make recommit configurable ( #17444 )
...
* cmd, eth, miner: make recommit configurable
* cmd, eth, les, miner: polish a bit
* miner: filter duplicate sealing work
* cmd: remove uncessary conversion
* miner: avoid microptimization in favor of cleaner code
6 years ago
gary rong
51db5975cc
consensus/ethash: move remote agent logic to ethash internal ( #15853 )
...
* consensus/ethash: start remote ggoroutine to handle remote mining
* consensus/ethash: expose remote miner api
* consensus/ethash: expose submitHashrate api
* miner, ethash: push empty block to sealer without waiting execution
* consensus, internal: add getHashrate API for ethash
* consensus: add three method for consensus interface
* miner: expose consensus engine running status to miner
* eth, miner: specify etherbase when miner created
* miner: commit new work when consensus engine is started
* consensus, miner: fix some logics
* all: delete useless interfaces
* consensus: polish a bit
6 years ago
Andrey Petrov
2a75fe3308
rpc: Add admin_addTrustedPeer and admin_removeTrustedPeer.
...
These RPC calls are analogous to Parity's parity_addReservedPeer and
parity_removeReservedPeer.
They are useful for adjusting the trusted peer set during runtime,
without requiring restarting the server.
6 years ago
Ryan Schneider
1fc54d92ec
internal/web3ext: fix method name for enabling mutex profiling ( #16964 )
7 years ago
Felix Lange
12f4d28411
internal/debug: add support for mutex profiles ( #16230 )
7 years ago
Martin Holst Swende
722bac84fa
ethapi: add personal.signTransaction ( #15971 )
...
* ethapi: add personal.signTransaction
* ethapi: refactor to minimize duplicate code
* ethapi: make nonce,gas,gasPrice obligatory in signTransaction
7 years ago
Péter Szilágyi
5258785c81
cmd, core, eth/tracers: support fancier js tracing ( #15516 )
...
* 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
7 years ago
Nick Johnson
72ed186f46
eth, internal: Implement getModifiedAccountsBy(Hash|Number) using trie diffs ( #15512 )
...
* eth, internal: Implement using trie diffs
* eth, internal: Changes in response to review
* eth: More fixes to getModifiedAccountsBy*
* eth: minor polishes on error capitalization
7 years ago
Guillaume Ballet
36243c7ed8
internal/web3ext: make whisper v5 methods work ( #15111 )
7 years ago
Felix Lange
48705f8aea
internal/debug: add debug_setGCPercent
7 years ago
Felix Lange
5596b664c4
internal/debug: add debug_freeOSMemory ( #15122 )
7 years ago
Péter Szilágyi
db568a61e2
accounts, console, internal: support trezor hardware wallet
7 years ago
Daniel Sloof
0958770625
internal/web3ext: fix debug.traceBlockFromFile wrapper ( #14774 )
...
As stated in the documentation, this method should be called traceBlockFromFile
and not traceBlockByFile. Previously this would result in a 'The method ... does
not exist/is not available' error.
7 years ago
Bas van Kervel
b58a501673
whisperv5: integrate whisper and add whisper RPC simulator
8 years ago
gluk256
f9be9a2302
whisper: switching to v5 + minor refactoring ( #14387 )
8 years ago
Felix Lange
207bd7d2cd
eth: add debug_storageRangeAt
8 years ago
bas-vk
5e29f4be93
cmd/utils, node: remove unused solc references and improve RPC config ( #14324 )
...
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.
8 years ago
Péter Szilágyi
6b7ae4e751
consensus/clique, internal/web3ext: support hash based API queries ( #14321 )
...
* consensus/clique, internal/web3ext: support hash based API queries
* consensus/clique: make RPC return types public
8 years ago
Péter Szilágyi
feeccdf4ec
consensus/clique: Proof of Authority ( #3753 )
...
This PR is a prototype implementation of plugable consensus engines and the
Clique PoA protocol ethereum/EIPs#225
8 years ago
Felix Lange
105b37f1b4
swarm/api: improve FUSE build constraints, logging and APIs ( #3818 )
...
* swarm/api: fix build/tests on unsupported platforms
Skip FUSE tests if FUSE is unavailable and change build constraints so
the 'lesser' platforms aren't mentioned explicitly. The test are
compiled on all platforms to prevent regressions in _fallback.go
Also gofmt -w -s because why not.
* internal/web3ext: fix swarmfs wrappers
Remove inputFormatter specifications so users get an error
when passing the wrong number of arguments.
* swarm/api: improve FUSE-related logging and APIs
The API now returns JSON objects instead of strings.
Log messages for invalid arguments are removed.
8 years ago
Zahoor Mohamed
11e7a712f4
swarm/api: support mounting manifests via FUSE ( #3690 )
8 years ago
Péter Szilágyi
b7d93500f1
all: finish integrating Go ethash, delete C++ vendor
8 years ago