02Sheet 02.03.131 · Entries

A Soroban transaction fails txNO_ACCOUNT at apply and its fee is never refunded

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 · H-C13
TransactionResult.txNO_ACCOUNT in a closed ledger: source merged earlier in the ledger
Soroban fee source merged before the refund: fee_charged is the full maximum, no refund change or event

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 merges the source account after its fee was charged, so this Soroban transaction fails with txNO_ACCOUNT. The refund has nowhere to go: there is no post-apply fee change and no refund event, and fee_charged is the full declared maximum (TransactionFrame.cpp:998-1001). Readers that compute the fee as charge minus refund, or expect a refund for every Soroban transaction, get it wrong.

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_no_account although it was valid when submitted.
p30-mainnet-generated
tx_no_accountconstructionsnapshotcorewalker
The transaction fails with tx_no_account although it was valid when submitted.
p28-mainnet-generated
tx_no_accountconstructionsnapshotcorewalker
The transaction fails with tx_no_account although it was valid when submitted.
p30-testnet-generated
tx_no_accountconstructionsnapshotcorewalker
The transaction fails with tx_no_account although it was valid when submitted.
p28-testnet-generated
tx_no_accountconstructionsnapshotcorewalker
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 not consumed: no change before apply.
p30-mainnet-generated
length 0snapshot
The sequence number is not consumed: no change before apply.
p28-mainnet-generated
length 0snapshot
The sequence number is not consumed: no change before apply.
p30-testnet-generated
length 0snapshot
The sequence number is not consumed: no change before apply.
p28-testnet-generated
length 0snapshot
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 transaction source is the account changed earlier in the ledger.
p30-mainnet-generated
GDPTVINFP7QFK2MM7ECSZY6DTOBOTVSV45GDHKAQKYCUBMN7SDU5SIVCconstructionsnapshotcorewalker
The transaction source is the account changed earlier in the ledger.
p28-mainnet-generated
GDPTVINFP7QFK2MM7ECSZY6DTOBOTVSV45GDHKAQKYCUBMN7SDU5SIVCconstructionsnapshotcorewalker
The transaction source is the account changed earlier in the ledger.
p30-testnet-generated
GDPTVINFP7QFK2MM7ECSZY6DTOBOTVSV45GDHKAQKYCUBMN7SDU5SIVCconstructionsnapshotcorewalker
The transaction source is the account changed earlier in the ledger.
p28-testnet-generated
GDPTVINFP7QFK2MM7ECSZY6DTOBOTVSV45GDHKAQKYCUBMN7SDU5SIVCconstructionsnapshotcorewalker
No refund: there is no post-apply fee processing.
p30-mainnet-generated
length 0snapshot
No refund: there is no post-apply fee processing.
p28-mainnet-generated
length 0snapshot
No refund: there is no post-apply fee processing.
p30-testnet-generated
length 0snapshot
No refund: there is no post-apply fee processing.
p28-testnet-generated
length 0snapshot
fee_charged is the full declared maximum: 100 stroops inclusion plus the whole 100,000,000-stroop resource fee.
p30-mainnet-generated
100000100constructionsnapshotcorewalker
fee_charged is the full declared maximum: 100 stroops inclusion plus the whole 100,000,000-stroop resource fee.
p28-mainnet-generated
100000100constructionsnapshotcorewalker
fee_charged is the full declared maximum: 100 stroops inclusion plus the whole 100,000,000-stroop resource fee.
p30-testnet-generated
100000100constructionsnapshotcorewalker
fee_charged is the full declared maximum: 100 stroops inclusion plus the whole 100,000,000-stroop resource fee.
p28-testnet-generated
100000100constructionsnapshotcorewalker

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 tx.apply-time.no-account-fee-not-refunded · compiled from catalog/tx.apply-time.no-account-fee-not-refunded.json · entry.json

On this page