OpenAtomFoundation / xupercore

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

network: add GetBlockHeader and GetBlockTx message #234

Closed icexin closed 3 years ago

icexin commented 3 years ago

Description

增加GET_BLOCK_HEADERSGET_BLOCK_TXS两种消息p2p类型,用于后续同步区块使用。

update https://github.com/xuperchain/xuperchain/issues/1073

codecov-commenter commented 3 years ago

Codecov Report

Merging #234 (76c7cb2) into master (4a9d712) will decrease coverage by 0.01%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #234      +/-   ##
==========================================
- Coverage   47.62%   47.61%   -0.02%     
==========================================
  Files         133      133              
  Lines       11455    11462       +7     
==========================================
+ Hits         5456     5458       +2     
- Misses       4865     4870       +5     
  Partials     1134     1134              
Impacted Files Coverage Δ
bcs/ledger/xledger/ledger/ledger.go 56.27% <0.00%> (-0.55%) :arrow_down:
kernel/network/p2p/message.go 65.51% <ø> (ø)
kernel/consensus/base/driver/chained-bft/smr.go 50.46% <0.00%> (ø)
bcs/network/p2pv2/server.go 52.40% <0.00%> (+1.06%) :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 4a9d712...76c7cb2. Read the comment docs.