-
Notifications
You must be signed in to change notification settings - Fork 180
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 the remote debugger and add support for using the execution data API #6929
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6929 +/- ##
==========================================
- Coverage 41.08% 41.06% -0.03%
==========================================
Files 2119 2120 +1
Lines 185893 186100 +207
==========================================
+ Hits 76383 76426 +43
- Misses 103105 103261 +156
- Partials 6405 6413 +8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
though the blocks are unavailable, the block header is provided. this allows us to at least to provide the current block info
if info.blocks == nil { | ||
return runtime.Block{}, false, errors.NewOperationNotSupportedError( | ||
"GetBlockAtHeight") | ||
} | ||
|
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.
Move this check after the use of info.blockHeader
, which is set in the remote debugger
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.
Thank you for the new feature and the cleanup!
} | ||
} | ||
|
||
func sortRegisters(registerIDs []flow.RegisterID) { |
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.
Note (for future expansion): I actually often find it most useful to have the registers sorted in read order for debugging. However currently that ordering is lost because we put the reads in a map.
@janezpodhostnik Added support for running "mid-block" transactions in 15f26d2. Can you please take another look and let me know if that looks right? Thanks! |
getCurrentBlock()
calls