02Sheet 02.03.191 · Entries

SET_TRUST_LINE_FLAGS fails with SET_TRUST_LINE_FLAGS_NO_TRUST_LINE

A transaction whose SET_TRUST_LINE_FLAGS operation fails at apply is still written into the closed ledger: its fee is charged, its sequence number is consumed, and none of its operations change state.

FIG. · Where it sits · inside LedgerCloseMetaCAP-0035 · H-C1
OperationResult.set_trust_line_flags.no_trust_line in a closed ledger

The shape

A transaction whose SET_TRUST_LINE_FLAGS operation fails at apply is still written into the closed ledger: its fee is charged, its sequence number is consumed, and none of its operations change state. The result carries the operation's result code (no_trust_line). Readers that skip failed transactions lose the fee and sequence change; readers that assume a failed transaction changed something record effects that never happened.

Variants

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.01,812 B19066971e8a5…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.01,812 Bff7053dc1b19…

What a correct reader returns

A correct reader findsValueBacked by
The operation fails with no_trust_line.no_trust_lineconstructionsnapshotcorewalker
No operation changed state: the operation meta is empty.length 0snapshot
The sequence number is still consumed: the source account changes before apply (state, updated).length 2snapshot
The fee is still charged: the fee source changes in fee processing.length 2snapshot

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 failure.set-trust-line-flags.no-trust-line · compiled from catalog/failure.set-trust-line-flags.no-trust-line.json · entry.json

On this page