A contract call restores an archived entry and overwrites it in one operation
SorobanTransactionDataExt v1 marks readWrite[0] archived: the call restores it (restored changes for the entry and its TTL) and then updates it.
The shape
SorobanTransactionDataExt v1 marks readWrite[0] archived: the call restores it (restored changes for the entry and its TTL) and then updates it. Readers that expect one change per key, or no restored type in an invoke, get it wrong.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 4,436 B | 338bc29b9196… |
p28-mainnet-generated | P28 | mainnet passphrase | generated by stellar-core v30.0.0 | 4,428 B | 00c3e09eeafc… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 4,436 B | b22cab97f29f… |
p28-testnet-generated | P28 | testnet passphrase | generated by stellar-core v30.0.0 | 4,428 B | 458615ed6ae5… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The transaction marks readWrite index 0 as archived. p30-mainnet-generated | 0 | constructionsnapshotcorewalker |
| The transaction marks readWrite index 0 as archived. p28-mainnet-generated | 0 | constructionsnapshotcorewalker |
| The transaction marks readWrite index 0 as archived. p30-testnet-generated | 0 | constructionsnapshotcorewalker |
| The transaction marks readWrite index 0 as archived. p28-testnet-generated | 0 | constructionsnapshotcorewalker |
| archived_auto is restored. p30-mainnet-generated | some change where 1 fields match | snapshotcorewalker |
| archived_auto is restored. p28-mainnet-generated | some change where 1 fields match | snapshotcorewalker |
| archived_auto is restored. p30-testnet-generated | some change where 1 fields match | snapshotcorewalker |
| archived_auto is restored. p28-testnet-generated | some change where 1 fields match | snapshotcorewalker |
| and updated to 11 in the same operation. p30-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| and updated to 11 in the same operation. p28-mainnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| and updated to 11 in the same operation. p30-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
| and updated to 11 in the same operation. p28-testnet-generated | some change where 2 fields match | constructionsnapshotcorewalker |
Check it yourself
make verify # schema, hashes, the byte-for-byte round trip and every fact above
make oracle # the facts' values, re-read by stellar-core and the schema walkerEntry id archival.automatic-restore · compiled from catalog/archival.automatic-restore.json · entry.json
RESTORE_FOOTPRINT on a live entry succeeds and changes nothing
Restoring an entry that is not archived is a success with no change.
Persistent entries evicted with no transaction
minPersistentTTL ledgers after creation, the eviction scan moves three persistent entries to the hot archive: they leave the live state in evicted_keys, with no transaction touching them.