celestiaorg / go-header

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

feat(store): add Tail method #210

Closed cristaloleg closed 1 month ago

cristaloleg commented 4 months ago

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 store.

Updates #203

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 26.31579% with 14 lines in your changes missing coverage. Please review.

Please upload report for BASE (backward-sync@7d9aad6). Learn more about missing BASE report.

Files Patch % Lines
headertest/store.go 0.00% 8 Missing :warning:
store/store.go 45.45% 6 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## backward-sync #210 +/- ## ================================================ Coverage ? 63.32% ================================================ Files ? 38 Lines ? 3610 Branches ? 0 ================================================ Hits ? 2286 Misses ? 1155 Partials ? 169 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.