nervosnetwork / ckb-light-client

CKB light client reference implementation
MIT License
14 stars 16 forks source link

feat: ban a peer if it's still in IBD with a very high probability #171

Closed yangby-cryptape closed 8 months ago

yangby-cryptape commented 8 months ago

The IBD status judgement condition is copied from CKB.

codecov-commenter commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (86865db) 71.39% compared to head (d180c49) 71.45%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #171 +/- ## =========================================== + Coverage 71.39% 71.45% +0.05% =========================================== Files 25 25 Lines 6479 6492 +13 =========================================== + Hits 4626 4639 +13 Misses 1853 1853 ``` | [Flag](https://app.codecov.io/gh/nervosnetwork/ckb-light-client/pull/171/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nervosnetwork) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/nervosnetwork/ckb-light-client/pull/171/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nervosnetwork) | `71.45% <100.00%> (+0.05%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nervosnetwork#carryforward-flags-in-the-pull-request-comment) to find out more.

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