icon-project / icon-bridge

The centralized bridge of ICON
Apache License 2.0
21 stars 15 forks source link

feat(bmr): verify blocks received from chain in bmr to ensure blocks received are part of the canonical chain #807

Closed MuhammedIrfan closed 1 year ago

MuhammedIrfan commented 1 year ago

Closes #585

Checklist:

Please review the CONTRIBUTING.md file for detailed contributing guidelines.

codecov[bot] commented 1 year ago

Codecov Report

Merging #807 (393eb64) into main (79537e7) will increase coverage by 0.34%. The diff coverage is 68.30%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #807      +/-   ##
============================================
+ Coverage     38.20%   38.55%   +0.34%     
  Complexity      801      801              
============================================
  Files           115      116       +1     
  Lines         11161    11327     +166     
  Branches        941      941              
============================================
+ Hits           4264     4367     +103     
- Misses         6579     6625      +46     
- Partials        318      335      +17     
Impacted Files Coverage Δ
cmd/iconbridge/chain/near/api.go 0.00% <0.00%> (ø)
cmd/iconbridge/chain/near/verifier.go 66.95% <66.95%> (ø)
cmd/iconbridge/chain/near/client.go 66.42% <68.75%> (-1.53%) :arrow_down:
cmd/iconbridge/chain/near/receiver.go 77.44% <75.00%> (-6.90%) :arrow_down: