-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add verification tool for evm offchain replay #6755
base: leo/add-testcase-for-offchain-evm-backward-compatibilities
Are you sure you want to change the base?
Add verification tool for evm offchain replay #6755
Conversation
* Added websocket controller * Added mock block provider * Added data provider factory * Added websocket handler * Added websocket config * Added a tiny POC test for websocket handler
* Use contexts as function arguments * Move models to folder for consistency * Change parse msg function * Simplify mock block provider to remove dedlock
* make handle_connection blocking * rename concurrent_map * use type switch instead of switch * add todos for error handling
update height in comment
…handler [Access] Add new websocket handler and skeleton for its deps
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## leo/add-testcase-for-offchain-evm-backward-compatibilities #6755 +/- ##
==============================================================================================
+ Coverage 41.23% 41.34% +0.10%
==============================================================================================
Files 2054 1966 -88
Lines 182383 173879 -8504
==============================================================================================
- Hits 75212 71888 -3324
+ Misses 100869 95958 -4911
+ Partials 6302 6033 -269
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
103f257
to
d379a68
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
return nil | ||
} | ||
|
||
func parseEVMEvents(evts flow.EventsList) (*events.BlockEventPayload, []events.TransactionEventPayload, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not seem to handle the case where there was a period that did not have blocks executed events, but did have transaction executed.
The solution is to accumulate the transaction executed events, until you hit the next block executed event.
return nil | ||
} | ||
|
||
func initStorages(chainID flow.ChainID, dataDir string, executionDataDir string) ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chain ID is not needed
6b36eb7
to
c43fc02
Compare
Add offchain block context creation method
8f6ed3b
to
5db925d
Compare
4fe749e
to
27c0f3a
Compare
a725780
to
f564161
Compare
27c0f3a
to
0cfcb7d
Compare
This PR adds a util cmd for verifying the evm offchain replay