SequentialVerification option configures the light client to sequentially check the blocks (every block, in ascending height order). Note this is much slower than SkippingVerification, albeit more secure.
()
| 48 | // check the blocks (every block, in ascending height order). Note this is |
| 49 | // much slower than SkippingVerification, albeit more secure. |
| 50 | func SequentialVerification() Option { |
| 51 | return func(c *Client) { |
| 52 | c.verificationMode = sequential |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | // SkippingVerification option configures the light client to skip blocks as |
| 57 | // long as {trustLevel} of the old validator set signed the new header. The |
no outgoing calls