Anton Kaliaev
c56fd04ab4
Closes #4385 * extract TrustOptions into its own file * print trusted hash before asking whenever to rollback or not so the user could reset the light client with the trusted header * do not return an error if rollback is aborted reason: we trust the old header presumably, so can continue from it. * add note about time of initial header * improve logging and add comments * cross-check newHeader after LC verified it * check if header is not nil so we don't crash on the next line * remove witness if it sends us incorrect header * require at least one witness * fix build and tests * rename tests and assert for specific error * wrote a test * fix linter errors * only check 1/3 if headers diverge |
5 years ago | |
---|---|---|
.. | ||
http | lite2: disconnect from bad nodes (#4388) | 5 years ago |
mock | lite2: improve string output of all existing providers (#4387) | 5 years ago |
errors.go | lite2: move AutoClient into Client (#4326) | 5 years ago |
provider.go | lite2: improve string output of all existing providers (#4387) | 5 years ago |