Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Export EVM State and Compare State Diff #6760

Merged
merged 47 commits into from
Dec 5, 2024

Conversation

zhangchiqing
Copy link
Member

@zhangchiqing zhangchiqing commented Nov 25, 2024

work towards: onflow/flow-evm-gateway#720

This PR refactors the EVM state exporting and importing as well as comparing the EVM state diff.

@zhangchiqing zhangchiqing changed the base branch from leo/add-verify-evm-offchain-replay to master November 26, 2024 21:00
@zhangchiqing zhangchiqing force-pushed the leo/export-evm-state-from-gobs branch from 0cfb7f5 to ce205ac Compare November 27, 2024 00:47
@zhangchiqing zhangchiqing changed the base branch from master to leo/add-verify-evm-offchain-replay November 27, 2024 00:47
@codecov-commenter
Copy link

codecov-commenter commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 1.03093% with 288 lines in your changes missing coverage. Please review.

Project coverage is 40.98%. Comparing base (b4dac1e) to head (00ca5fc).

Files with missing lines Patch % Lines
fvm/evm/emulator/state/importer.go 0.00% 88 Missing ⚠️
fvm/evm/emulator/state/diff.go 0.00% 64 Missing ⚠️
fvm/evm/emulator/state/extract.go 0.00% 56 Missing ⚠️
cmd/util/cmd/export-evm-state/cmd.go 0.00% 41 Missing ⚠️
fvm/evm/emulator/state/exporter.go 0.00% 34 Missing ⚠️
fvm/evm/emulator/state/base.go 16.66% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6760      +/-   ##
==========================================
- Coverage   41.04%   40.98%   -0.07%     
==========================================
  Files        2076     2079       +3     
  Lines      183653   183922     +269     
==========================================
- Hits        75387    75379       -8     
- Misses     101965   102243     +278     
+ Partials     6301     6300       -1     
Flag Coverage Δ
unittests 40.98% <1.03%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhangchiqing zhangchiqing force-pushed the leo/export-evm-state-from-gobs branch from ce205ac to 9765935 Compare November 27, 2024 00:56
@zhangchiqing zhangchiqing marked this pull request as ready for review November 27, 2024 00:56
@zhangchiqing zhangchiqing force-pushed the leo/export-evm-state-from-gobs branch from d49ee00 to be99b16 Compare November 27, 2024 06:50
@zhangchiqing zhangchiqing force-pushed the leo/export-evm-state-from-gobs branch from b34650d to cf32688 Compare November 27, 2024 14:44
// Testnet51 - Height Coordinated Upgrade 1
// Flow Block: 212562161 1a520608c5457f228405c4c30fc39c8a0af7cf915fb2ede7ec5ccffc2a000f57
// PR: https://github.com/onflow/flow-go/pull/6380
const coinbaseAddressChangeEVMHeightTestnet = 1385491
const coinbaseAddressChangeEVMHeightTestnet = 1385490
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this now the correct height?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes.

Comment on lines 86 to 89
// Testnet52 - Spork
// Flow Block: 218215350 cc7188f0bdac4c442cc3ee072557d7f7c8ca4462537da945b148d5d0efa7a1ff
// PR: https://github.com/onflow/flow-go/pull/6377
// const blockHashListBugIntroducedHCUEVMHeightTestnet = 7038679
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we just delete this

@zhangchiqing zhangchiqing force-pushed the leo/add-verify-evm-offchain-replay branch from 556d903 to 1bdc486 Compare December 2, 2024 22:34
Base automatically changed from leo/add-verify-evm-offchain-replay to master December 2, 2024 23:54
@zhangchiqing zhangchiqing force-pushed the leo/export-evm-state-from-gobs branch from be05483 to 2d4bb10 Compare December 5, 2024 16:11
@zhangchiqing zhangchiqing added this pull request to the merge queue Dec 5, 2024
Merged via the queue into master with commit 025e12b Dec 5, 2024
55 checks passed
@zhangchiqing zhangchiqing deleted the leo/export-evm-state-from-gobs branch December 5, 2024 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants