OpenAtomFoundation / xupercore

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

add account to peerID cache expiration #443

Closed godeamon closed 1 year ago

godeamon commented 1 year ago

dht 中 record 默认缓存时间为36h,xupercore中一直缓存,最终导致节点重启后,在网络中 SearchValue 失败,最终导致不能同步区块。本次将 xupercore 中缓存改为1h,每隔1h去网络中查询并更新一次。

codecov-commenter commented 1 year ago

Codecov Report

Merging #443 (ddd00d6) into master (af39eb9) will increase coverage by 0.00%. The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##           master     #443   +/-   ##
=======================================
  Coverage   45.06%   45.07%           
=======================================
  Files         145      145           
  Lines       12996    12996           
=======================================
+ Hits         5857     5858    +1     
+ Misses       5955     5954    -1     
  Partials     1184     1184           
Impacted Files Coverage Δ
bcs/network/p2pv2/client.go 52.54% <0.00%> (ø)
bcs/consensus/tdpos/common.go 52.17% <0.00%> (-2.90%) :arrow_down:
bcs/network/p2pv1/server.go 55.78% <0.00%> (-1.37%) :arrow_down:
bcs/consensus/tdpos/tdpos.go 46.94% <0.00%> (-0.94%) :arrow_down:
bcs/ledger/xledger/tx/mempool.go 42.06% <0.00%> (-0.28%) :arrow_down:
bcs/contract/xvm/code_manager.go 66.36% <0.00%> (+2.72%) :arrow_up:
bcs/network/p2pv1/conn.go 61.22% <0.00%> (+6.12%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more