-
Notifications
You must be signed in to change notification settings - Fork 176
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
Collect staged contracts from the storage itself #5659
Conversation
Co-authored-by: Giovanni Sanchez <108043524+sisyphusSmiling@users.noreply.github.com>
b1a5c34
to
a27ce3d
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.
Great work!
a609485
to
22c51a5
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!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #5659 +/- ##
==========================================================
+ Coverage 55.78% 59.79% +4.01%
==========================================================
Files 997 574 -423
Lines 98760 55629 -43131
==========================================================
- Hits 55094 33265 -21829
+ Misses 39400 19927 -19473
+ Partials 4266 2437 -1829
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
dc4806a
to
2f448fe
Compare
|
||
// Filter-in only the payloads belong to the staging account. | ||
stagingAccountPayloads := make([]*ledger.Payload, 0) | ||
for _, payload := range allPayloads { |
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.
It might be worth checking if allPayloads area already sorted at this point, that would speed up filtering the payloads.
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.
how can I check that?
045d6bc
to
3e4988f
Compare
@turbolent @janezpodhostnik can you maybe have a one last look, particularly the (last) commits: |
…ow-go into supun/staged-contracts
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.
👍
Work for onflow/cadence#3050
Assuming the state/storage that is currently being migrated also contains the staged contracts captured by the MigrationContractStaging, this change will read and collect those staged contracts from the storage itself, so they don't needs to be provided externally as a CSV file, etc.
The old way of providing the staged contracts externally/as an argument (as a CSV file) is still supported. The new approach comes into effect only if they are not externally provided.