Felföldi Zsolt
c027507e03
les: renamed lespay to vflux ( #22347 )
4 years ago
Felföldi Zsolt
85d81b2cdd
les: remove clientPeerSet and serverSet ( #21566 )
...
* les: move NodeStateMachine from clientPool to LesServer
* les: new header broadcaster
* les: peerCommons.headInfo always contains last announced head
* les: remove clientPeerSet and serverSet
* les: fixed panic
* les: fixed --nodiscover option
* les: disconnect all peers at ns.Stop()
* les: added comments and fixed signed broadcasts
* les: removed unused parameter, fixed tests
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
gary rong
28c5a8a54b
les: implement new les fetcher ( #20692 )
...
* 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
4 years ago
Binacs
4366c45e4e
les: make clientPool.connectedBias configurable ( #21305 )
4 years ago
Martin Michlmayr
4f2784b38f
all: fix typos in comments ( #21118 )
5 years ago
Martin Holst Swende
6402c42b67
all: simplify and fix database iteration with prefix/start ( #20808 )
...
* 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
5 years ago
gary rong
4fabd9cbd2
les: separate peer into clientPeer and serverPeer ( #19991 )
...
* les: separate peer into clientPeer and serverPeer
* les: address comments
5 years ago
Felföldi Zsolt
422604b438
les: rename UpdateBalance to AddBalance and simplify return format ( #20304 )
5 years ago
Felix Lange
689486449d
build: use golangci-lint ( #20295 )
...
* 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
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
gary rong
b9bac1f384
les: fix and slim the unit tests of les ( #20247 )
...
* les: loose restriction of unit tests
* les: update unit tests
* les, light: slim the unit tests
5 years ago
gary rong
0ce5e113be
les: rework clientpool ( #20077 )
...
* les: rework clientpool
5 years ago
Felföldi Zsolt
0ac9bbba6c
les: multiple server bugfixes ( #20079 )
...
* les: detailed relative cost metrics
* les: filter txpool relative request statistic
* les: initialize price factors
* les: increased connected bias to lower churn rate
* les: fixed clientPool.setLimits
* core: do not use mutex in GetAncestor
* les: bump factor db version again
* les: add metrics
* les, light: minor fixes
5 years ago
gary rong
68502595f6
les: wait for all task goroutines before dropping the peer ( #20010 )
...
* les: wait all task routines before drop the peer
* les: address comments
* les: fix issue
5 years ago
Felföldi Zsolt
a7de796840
les: implement new client pool ( #19745 )
5 years ago