Callum Waters
618c945d54
simplify initialization of light client ( #6530 )
2021-06-03 15:57:55 +02:00
Callum Waters
a91680efee
test: create common functions for easily producing tm data structures ( #6435 )
2021-05-07 17:00:02 +02:00
Callum Waters
37d36cd5bc
light: improve provider handling ( #6053 )
...
Introduces heuristics that track the amount of no responses or unavailable blocks a provider has for more robust provider handling by the light client. Use concurrent calls to all witnesses when a new primary is needed.
2021-03-01 12:04:02 +01:00
Callum Waters
b9b55db4e5
light: remove max retry attempts from client and add to provider ( #6054 )
2021-02-05 18:01:34 +01:00
Callum Waters
385ea1db7d
store: use db iterators for pruning and range-based queries ( #5848 )
2021-01-08 13:12:54 +01:00
Anton Kaliaev
12ebd7735a
light: cross-check the very first header ( #5429 )
...
Closes #5428
2020-10-09 14:29:22 +04:00
Anton Kaliaev
85a4be87a7
rpc/client: take context as first param ( #5347 )
...
Closes #5145
also applies to light/client
2020-09-23 09:21:57 +04:00
Callum Waters
ed002cea7e
evidence: introduction of LightClientAttackEvidence and refactor of evidence lifecycle ( #5361 )
...
evidence: modify evidence types (#5342 )
light: detect light client attacks (#5344 )
evidence: refactor evidence pool (#5345 )
abci: application evidence prepared by evidence pool (#5354 )
2020-09-22 10:22:54 +02:00
Callum Waters
e2927d2088
light: move dropout handling and invalid data to the provider ( #5308 )
2020-09-02 18:28:48 +02:00
Marko
e0140e4beb
evidence: remove ConflictingHeaders type ( #5317 )
...
## Description
Remove ConflictingHeaders & compositeEvidence types
Ref #5288
2020-09-01 16:34:37 +00:00
Callum Waters
2b58a62721
light: implement light block ( #5298 )
2020-09-01 17:45:55 +02:00
Anton Kaliaev
5223cbac27
light: return if target header is invalid ( #5124 )
...
Closes #5120
2020-07-17 06:13:00 +00:00
Anton Kaliaev
a08316f16a
light: use bisection (not VerifyCommitTrusting) when verifying a head… ( #5119 )
...
Closes #4934
* light: do not compare trusted header w/ witnesses
we don't have trusted state to bisect from
* check header before checking height
otherwise you can get nil panic
2020-07-15 15:44:30 +04:00
Callum Waters
65d7ce9c9c
evidence: improve amnesia evidence handling ( #5003 )
...
fix bug so that PotentialAmnesiaEvidence is being gossiped
handle inbound amnesia evidence correctly
add method to check if potential amnesia evidence is on trial
fix a bug with the height when we upgrade to amnesia evidence
change evidence to using just pointers.
More logging in the evidence module
Co-authored-by: Marko <marbar3778@yahoo.com >
2020-06-23 17:09:14 +02:00
Callum Waters
b1dba352b0
light: added more tests for pruning, initialization and bisection ( #4978 )
2020-06-10 18:56:24 +02:00
Callum Waters
d53a8d0377
light: implement validate basic ( #4916 )
...
run a validate basic on inbound validator sets and headers before further processing them
2020-06-04 13:45:39 +02:00
Marko
c2578e2262
light: rename lite2 to light & remove lite ( #4946 )
...
This PR removes lite & renames lite2 to light throughout the repo
Signed-off-by: Marko Baricevic <marbar3778@yahoo.com >
Closes : #4944
2020-06-03 10:13:42 +00:00