upstream(core): Track and store unchanged loaded runtime objects - #12642
Closed
jkrvivian wants to merge 3 commits into
Closed
upstream(core): Track and store unchanged loaded runtime objects#12642jkrvivian wants to merge 3 commits into
jkrvivian wants to merge 3 commits into
Conversation
jkrvivian
force-pushed
the
core-protocol/upstream-1.57.3/89b03
branch
4 times, most recently
from
August 13, 2026 10:21
54c59f2 to
59b9da6
Compare
jkrvivian
marked this pull request as ready for review
August 13, 2026 10:21
jkrvivian
force-pushed
the
core-protocol/upstream-1.57.3/89b03
branch
from
August 13, 2026 12:00
59b9da6 to
b7194c1
Compare
bingyanglin
reviewed
Aug 14, 2026
jkrvivian
force-pushed
the
core-protocol/upstream-1.57.3/89b03
branch
from
August 14, 2026 13:47
b7194c1 to
b43a7db
Compare
jkrvivian
marked this pull request as draft
August 18, 2026 05:57
jkrvivian
force-pushed
the
core-protocol/upstream-1.57.3/89b03
branch
from
August 18, 2026 09:00
b43a7db to
443709a
Compare
12 tasks
Contributor
Author
|
Close bc we don't need to port the full feature to fix this issue. It'll be fixed in https://github.com/iotaledger/iota/pull/12698/changes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of change
This patch implements tracking of unchanged loaded runtime objects and
stores this information in the perpetual store. This is done so that we
can package up a checkpoint that includes full information necessary to
either perform any analysis based on the objects read or written by a
transaction or to efficiently replay a transaction without needing to
fetch any additional objects (except packages).
The tracking is done by wrapping the BackingStore that is provided to
the VM with one that tracks and saves all objects that were loaded
during execution. This is more accurate than the existing
"loaded_runtime_objects" structure returned from the execution layer
since it also will capture things like the coin deny list.
In addition to this a new
Checkpointstructure is introduced that isintended to eventually replace the existing
CheckpointDatastructure.This new type is intended to only be used in-memory (if you need a
persisted structure the proto version of the message should instead be
used) and it explicitly does not implement Serialize/Deserialize so that
it cannot be accidentally be persisted.
Links to any relevant issues
Fixes #12459
How the change has been tested
Not ported: client-facing gRPC exposure
effects.unchanged_loaded_runtime_objectsproto field inGetTransactionresponses, and checkpoint responses whoseobjectsare built from the new complete object set.iota-grpc-typesand ledger service changes (upstream got the field via asui-rust-sdkbump), so it is deferred to a follow-up. Until then the data is tracked and stored, but not served to clients.unchanged_loaded_runtime_objects.rs) asserts those gRPC fields, so it is deferred together with the exposure work.