Revision bb7a80ec7ecdf464702485493c05fea7d2a37f0e authored by Callum Waters on 06 February 2020, 11:30:37 UTC, committed by GitHub on 06 February 2020, 11:30:37 UTC
Closes #4328

When TrustedHeader(height) is called, if the height is less than the trusted height but the header is not in the trusted store then a function finds the previous lowest height with a trusted header and performs a forwards sequential verification to the header of the height that was given. If no error is found it updates the trusted store with the header and validator set for that height and can then return them to the user.

Commits:

* drafted trusted header

* created function to find previous trusted height

* updates missing headers less than the trusted height

* minor cosmetic tweaks

* incorporated suggestions

* lite2: implement Backwards verification

and add SignedHeaderAfter func to Store interface

Refs https://github.com/tendermint/tendermint/issues/4328#issuecomment-581878549

* remove unused method

* write tests

* start with next height in SignedHeaderAfter func

* fix linter errors

* address Callum's comments

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
1 parent df3eee4
History
File Mode Size
.circleci
.github
DOCKER
abci
behaviour
blockchain
cmd
config
consensus
crypto
docs
evidence
libs
lite
lite2
mempool
mock
networks
node
p2p
privval
proxy
rpc
scripts
state
store
test
tools
types
version
.editorconfig -rw-r--r-- 280 bytes
.gitignore -rw-r--r-- 528 bytes
.golangci.yml -rw-r--r-- 1.1 KB
CHANGELOG.md -rw-r--r-- 142.2 KB
CHANGELOG_PENDING.md -rw-r--r-- 616 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 4.9 KB
CONTRIBUTING.md -rw-r--r-- 10.4 KB
LICENSE -rw-r--r-- 11.1 KB
Makefile -rw-r--r-- 8.3 KB
PHILOSOPHY.md -rw-r--r-- 7.5 KB
README.md -rw-r--r-- 7.5 KB
SECURITY.md -rw-r--r-- 1.7 KB
UPGRADING.md -rw-r--r-- 18.3 KB
Vagrantfile -rw-r--r-- 2.0 KB
appveyor.yml -rw-r--r-- 251 bytes
codecov.yml -rw-r--r-- 330 bytes
docker-compose.yml -rw-r--r-- 1.3 KB
dredd.yml -rw-r--r-- 700 bytes
go.mod -rw-r--r-- 1.4 KB
go.sum -rw-r--r-- 29.6 KB
tests.mk -rw-r--r-- 3.7 KB
tools.mk -rw-r--r-- 2.8 KB

README.md

back to top