02Sheet 02.03.053 · Entries

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.

FIG. · Where it sits · inside LedgerCloseMetaCAP-0066 · H-D7
archivedSorobanEntries: restored then updated, same key, one operation

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

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.04,436 B338bc29b9196…
p28-mainnet-generatedP28mainnet passphrasegenerated by stellar-core v30.0.04,428 B00c3e09eeafc…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.04,436 Bb22cab97f29f…
p28-testnet-generatedP28testnet passphrasegenerated by stellar-core v30.0.04,428 B458615ed6ae5…

What a correct reader returns

A correct reader findsValueBacked by
The transaction marks readWrite index 0 as archived.
p30-mainnet-generated
0constructionsnapshotcorewalker
The transaction marks readWrite index 0 as archived.
p28-mainnet-generated
0constructionsnapshotcorewalker
The transaction marks readWrite index 0 as archived.
p30-testnet-generated
0constructionsnapshotcorewalker
The transaction marks readWrite index 0 as archived.
p28-testnet-generated
0constructionsnapshotcorewalker
archived_auto is restored.
p30-mainnet-generated
some change where 1 fields matchsnapshotcorewalker
archived_auto is restored.
p28-mainnet-generated
some change where 1 fields matchsnapshotcorewalker
archived_auto is restored.
p30-testnet-generated
some change where 1 fields matchsnapshotcorewalker
archived_auto is restored.
p28-testnet-generated
some change where 1 fields matchsnapshotcorewalker
and updated to 11 in the same operation.
p30-mainnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
and updated to 11 in the same operation.
p28-mainnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
and updated to 11 in the same operation.
p30-testnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
and updated to 11 in the same operation.
p28-testnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker

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 walker

Entry id archival.automatic-restore · compiled from catalog/archival.automatic-restore.json · entry.json

On this page