feat: add transaction context crate - #19
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
8f1a777 to
ccac233
Compare
ccac233 to
c4029f9
Compare
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Free Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. Comment |
c4029f9 to
e4a023f
Compare
27ca11d to
ff1197d
Compare
9f791a8 to
aab5a4e
Compare
7f5babf to
b1bb9fd
Compare
b1bb9fd to
f7c2bac
Compare
f7c2bac to
881f449
Compare
2bad847 to
a7a8ce1
Compare
881f449 to
59ad79e
Compare
16b19e7 to
6e052c1
Compare
801df8d to
f8d3173
Compare
f8d3173 to
0ef24b5
Compare
0ef24b5 to
a1c175f
Compare
a1c175f to
cd9fd68
Compare
3b5ca59 to
a87302d
Compare
cd9fd68 to
80378f1
Compare
80378f1 to
e041528
Compare
e041528 to
e7b59e5
Compare
e7b59e5 to
f78da53
Compare
700128f to
de564a1
Compare
f78da53 to
7125534
Compare
de564a1 to
acf36a7
Compare
7125534 to
2e0b538
Compare
acf36a7 to
e7813be
Compare

What changed
Customized the imported
solana-transaction-contextbaseline for the engine'saccount representation and patched the crate into the workspace.
Why
VM handlers need to remap account data on writes through a mapped region instead
of copying through a serialized input buffer.
Closes #10.
Impact
TransactionContext,InstructionContext, andTransactionAccountsaroundAccountRefandAccountRefMutviews.UnsafeCellbehind explicit borrow counters so borrows staylocal to the context.
through
ExecutionRecord.Reviewer notes
Borrow counters are released on drop; outstanding references must be gone before
a context is deconstructed. The mapped-account divergences are documented in
solana/README.md.Follow-up
program-runtimeandsvmconsume this customized context upstack.