b00ris
769657060e
les: implement ultralight client ( #16904 )
...
For more information about this light client mode, read
https://hackmd.io/s/HJy7jjZpm
6 years ago
Felföldi Zsolt
f0515800e6
les: fix fetcher syncing logic ( #18072 )
6 years ago
Felföldi Zsolt
b7bbe66b19
les: limit state ODR retrievals to the last 100 blocks ( #17744 )
6 years ago
Felföldi Zsolt
51df1c1f20
les: add announcement safety check to light fetcher ( #17034 )
6 years ago
Péter Szilágyi
6cf0ab38bd
core/rawdb: separate raw database access to own package ( #16666 )
7 years ago
Felföldi Zsolt
1bdde620da
les: fix light fetcher database race ( #16103 )
...
* les: fix light fetcher database race
* les: lightFetcher comments
7 years ago
Péter Szilágyi
dfc5842a89
les: add missing lock around peer access
7 years ago
Evgeny Danilenko
0914d4e0d2
les: fix misuse of WaitGroup ( #15365 )
7 years ago
Felföldi Zsolt
a5d08c893d
les: code refactoring ( #14416 )
...
This commit does various code refactorings:
- generalizes and moves the request retrieval/timeout/resend logic out of LesOdr
(will be used by a subsequent PR)
- reworks the peer management logic so that all services can register with
peerSet to get notified about added/dropped peers (also gets rid of the ugly
getAllPeers callback in requestDistributor)
- moves peerSet, LesOdr, requestDistributor and retrieveManager initialization
out of ProtocolManager because I believe they do not really belong there and the
whole init process was ugly and ad-hoc
8 years ago
Péter Szilágyi
158d603528
consensus, core: drop all the legacy custom core error types
8 years ago
Felföldi Zsolt
525116dbff
les: implement request distributor, fix blocking issues ( #3660 )
...
* les: implement request distributor, fix blocking issues
* core: moved header validation before chain mutex lock
8 years ago
Péter Szilágyi
e7030c4bf5
all: update light logs (and a few others) to the new model
8 years ago
Péter Szilágyi
d4fd06c3dc
all: blidly swap out glog to our log15, logs need rework
8 years ago
Felix Lange
35a7dcb162
all: gofmt -w -s
8 years ago
Zsolt Felfoldi
93f9c023cc
les: fixed selectPeer deadlock, improved request distribution
...
les/flowcontrol: using proper types for relative and absolute times
8 years ago
Zsolt Felfoldi
f12f8a6c14
les, light: add block availability check for ODR requests
8 years ago
Zsolt Felfoldi
c8130df1d9
les: using random request IDs
8 years ago
Zsolt Felfoldi
af8a742d00
les: improved header fetcher and server statistics
8 years ago
Zsolt Felfoldi
e67500aa15
les: fixed light fetcher request ID matching
8 years ago
Felix Lange
b8bd9a71c8
all: update license information
8 years ago
Felix Lange
be3865211c
core/types: remove header accessors
...
These accessors were introduced by light client changes, but
the only method that is actually used is GetNumberU64. This
commit replaces all uses of .GetNumberU64 with .Number.Uint64.
8 years ago
Zsolt Felfoldi
9f8d192991
les: light client protocol and API
8 years ago