OpenAtomFoundation / xupercore

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

Cherry-pick commit #284 & #286 to v5.2 #291

Closed aucusaga closed 2 years ago

aucusaga commented 2 years ago

consensus: make smr run with a single validator. (#284) xpoa: parameter version works compatibly with int and string type (#286)

codecov-commenter commented 2 years ago

Codecov Report

Merging #291 (192edb8) into release-v5.2 (e843762) will decrease coverage by 0.06%. The diff coverage is 32.30%.

Impacted file tree graph

@@               Coverage Diff                @@
##           release-v5.2     #291      +/-   ##
================================================
- Coverage         46.51%   46.45%   -0.07%     
================================================
  Files               136      136              
  Lines             12126    12171      +45     
================================================
+ Hits               5641     5654      +13     
- Misses             5318     5347      +29     
- Partials           1167     1170       +3     
Impacted Files Coverage Δ
bcs/consensus/xpoa/schedule.go 48.64% <ø> (+0.82%) :arrow_up:
kernel/consensus/base/driver/chained-bft/smr.go 40.45% <3.70%> (-1.69%) :arrow_down:
bcs/consensus/xpoa/kernel_contract.go 58.53% <46.15%> (-5.10%) :arrow_down:
bcs/consensus/xpoa/common.go 80.64% <60.00%> (-5.07%) :arrow_down:
bcs/consensus/xpoa/xpoa.go 56.31% <100.00%> (+2.10%) :arrow_up:
bcs/network/p2pv1/conn.go 55.10% <0.00%> (-6.13%) :arrow_down:

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 e843762...192edb8. Read the comment docs.