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
|
87c0ba9213
|
core, eth, les, trie: add a prefix to contract code (#21080)
|
4 years ago |
gary rong
|
e401f5ff10
|
les: close all connected les-server when shutdown (#21426)
* les: close all connected les-server when shutdown
* les: linter nitpick
Co-authored-by: Martin Holst Swende <martin@swende.se>
|
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 |
gary rong
|
53cac027d0
|
les: drop the message if the entire p2p connection is stuck (#21033)
* les: drop the message if the entire p2p connection is stuck
* les: fix lint
|
5 years ago |
gary rong
|
92f3405dae
|
eth, les: fix time sensitive unit tests (#20741)
|
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 |
Adam Schmideg
|
8045504abf
|
les: log disconnect reason when light server is not synced (#20643)
Co-authored-by: ligi <ligi@ligi.de>
|
5 years ago |
gary rong
|
4d663d57d6
|
les: fix request serving metrics (#20507)
|
5 years ago |
Felföldi Zsolt
|
3bb6815fc1
|
les: do not disconnect another server (#20453)
|
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
|
396f1dd87b
|
les: fix panic (#20013)
|
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 |
gary rong
|
2ed729d38e
|
les: handler separation (#19639)
les: handler separation
|
5 years ago |