A transaction valid at submission fails txBAD_AUTH at apply
Core applies a ledger's classic phase before its Soroban phase and re-checks the source account, sequence number, signatures and sequence-age preconditions at apply (TransactionFrame::commonValid;…
The shape
Core applies a ledger's classic phase before its Soroban phase and re-checks the source account, sequence number, signatures and sequence-age preconditions at apply (TransactionFrame::commonValid; OperationFrame::checkSignature with forApply). Here a classic transaction earlier in the same ledger removes the only signer that signed this transaction, so it fails with txBAD_AUTH. Its sequence number is consumed and its fee charged.
Variants
| Variant | Protocol | Network | Source | Size | sha256 |
|---|---|---|---|---|---|
p30-mainnet-generated | P30 | mainnet passphrase | generated by stellar-core v30.0.0 | 17,236 B | dbc26aa0d752… |
p28-mainnet-generated | P28 | mainnet passphrase | generated by stellar-core v30.0.0 | 17,228 B | b464fb610c5d… |
p30-testnet-generated | P30 | testnet passphrase | generated by stellar-core v30.0.0 | 17,132 B | 93d7ae80867e… |
p28-testnet-generated | P28 | testnet passphrase | generated by stellar-core v30.0.0 | 17,124 B | e7e04e4b8cdf… |
What a correct reader returns
| A correct reader finds | Value | Backed by |
|---|---|---|
| The transaction fails with tx_bad_auth although it was valid when submitted. p30-mainnet-generated | tx_bad_auth | constructionsnapshotcorewalker |
| The transaction fails with tx_bad_auth although it was valid when submitted. p28-mainnet-generated | tx_bad_auth | constructionsnapshotcorewalker |
| The transaction fails with tx_bad_auth although it was valid when submitted. p30-testnet-generated | tx_bad_auth | constructionsnapshotcorewalker |
| The transaction fails with tx_bad_auth although it was valid when submitted. p28-testnet-generated | tx_bad_auth | constructionsnapshotcorewalker |
| The transaction that caused it is in the same ledger. p30-mainnet-generated | some change where 1 fields match | constructionsnapshotcorewalker |
| The transaction that caused it is in the same ledger. p28-mainnet-generated | some change where 1 fields match | constructionsnapshotcorewalker |
| The transaction that caused it is in the same ledger. p30-testnet-generated | some change where 1 fields match | constructionsnapshotcorewalker |
| The transaction that caused it is in the same ledger. p28-testnet-generated | some change where 1 fields match | constructionsnapshotcorewalker |
| The sequence number is consumed: the source account changes before apply. p30-mainnet-generated | length 2 | snapshot |
| The sequence number is consumed: the source account changes before apply. p28-mainnet-generated | length 2 | snapshot |
| The sequence number is consumed: the source account changes before apply. p30-testnet-generated | length 2 | snapshot |
| The sequence number is consumed: the source account changes before apply. p28-testnet-generated | length 2 | snapshot |
| No operation was applied: the operation meta is empty. p30-mainnet-generated | length 0 | snapshot |
| No operation was applied: the operation meta is empty. p28-mainnet-generated | length 0 | snapshot |
| No operation was applied: the operation meta is empty. p30-testnet-generated | length 0 | snapshot |
| No operation was applied: the operation meta is empty. p28-testnet-generated | length 0 | snapshot |
| The transaction source is the account changed earlier in the ledger. p30-mainnet-generated | GDNMEOL6A5B7NRAVZF42QDRE5U5JH3CTW67LQ2AXXU73LO2TIEENSQZJ | constructionsnapshotcorewalker |
| The transaction source is the account changed earlier in the ledger. p28-mainnet-generated | GDNMEOL6A5B7NRAVZF42QDRE5U5JH3CTW67LQ2AXXU73LO2TIEENSQZJ | constructionsnapshotcorewalker |
| The transaction source is the account changed earlier in the ledger. p30-testnet-generated | GDNMEOL6A5B7NRAVZF42QDRE5U5JH3CTW67LQ2AXXU73LO2TIEENSQZJ | constructionsnapshotcorewalker |
| The transaction source is the account changed earlier in the ledger. p28-testnet-generated | GDNMEOL6A5B7NRAVZF42QDRE5U5JH3CTW67LQ2AXXU73LO2TIEENSQZJ | constructionsnapshotcorewalker |
| The unused resource fee is refunded after apply (two changes on the fee source). p30-mainnet-generated | length 2 | snapshot |
| The unused resource fee is refunded after apply (two changes on the fee source). p28-mainnet-generated | length 2 | snapshot |
| The unused resource fee is refunded after apply (two changes on the fee source). p30-testnet-generated | length 2 | snapshot |
| The unused resource fee is refunded after apply (two changes on the fee source). p28-testnet-generated | length 2 | 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 tx.apply-time.bad-auth · compiled from catalog/tx.apply-time.bad-auth.json · entry.json
A mainnet contract event whose data is a deeply nested ScVal
A DeFi vault event carries nested maps and vectors in its data: readers with shallow ScVal handling truncate it.
A transaction with minSeqLedgerGap fails at apply after a bump-to-0 in the same ledger
Core applies a ledger's classic phase before its Soroban phase and re-checks the source account, sequence number, signatures and sequence-age preconditions at apply (TransactionFrame::commonValid;…