02Sheet 02.03.121 · Entries

An operation whose source signer was removed earlier in the ledger fails opBAD_AUTH

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;…

FIG. · Where it sits · inside LedgerCloseMetaCAP-0046 · H-C16
OperationResult.opBAD_AUTH in a closed ledger: operation-source signer removed earlier in the ledger

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 key that signed for this transaction's operation source, so the transaction fails with txFAILED and the operation result opBAD_AUTH, while the transaction-level signature is still valid.

Variants

VariantProtocolNetworkSourceSizesha256
p30-mainnet-generatedP30mainnet passphrasegenerated by stellar-core v30.0.017,236 Bdbc26aa0d752…
p28-mainnet-generatedP28mainnet passphrasegenerated by stellar-core v30.0.017,228 Bb464fb610c5d…
p30-testnet-generatedP30testnet passphrasegenerated by stellar-core v30.0.017,132 B93d7ae80867e…
p28-testnet-generatedP28testnet passphrasegenerated by stellar-core v30.0.017,124 Be7e04e4b8cdf…

What a correct reader returns

A correct reader findsValueBacked by
The transaction fails with tx_failed / op_bad_auth although it was valid when submitted.
p30-mainnet-generated
[object Object]constructionsnapshotcorewalker
The transaction fails with tx_failed / op_bad_auth although it was valid when submitted.
p28-mainnet-generated
[object Object]constructionsnapshotcorewalker
The transaction fails with tx_failed / op_bad_auth although it was valid when submitted.
p30-testnet-generated
[object Object]constructionsnapshotcorewalker
The transaction fails with tx_failed / op_bad_auth although it was valid when submitted.
p28-testnet-generated
[object Object]constructionsnapshotcorewalker
The transaction that caused it is in the same ledger.
p30-mainnet-generated
some change where 1 fields matchconstructionsnapshotcorewalker
The transaction that caused it is in the same ledger.
p28-mainnet-generated
some change where 1 fields matchconstructionsnapshotcorewalker
The transaction that caused it is in the same ledger.
p30-testnet-generated
some change where 1 fields matchconstructionsnapshotcorewalker
The transaction that caused it is in the same ledger.
p28-testnet-generated
some change where 1 fields matchconstructionsnapshotcorewalker
The sequence number is consumed: the source account changes before apply.
p30-mainnet-generated
length 2snapshot
The sequence number is consumed: the source account changes before apply.
p28-mainnet-generated
length 2snapshot
The sequence number is consumed: the source account changes before apply.
p30-testnet-generated
length 2snapshot
The sequence number is consumed: the source account changes before apply.
p28-testnet-generated
length 2snapshot
No operation was applied: the operation meta is empty.
p30-mainnet-generated
length 0snapshot
No operation was applied: the operation meta is empty.
p28-mainnet-generated
length 0snapshot
No operation was applied: the operation meta is empty.
p30-testnet-generated
length 0snapshot
No operation was applied: the operation meta is empty.
p28-testnet-generated
length 0snapshot
The operation source is the account changed earlier in the ledger.
p30-mainnet-generated
GBXWDVNYC53G4ICXQ7QT2HRRUESCG2VR4RCZSTY75RIQLKXTQSELU4MHconstructionsnapshotcorewalker
The operation source is the account changed earlier in the ledger.
p28-mainnet-generated
GBXWDVNYC53G4ICXQ7QT2HRRUESCG2VR4RCZSTY75RIQLKXTQSELU4MHconstructionsnapshotcorewalker
The operation source is the account changed earlier in the ledger.
p30-testnet-generated
GBXWDVNYC53G4ICXQ7QT2HRRUESCG2VR4RCZSTY75RIQLKXTQSELU4MHconstructionsnapshotcorewalker
The operation source is the account changed earlier in the ledger.
p28-testnet-generated
GBXWDVNYC53G4ICXQ7QT2HRRUESCG2VR4RCZSTY75RIQLKXTQSELU4MHconstructionsnapshotcorewalker
The unused resource fee is refunded after apply (two changes on the fee source).
p30-mainnet-generated
length 2snapshot
The unused resource fee is refunded after apply (two changes on the fee source).
p28-mainnet-generated
length 2snapshot
The unused resource fee is refunded after apply (two changes on the fee source).
p30-testnet-generated
length 2snapshot
The unused resource fee is refunded after apply (two changes on the fee source).
p28-testnet-generated
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 op.apply-time.bad-auth · compiled from catalog/op.apply-time.bad-auth.json · entry.json

On this page