lite: Add synchronization in lite verify (#2396)

* Implement issues 2386: add synchronization in lite verify and change all Certify to Verify

* Replace make(chan struct{}, 0) with make(chan struct{})

* Parameterize memroy cache size and add concurrent test

* Refactor import order
This commit is contained in:
HaoyangLiu
2018-09-29 07:23:21 +08:00
committed by Ethan Buchman
parent 5173fe9414
commit 8dda3c3b28
10 changed files with 135 additions and 34 deletions

View File

@ -54,11 +54,11 @@ validator set, and that the height of the commit is at least height (or
greater).
SignedHeader.Commit may be signed by a different validator set, it can get
certified with a BaseVerifier as long as sufficient signatures from the
verified with a BaseVerifier as long as sufficient signatures from the
previous validator set are present in the commit.
DynamicVerifier - this Verifier implements an auto-update and persistence
strategy to certify any SignedHeader of the blockchain.
strategy to verify any SignedHeader of the blockchain.
## Provider and PersistentProvider