OpenAtomFoundation / xupercore

The kernel of xuperchain.
Apache License 2.0
61 stars 47 forks source link

Fix the problem of iterating panic when the parameter is wrong #346

Closed wangchao0222 closed 2 years ago

wangchao0222 commented 2 years ago

Description

Fix the problem of iterating panic when the parameter is wrong

Fixes # (issue)

Type of change

Please delete options that are not relevant.

Brief of your solution

Please describe your solution to solve the issue or feature request.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

codecov-commenter commented 2 years ago

Codecov Report

Merging #346 (ad49b29) into master (88732a4) will decrease coverage by 0.03%. The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #346      +/-   ##
==========================================
- Coverage   45.43%   45.40%   -0.04%     
==========================================
  Files         142      142              
  Lines       12430    12434       +4     
==========================================
- Hits         5648     5646       -2     
- Misses       5626     5631       +5     
- Partials     1156     1157       +1     
Impacted Files Coverage Δ
kernel/contract/sandbox/xmcache.go 46.61% <33.33%> (-1.45%) :arrow_down:
bcs/consensus/tdpos/common.go 52.17% <0.00%> (-2.90%) :arrow_down:
bcs/consensus/tdpos/tdpos.go 46.94% <0.00%> (-0.94%) :arrow_down:
bcs/consensus/xpoa/xpoa.go 52.28% <0.00%> (+1.01%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 88732a4...ad49b29. Read the comment docs.