Coin Brief ENDE

XLS-64.2 would stop XRPL transactions from leaving undeletable entries in pseudo-accounts

The XRPL Standards repository merged a draft amendment patch on 25 November that closes a class of problem rather than a single bug. XLS-64.2, written by Vytautas Vito Tumas of Ripple, adds an invariant under the fixCleanup3_5_0 amendment that limits what a pseudo-account may own.

Pseudo-accounts are the AccountRoot entries the ledger creates for objects such as an automated market maker, a single-asset Vault or a LoanBroker. They cannot sign transactions. That is the root of the issue the patch describes: an entry linked into a pseudo-account's owner directory can be removed only by the protocol that owns the pseudo-account. If a transaction links something else, for example a trust line or an offer the protocol does not manage, nothing can ever remove it. The entry pins the owner directory, and the AMM, Vault or LoanBroker that owns the pseudo-account can no longer be deleted.

With the amendment enabled, every transaction is checked. For each entry it adds to the owner directory of a pseudo-account, that entry must be one the specification of the owning object allows it to own; a pseudo-account kind whose specification lists nothing may own nothing, and the invariant also fails if the directory links an entry that does not exist. The lists themselves live in each object's own specification. A companion patch, XLS-30.1, gives the AMM's list: its AMM entry, its holding of each of the two pool assets, which is a RippleState for an issued currency or an MPToken for a multi-purpose token, and RippleState lines for its LP token in which the pseudo-account is one side. XRP has no holding entry. The Vault and LoanBroker lists are referenced from XLS-65.6 and XLS-66.6.

XLS-64.2 would stop XRPL transactions from leaving undeletable entries in pseudo-accounts
XLS-64.2 would stop XRPL transactions from leaving undeletable entries in pseudo-accounts — Coin Brief

Two design choices keep the change contained. The invariant checks only entries the transaction adds, so its cost scales with the transaction's own changes rather than the size of the directory, and entries created before activation are left alone. And because each object's list sits in its own specification, a later change, such as a new holding type, changes only that document.

The compatibility note is plain. No transaction changes, but a transaction that previously succeeded by linking a foreign entry into a pseudo-account's directory will fail the invariant once the amendment is enabled. The security section states the trade directly: without the invariant, any path that links a foreign entry leaves permanent ledger state that blocks deletion; with it, that path becomes a failed transaction.

The AMM patch also names its own risk. Its list must include every entry the AMM transactions link into the directory, because an entry missing from it would make a valid AMM transaction fail. Both documents are drafts, dated 25 November.

Written by Victoria Shinder.