Oleg Kovalov
Oleg Kovalov
## Overview We don't need to verify headers on every `GetRangeByHeight` 'cause verification already happened in `Append`. No tests failed, added `TestStore_Append_BadHeader` to prevent bugs in the future. Fixes #135
We were resetting `maxHeadersPerLoop` to a different value (`1024`) which has no relations to the default value (`512`). Which isn't that bad because it's a test but still we have...
Chances that we will get https://github.com/golang/go/issues/36532 is quite low, however this should make our tests a bit simpler.
## Overview The main idea of this PR is to make `Store[H].Head` working properly, to be precise: returning head that was written to the disk (*). Along with that `heightSub.height`...
## Overview After #211 we can improve `Store[H].flushLoop` a bit more: respect context. Also, added a test to verify that retries works. Lowered max sleep from 1sec, 100msec should be...
## Overview
## Overview Add `.Tail` method to `header.Store[H]` and `store.Store[H]` implementation. For now method tries to return genesis header. In the future PRs method will start returning real tail of the...