The XRP Ledger's official repository has received a proposed fix addressing a bug in order-book behavior related to transaction failures marked as "tec" errors, where transaction processing is rolled back.
How the Bug Affects Traders
Under certain circumstances, trading offers can be removed when a tec failure occurs, despite the transaction that triggered the failure never succeeding. This creates two problematic scenarios: a trader could have an existing offer removed before adding a replacement if they lack sufficient reserve for a new offer, or complex transaction flows could temporarily leave an offer unfunded, only to have it removed even though the triggering transaction failed.
The Proposed Solution
The fix modifies how rippled (the XRP Ledger software) handles offer removals upon tec failures. Previously, removal was attempted for certain tec error codes but not others, with additional restrictions around flow-related removals. The new approach attempts to remove offers marked for removal whenever a tec failure occurs, while ensuring that offers owned by the transaction initiator will be skipped if they have already expired.
This change aims to make offer additions and removals more consistent, reducing confusing trade outcomes for users.
Scope and Impact
The fix primarily affects traders using decentralized exchanges and those executing complex, routed, fill-or-kill, or self-crossing orders. Regular XRP account sends and balances remain unaffected, and no API changes are proposed.
The change does not affect XRP supply, transaction fees, transaction capacity, or the broader XRPL ecosystem, and is unlikely to impact XRP price movements.


