Developers of the XRP Ledger have received a proposed fix aimed at a transaction-processing bug that can unexpectedly remove offers from the decentralized exchange order book after failed transactions, according to the official XRP Ledger repository account cited in reporting on the change.
Sources: u.today
The issue concerns order-book behavior around so-called “tec” failures, which are failures where transaction processing is rolled back. In some circumstances, offers can be removed when a tec failure occurs even though the transaction that triggered it never succeeded.
How the bug can affect traders
One scenario described in the reporting involves a trader whose existing offer is removed before they are able to add a replacement, for instance if they do not have enough reserve to add a new offer. In another, a more complicated Flow could temporarily leave an offer unfunded, only to have funds restored if a subsequent step fails, again resulting in an offer being removed even though the transaction that triggered it failed.
To address the issue, rippled will attempt to remove offers that were marked for removal upon tec failure any time a tec failure occurs. Previously, this was attempted for certain tec error codes but not others, with some additional restrictions around Flow-related offer removals. Under the proposal, an offer will only be marked for removal if the owner’s balance has not changed in any relevant ways during the course of the Flow.
Scope of the proposed change
Offers that have already expired can still be removed, but offers owned by the transactor will be skipped. The reporting describes this as a best effort to make sure offers are consistently added and removed from the order book and to reduce confusing trade results.
Offers to and from regular XRP accounts and balances, as well as XRP sends, are unaffected, and there are no proposed API changes. The change does not alter XRP supply, fees or transaction capacity, and the reporting states it is unlikely to have any effect on XRPL usage or XRP price, other than possibly making XRPL trading more appealing to traders. The change would mostly affect traders using decentralized exchanges.