celestiaorg / go-header

Go library with all the services needed to request, sync and store blockchain headers.
Apache License 2.0
17 stars 16 forks source link

refactor(store,sync)!: drop `NewStoreWithHead` #191

Closed cristaloleg closed 3 weeks ago

cristaloleg commented 1 month ago

Overview

Drop store.NewStoreWithHead. Replace it with a test helpers where appropriate. store package now has newStoreWithHead, sync has newTestStore. Both now require tb testing.TB as a 1st param which simplifies usage for the future tests and benchmarks.

Fixes #188

renaynay commented 3 weeks ago

Marking with break even though mostly "unused"