Repository navigation
v4.4: Refactor - Move ComputeMeter from InvokeContext to TransactionContext (backport of #15818) - #15919
Conversation
|
Cherry-pick of 75dd3a2 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
The Firedancer team maintains a line-for-line reimplementation of the |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v4.4 #15919 +/- ##
=========================================
- Coverage 82.4% 82.4% -0.1%
=========================================
Files 934 934
Lines 372021 371928 -93
=========================================
- Hits 306697 306559 -138
- Misses 65324 65369 +45 🚀 New features to boost your workflow:
|
buffalojoec
left a comment
There was a problem hiding this comment.
LGTM, let's just make sure we really need it backported first.
Problem
Summary of Changes
ComputeMeterstruct from the program-runtime crate into the transaction-context crate.ComputeMeterbecomes a constructor parameter ofTransactionContext(instead ofInvokeContext).DEFAULT_INSTRUCTION_COMPUTE_UNIT_LIMITto the transaction-context crate, too.InvokeContext::consume()InvokeContext::consume_checked()InvokeContext::get_remaining()InvokeContext::mock_set_remaining()Testing
This is pure code movement, no tests had to be adjusted.
This is an automatic backport of pull request #15818 done by Mergify.