02Sheet 02.03.042 · Entries

One contract, one key, persistent and temporary: two different entries

put_all("dup") writes the same key in persistent and temporary storage and in instance storage.

FIG. · Where it sits · inside LedgerCloseMetaCAP-0046 · H-D10
two ContractData entries differing only by durability; the same key in instance storage

The shape

put_all("dup") writes the same key in persistent and temporary storage and in instance storage. Contract-data identity is (contract, key, durability): the two created entries are distinct. Readers keyed by (contract, key) merge them.

Variants

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.0
change order varies: 9 orderings in 20 runs
5,496 B2a59a9ef0a8c…
p28-mainnet-generatedP28mainnet passphrasegenerated by stellar-core v30.0.0
change order varies: 2 orderings in 2 runs
5,488 Bfbb943eb46fe…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.0
change order varies: 2 orderings in 2 runs
5,496 B224d4ba6aaa6…
p28-testnet-generatedP28testnet passphrasegenerated by stellar-core v30.0.0
change order varies: 2 orderings in 2 runs
5,488 B90c2d3912c0b…

What a correct reader returns

A correct reader findsValueBacked by
A persistent entry "dup" is created.
p30-mainnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
A persistent entry "dup" is created.
p28-mainnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
A persistent entry "dup" is created.
p30-testnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
A persistent entry "dup" is created.
p28-testnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
A temporary entry "dup" is created.
p30-mainnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
A temporary entry "dup" is created.
p28-mainnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
A temporary entry "dup" is created.
p30-testnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
A temporary entry "dup" is created.
p28-testnet-generated
some change where 2 fields matchconstructionsnapshotcorewalker
The instance is updated (instance storage).
p30-mainnet-generated
some change where 1 fields matchsnapshotcorewalker
The instance is updated (instance storage).
p28-mainnet-generated
some change where 1 fields matchsnapshotcorewalker
The instance is updated (instance storage).
p30-testnet-generated
some change where 1 fields matchsnapshotcorewalker
The instance is updated (instance storage).
p28-testnet-generated
some change where 1 fields matchsnapshotcorewalker

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 contract-data.one-key-two-durabilities · compiled from catalog/contract-data.one-key-two-durabilities.json · entry.json

On this page