Skip to content

XLS-0085: align MPT lock error code with implementation (tecFROZEN -> tecLOCKED) - #601

Open
Krypto-Whitehat wants to merge 1 commit into
XRPLF:masterfrom
Krypto-Whitehat:fix-xls85-mpt-tecLOCKED
Open

XLS-0085: align MPT lock error code with implementation (tecFROZEN -> tecLOCKED)#601
Krypto-Whitehat wants to merge 1 commit into
XRPLF:masterfrom
Krypto-Whitehat:fix-xls85-mpt-tecLOCKED

Conversation

@Krypto-Whitehat

Copy link
Copy Markdown

Documentation only change for XLS-0085 (Token Escrow, status Final).

The spec currently says EscrowCreate and EscrowFinish fail with tecFROZEN when an MPT is locked, but the rippled implementation returns tecLOCKED in those cases. tecLOCKED is the consistent codebase wide convention for locked MPTs (see TokenHelpers.cpp, which branches asset.holds<MPTIssue>() ? tecLOCKED : tecFROZEN, plus the payment, check and escrow paths).

This PR aligns the two affected failure condition entries with the implementation:

  • EscrowCreate, "Source Account is Frozen or Token is Locked": split into the IOU case (tecFROZEN) and the MPT lock case (tecLOCKED)
  • EscrowFinish, MPT "Lock Conditions (Equivalent to Deep Freeze)": tecFROZEN -> tecLOCKED

Happy to close this if maintainers prefer changing the code side instead; the linked issue tracks that question.

Fixes #600

… tecLOCKED)

EscrowCreate and EscrowFinish return tecLOCKED for locked MPTs in rippled,
matching the codebase wide IOU->tecFROZEN / MPT->tecLOCKED convention
(see TokenHelpers.cpp). Doc only change. Fixes XRPLF#600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

XLS-0085 (Final): spec says tecFROZEN for locked MPT in EscrowCreate/EscrowFinish, implementation returns tecLOCKED

1 participant