OpenAtomFoundation / xupercore

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

post tx xmode check from db not batch cache #340

Closed godeamon closed 2 years ago

godeamon commented 2 years ago

两笔交易引用同一个key时,并发提交,XMdel检查读集合时从状态机查询数据,而不是batch cache,因为batch cache是给执行区块时用的。

codecov-commenter commented 2 years ago

Codecov Report

Merging #340 (0bdf611) into master (cffcfcd) will decrease coverage by 0.02%. The diff coverage is 50.00%.

@@            Coverage Diff             @@
##           master     #340      +/-   ##
==========================================
- Coverage   45.63%   45.60%   -0.03%     
==========================================
  Files         139      139              
  Lines       12362    12371       +9     
==========================================
+ Hits         5641     5642       +1     
- Misses       5567     5575       +8     
  Partials     1154     1154              
Impacted Files Coverage Δ
bcs/ledger/xledger/state/xmodel/xmodel_verify.go 46.66% <50.00%> (+3.80%) :arrow_up:
bcs/consensus/xpoa/xpoa.go 51.26% <0.00%> (-2.04%) :arrow_down:
bcs/ledger/xledger/state/xmodel/xmodel.go 62.85% <0.00%> (-1.43%) :arrow_down:
bcs/network/p2pv2/server.go 51.33% <0.00%> (-1.07%) :arrow_down:
kernel/consensus/base/driver/chained-bft/smr.go 41.33% <0.00%> (+0.74%) :arrow_up:
bcs/consensus/tdpos/tdpos.go 48.82% <0.00%> (+0.93%) :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 cffcfcd...0bdf611. Read the comment docs.