- Jul 28, 2020
-
-
Gary Rong authored
* cmd, consensus, eth, les: implement light fetcher * les: address comment * les: address comment * les: address comments * les: check td after delivery * les: add linearExpiredValue for error counter * les: fix import * les: fix dead lock * les: order announces by td * les: encapsulate invalid counter * les: address comment * les: add more checks during the delivery * les: fix log * eth, les: fix lint * eth/fetcher: address comment
-
- Jul 21, 2020
-
-
Binacs authored
-
- Jul 13, 2020
-
-
Gary Rong authored
This change introduces garbage collection for the light client. Historical chain data is deleted periodically. If you want to disable the GC, use the --light.nopruning flag.
-
- Jul 02, 2020
-
-
Martin Holst Swende authored
* les/checkpointoracle: don't lookup checkpoint more than once per second * les/checkpoint/oracle: change oracle checktime to 1 minute
-
- Jul 01, 2020
-
-
Martin Holst Swende authored
* rpc, internal/ethapi: default rpc gascap at 50M + better error message * eth,internal: make globalgascap uint64 * core/tests: fix compilation failure * eth/config: gascap at 25M + minor review concerns
-
- Jun 17, 2020
-
-
Gary Rong authored
* cmd, eth, internal, les: add gasprice cap * cmd/utils, eth: add default value for gasprice cap * all: use txfee cap * cmd, eth: add fix * cmd, internal: address comments
-
- May 25, 2020
-
-
Martin Michlmayr authored
-
- May 22, 2020
-
-
Zsolt Felföldi authored
This PR reimplements the light client server pool. It is also a first step to move certain logic into a new lespay package. This package will contain the implementation of the lespay token sale functions, the token buying and selling logic and other components related to peer selection/prioritization and service quality evaluation. Over the long term this package will be reusable for incentivizing future protocols. Since the LES peer logic is now based on enode.Iterator, it can now use DNS-based fallback discovery to find servers. This document describes the function of the new components: https://gist.github.com/zsfelfoldi/3c7ace895234b7b345ab4f71dab102d4
-
- May 12, 2020
-
-
Gary Rong authored
* les: drop the message if the entire p2p connection is stuck * les: fix lint
-
- May 01, 2020
-
-
Boqin Qin authored
-
- Apr 24, 2020
-
-
Gary Rong authored
* trie: initial implementation for range proof * trie: add benchmark * trie: fix lint * trie: fix minor issue * trie: unset the edge valuenode as well * trie: unset the edge valuenode as nilValuenode
-
- Apr 22, 2020
-
-
Gary Rong authored
* all: seperate consensus error and evm internal error There are actually two types of error will be returned when a tranaction/message call is executed: (a) consensus error (b) evm internal error. The former should be converted to a consensus issue, e.g. The sender doesn't enough asset to purchase the gas it specifies. The latter is allowed since evm itself is a blackbox and internal error is allowed to happen. This PR emphasizes the difference by introducing a executionResult structure. The evm error is embedded inside. So if any error returned, it indicates consensus issue happens. And also this PR improve the `EstimateGas` API to return the concrete revert reason if the transaction always fails * all: polish * accounts/abi/bind/backends: add tests * accounts/abi/bind/backends, internal: cleanup error message * all: address comments * core: fix lint * accounts, core, eth, internal: address comments * accounts, internal: resolve revert reason if possible * accounts, internal: address comments
-
- Apr 20, 2020
-
-
rene authored
-
- Apr 15, 2020
-
-
Martin Holst Swende authored
* core/state/snapshot: start fixing disk iterator seek * ethdb, rawdb, leveldb, memorydb: implement iterators with prefix and start * les, core/state/snapshot: iterator fixes * all: remove two iterator methods * all: rename Iteratee.NewIteratorWith -> NewIterator * ethdb: fix review concerns
-
Gary Rong authored
* accounts/abi: implement new fackball functions In Solidity v0.6.0, the original fallback is separated into two different sub types: fallback and receive. This PR addes the support for parsing new format abi and the relevant abigen functionalities. * accounts/abi: fix unit tests * accounts/abi: minor fixes * accounts/abi, mobile: support jave binding * accounts/abi: address marius's comment * accounts/abi: Work around the uin64 conversion issue Co-authored-by:
Guillaume Ballet <gballet@gmail.com>
-
- Apr 09, 2020
-
-
Zsolt Felföldi authored
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>
-
- Apr 07, 2020
-
-
Gary Rong authored
* les: fix flaky test * eth: fix flaky test
-
- Apr 02, 2020
-
-
ucwong authored
-
- Mar 31, 2020
-
-
Gary Rong authored
* les: move execqueue into utilities package execqueue is a util for executing queued functions in a serial order which is used by both les server and les client. Move it to common package. * les: move randselect to utilities package weighted_random_selector is a helpful tool for randomly select items maintained in a set but based on the item weight. It's used anywhere is LES package, mainly by les client but will be used in les server with very high chance. So move it into a common package as the second step for les separation. * les: rename to utils
-
- Mar 27, 2020
-
-
Gary Rong authored
-
- Mar 23, 2020
-
-
Martin Holst Swende authored
Prior to this change, eth_call changed the balance of the sender account in the EVM environment to 2^256 wei to cover the gas cost of the call execution. We've had this behavior for a long time even though it's super confusing. This commit sets the default call gasprice to zero instead of updating the balance, which is better because it makes eth_call semantics less surprising. Removing the built-in balance assignment also makes balance overrides work as expected.
-
- Mar 12, 2020
-
-
Gary Rong authored
-
- Feb 26, 2020
-
-
Gary Rong authored
* les: separate peer into clientPeer and serverPeer * les: address comments
-
- Feb 25, 2020
-
-
Péter Szilágyi authored
-
- Feb 20, 2020
-
-
Gary Rong authored
-
- Feb 18, 2020
-
-
Felix Lange authored
-
- Feb 11, 2020
-
-
Adam Schmideg authored
Co-authored-by:
ligi <ligi@ligi.de>
-
- Jan 08, 2020
-
-
Gary Rong authored
-
- Jan 07, 2020
-
-
Gary Rong authored
* les: move the checkpoint oracle into its own package It's first step of refactor LES package. LES package basically can be divided into LES client and LES server. However both sides will use checkpoint package for status retrieval and verification. So this PR moves checkpoint oracle into a separate package * les: address comments
-
- Dec 25, 2019
-
-
Zsolt Felföldi authored
-
- Dec 10, 2019
-
-
Felix Lange authored
-
- Dec 06, 2019
-
-
Martin Holst Swende authored
* consensus/ethash, params: implement eip-2384: bump difficulty bomb * params: EIP 2384 compat checks * consensus, params: add Muir Glacier block number (mainnet,ropsten) + official name * core/forkid: forkid tests for muir glacier * params/config: address review concerns * params, core/forkid: review nitpicks * cmd/geth,eth,les: add override option for muir glacier * params: nit fix
-
- Nov 27, 2019
-
-
Guillaume Ballet authored
-
- Nov 26, 2019
-
-
Zsolt Felföldi authored
-
- Nov 19, 2019
-
-
Felix Lange authored
Also fix the input formatter on clique_getSnapshot and clique_getSigners so that integers as well as hex number strings are accepted.
-
- Nov 18, 2019
-
-
Zsolt Felföldi authored
-
Felix Lange authored
* build: use golangci-lint This changes build/ci.go to download and run golangci-lint instead of gometalinter. * core/state: fix unnecessary conversion * p2p/simulations: fix lock copying (found by go vet) * signer/core: fix unnecessary conversions * crypto/ecies: remove unused function cmpPublic * core/rawdb: remove unused function print * core/state: remove unused function xTestFuzzCutter * core/vm: disable TestWriteExpectedValues in a different way * core/forkid: remove unused function checksum * les: remove unused type proofsData * cmd/utils: remove unused functions prefixedNames, prefixFor * crypto/bn256: run goimports * p2p/nat: fix goimports lint issue * cmd/clef: avoid using unkeyed struct fields * les: cancel context in testRequest * rlp: delete unreachable code * core: gofmt * internal/build: simplify DownloadFile for Go 1.11 compatibility * build: remove go test --short flag * .travis.yml: disable build cache * whisper/whisperv6: fix ineffectual assignment in TestWhisperIdentityManagement * .golangci.yml: enable goconst and ineffassign linters * build: print message when there are no lint issues * internal/build: refactor download a bit
-
- Nov 13, 2019
-
-
Zsolt Felföldi authored
This PR implements the LES server RPC API. Methods for server capacity, client balance and client priority management are provided.
-
- Nov 06, 2019
-
-
Gary Rong authored
* les: loose restriction of unit tests * les: update unit tests * les, light: slim the unit tests
-
- Nov 02, 2019
-
-
Gary Rong authored
* les: rework clientpool
-