A failed 14-operation offer transaction with two failure codes and twelve successes that changed nothing
One transaction manages 14 offers. Operation 4 fails with not_found and operation 13 with underfunded; the other twelve report success, some with the offer deleted.
The shape
One transaction manages 14 offers. Operation 4 fails with not_found and operation 13 with underfunded; the other twelve report success, some with the offer deleted. The transaction failed, so none of it happened: the meta has no operation changes. Each operation still has its own result, including results evaluated after the first failure. Readers that take the first failing code as the only one, or that apply "success" results of a failed transaction, get both wrong.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p12-mainnet-mined-l26588352 | P12 | mainnet passphrase | mined from history | 887,884 B | 039ba91a4dfd… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| Operation 4 fails with not_found. | not_found | snapshotcorewalker |
| Operation 13 fails with underfunded. | underfunded | snapshotcorewalker |
| Operation 0 reports success with its offer deleted, in the failed transaction. | deleted | snapshotcorewalker |
| There are 14 operation results. | length 14 | snapshot |
| No operation meta is recorded for the failed transaction. | length 0 | snapshot |
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 failure.manage-offer.fourteen-ops-two-codes-p12 · compiled from catalog/failure.manage-offer.fourteen-ops-two-codes-p12.json · entry.json
MANAGE_DATA fails with MANAGE_DATA_NAME_NOT_FOUND
A transaction whose MANAGE_DATA 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.
MANAGE_SELL_OFFER fails with MANAGE_SELL_OFFER_BUY_NO_TRUST
A transaction whose MANAGE_SELL_OFFER 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.