nervosnetwork / ckb-light-client

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

fix: an incorrect function to traverse grouped data #113

Closed yangby-cryptape closed 1 year ago

yangby-cryptape commented 1 year ago

If there are 2 values of the (number, hash) pair, then the data length is 40 * 2 == 80.

codecov-commenter commented 1 year ago

Codecov Report

Base: 78.39% // Head: 78.39% // No change to project coverage :thumbsup:

Coverage data is based on head (34a6351) compared to base (104dafe). Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #113 +/- ## ======================================== Coverage 78.39% 78.39% ======================================== Files 23 23 Lines 4781 4781 ======================================== Hits 3748 3748 Misses 1033 1033 ``` | Flag | Coverage Δ | | |---|---|---| | unittests | `78.39% <100.00%> (ø)` | | 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. | [Impacted Files](https://codecov.io/gh/nervosnetwork/ckb-light-client/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nervosnetwork) | Coverage Δ | | |---|---|---| | [src/storage.rs](https://codecov.io/gh/nervosnetwork/ckb-light-client/pull/113?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nervosnetwork#diff-c3JjL3N0b3JhZ2UucnM=) | `96.60% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nervosnetwork). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=nervosnetwork)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.