OpenAtomFoundation / xupercore

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

add query tip block header for consensus #274

Closed godeamon closed 2 years ago

godeamon commented 2 years ago

共识模块获取 tip block height 全部改成查询区块头并非查询整个区块。

codecov-commenter commented 2 years ago

Codecov Report

Merging #274 (77a60d7) into master (470b9d5) will increase coverage by 0.00%. The diff coverage is 76.19%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #274   +/-   ##
=======================================
  Coverage   46.58%   46.59%           
=======================================
  Files         136      136           
  Lines       12089    12095    +6     
=======================================
+ Hits         5632     5636    +4     
  Misses       5293     5293           
- Partials     1164     1166    +2     
Impacted Files Coverage Δ
bcs/ledger/xledger/config/config.go 65.21% <ø> (ø)
bcs/ledger/xledger/ledger/ledger.go 56.44% <55.55%> (-0.19%) :arrow_down:
bcs/consensus/tdpos/schedule.go 47.70% <66.66%> (ø)
bcs/consensus/pow/pow.go 42.96% <100.00%> (ø)
bcs/consensus/tdpos/tdpos.go 49.27% <100.00%> (+1.93%) :arrow_up:
bcs/consensus/xpoa/schedule.go 48.64% <100.00%> (ø)
bcs/consensus/xpoa/xpoa.go 55.91% <100.00%> (+1.07%) :arrow_up:
bcs/network/p2pv1/conn.go 55.10% <0.00%> (-6.13%) :arrow_down:
... and 1 more

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 470b9d5...77a60d7. Read the comment docs.