OpenAtomFoundation / xupercore

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

add check tx already in db when post tx #330

Closed godeamon closed 2 years ago

godeamon commented 2 years ago

PostTx 时检查交易是否已经存在账本或者未确认交易表中,在特殊情况下不加此检查会导致区块打包失败。

codecov-commenter commented 2 years ago

Codecov Report

Merging #330 (75ecc34) into master (7d227e6) will decrease coverage by 0.05%. The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
- Coverage   45.82%   45.76%   -0.06%     
==========================================
  Files         138      138              
  Lines       12291    12295       +4     
==========================================
- Hits         5632     5627       -5     
- Misses       5507     5513       +6     
- Partials     1152     1155       +3     
Impacted Files Coverage Δ
kernel/engines/xuperos/chain.go 47.75% <25.00%> (-0.38%) :arrow_down:
bcs/network/p2pv1/conn.go 55.10% <0.00%> (-6.13%) :arrow_down:
bcs/network/p2pv2/server.go 51.33% <0.00%> (-1.07%) :arrow_down:
bcs/consensus/xpoa/xpoa.go 52.28% <0.00%> (-1.02%) :arrow_down:
bcs/consensus/tdpos/tdpos.go 47.88% <0.00%> (+0.93%) :arrow_up:
bcs/consensus/tdpos/common.go 55.07% <0.00%> (+2.89%) :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 7d227e6...75ecc34. Read the comment docs.