02Sheet 02.03.179 · Entries

PAYMENT fails with PAYMENT_LINE_FULL although the trustline has room: buying liabilities reserve it

A transaction whose PAYMENT 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 LedgerCloseMetapre-cap · CAP-0003 · H-C1 · H-C17
OperationResult.payment.line_full in a closed ledger
PAYMENT_LINE_FULL with limit 100 and balance 0: 90 of the limit is buying liabilities

The shape

A transaction whose PAYMENT 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 (line_full). Readers that skip failed transactions lose the fee and sequence change; readers that assume a failed transaction changed something record effects that never happened. The trustline limit is 100 and the balance 0, but an offer buying 90 reserves the room: receiving 11 fails.

Variants

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.02,908 B1fe54eff6d73…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.02,908 Bb2019fd2bf58…

What a correct reader returns

A correct reader findsValueBacked by
The operation fails with line_full.line_fullconstructionsnapshotcorewalker
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.payment.line-full-by-buying-liabilities · compiled from catalog/failure.payment.line-full-by-buying-liabilities.json · entry.json

On this page