plugin icon indicating copy to clipboard operation
plugin copied to clipboard

zksync回滚机制优化

Open mdj33 opened this issue 3 years ago • 1 comments

当L2的proof在L1验证失败无法fix时候需要采用回滚机制。

  1. 支持pause机制,在relayer监测到L2 deposit和L1不一致时候,尽快设置L2 pause 禁止各种操作,检查无误后恢复
  2. 支持设置exodus模式和exodus回滚,只会回滚和L1相关的operation,然后构建逃生舱证明,从L1退出

mdj33 avatar Nov 28 '22 06:11 mdj33

Codecov Report

Base: 49.73% // Head: 48.10% // Decreases project coverage by -1.63% :warning:

Coverage data is based on head (b5acd91) compared to base (9d12d31). Patch coverage: 20.56% of modified lines in pull request are covered.

:exclamation: Current head b5acd91 differs from pull request most recent head 56be05a. Consider uploading reports for the commit 56be05a to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1235      +/-   ##
==========================================
- Coverage   49.73%   48.10%   -1.64%     
==========================================
  Files         218      221       +3     
  Lines       40325    42460    +2135     
==========================================
+ Hits        20057    20425     +368     
- Misses      18397    20146    +1749     
- Partials     1871     1889      +18     
Impacted Files Coverage Δ
plugin/dapp/zksync/executor/query.go 1.71% <0.00%> (-0.28%) :arrow_down:
plugin/dapp/zksync/executor/tables.go 22.07% <0.00%> (+2.88%) :arrow_up:
plugin/dapp/zksync/executor/zkproof.go 2.96% <0.00%> (+0.18%) :arrow_up:
plugin/dapp/zksync/executor/zkproofhistory.go 0.00% <0.00%> (ø)
plugin/dapp/zksync/types/receipt4l2.pb.go 13.12% <ø> (ø)
plugin/dapp/zksync/types/witness.pb.go 2.10% <ø> (-0.16%) :arrow_down:
plugin/dapp/zksync/types/zksync.go 10.52% <ø> (ø)
plugin/dapp/zksync/types/zksync.pb.go 1.47% <ø> (+0.03%) :arrow_up:
plugin/dapp/zksync/wallet/utils.go 5.57% <0.00%> (ø)
plugin/dapp/zksync/executor/util.go 10.65% <10.65%> (ø)
... and 19 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov[bot] avatar Nov 28 '22 07:11 codecov[bot]

:tada: This PR is included in version 1.67.5 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

33cn avatar Jan 16 '23 07:01 33cn