mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
tryDirectApply returns an engaged optional whenever the fee bar was cleared, including when xrpl::apply() failed, so testing the optional labelled failures as applied. TxQ_test's fail-in-preclaim case hits exactly this: the fee clears the bar and preclaim then rejects with terINSUF_FEE_B. The stamp now branches on ApplyResult::applied. A failure reports failed rather than falling through to the default rejected, because rejected means the transaction got nowhere, while this one cleared the fee bar and ran through apply(). ter_code is recorded either way, so the failure is diagnosable. Both values already existed and are used the same way by the queued-apply path in this file, so the vocabulary is unchanged. The value set in the phase-3 task list is updated to match, including a ter_code row for txq.accept_tx that was already emitted but undocumented.