lite: add helper functions for initiating the light client (#4486)

* add new net client

* hijack example test

* lint fixes

* reorganised file structure

* renamed funcs and added documentation

* implemented suggested changes

* restored example tests

* edited comments

* Update lite2/setup.go

Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>

* Update lite2/client.go

* lite cmds use HTTP client

* better naming

* Delete go.sum

* Delete go.mod

* restore go mod

* restore go.sum

* fix double import

Co-authored-by: Anton Kaliaev <anton.kalyaev@gmail.com>
Co-authored-by: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
Callum Waters
2020-03-03 12:00:06 +00:00
committed by GitHub
co-authored by Bot from GolangCI Anton Kaliaev mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent c518a062a7
commit ff786515b8
4 changed files with 96 additions and 36 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ func ExampleClient_VerifyHeaderAtHeight() {
Hash: header.Hash(),
},
primary,
[]provider.Provider{primary}, // TODO: primary should not be used here
[]provider.Provider{primary}, // NOTE: primary should not be used here
dbs.New(db, chainID),
UpdatePeriod(0),
// Logger(log.TestingLogger()),