mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-21 14:20:56 +00:00
The bound passed to the pseudo-account credential cleanup limits how many owner-directory entries the walk visits, not how many credentials it deletes: entries the walk leaves alone are charged against the same budget. Both comments claimed the latter, so say what the code actually does. Narrow the tecINCOMPLETE relaxation in the MPT issuance invariant to VaultDelete. That is the only transaction carrying the DestroyMptIssuance privilege that can return tecINCOMPLETE, and the comment above the branch already said as much, so the code now matches it and any future transaction with the same privilege stays under the strict rule. Rename removeExpiredCredentials to removeDeletedCredentials. It now also deletes credentials removed by a bounded cleanup rather than by expiry, which is the same reason removeDeletedTrustLines carries that name.