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

optional custom validation #128

Closed S1nus closed 7 months ago

S1nus commented 8 months ago

Overview

Sometimes, a rollup might want to customize the stateless validation behavior at runtime. For example, in a centralized sequencer scheme where the proposer pubkey is always known, this enables more efficient validation.

Checklist

codecov-commenter commented 8 months ago

Codecov Report

Merging #128 (ae7cd19) into main (a8ce731) will decrease coverage by 0.68%. The diff coverage is 22.22%.

@@            Coverage Diff             @@
##             main     #128      +/-   ##
==========================================
- Coverage   65.01%   64.34%   -0.68%     
==========================================
  Files          39       39              
  Lines        3276     3290      +14     
==========================================
- Hits         2130     2117      -13     
- Misses        988     1011      +23     
- Partials      158      162       +4     
Files Coverage Δ
p2p/exchange.go 84.27% <100.00%> (ø)
p2p/session.go 87.56% <28.57%> (-2.24%) :arrow_down:
p2p/subscriber.go 38.46% <0.00%> (-4.23%) :arrow_down:

... and 2 files with indirect coverage changes

S1nus commented 7 months ago

closing for now