XRPLF / rippled

Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger protocol in C++
https://xrpl.org
ISC License
4.48k stars 1.45k forks source link

Cannot cash a Check from issuer if trustline is frozen (Version: 2.1.1) #4978

Open tequdev opened 2 months ago

tequdev commented 2 months ago

Issue Description

If the trustline is frozen, the account cannot Cash the Check created by the token Issuer.

As with Payments, there should be no checks on freezing in transactions with the issuer.

(Since there are very few users of Checks, there is no need for a priority fix.)

Steps to Reproduce

  1. Issuer creates check to alice.
  2. Issuer freezes the trusline with alice.
  3. Alice cashes the check.

Expected Result

Transaction succeeds

Actual Result

Transaction failed in tecFROZEN.

Supporting Files

https://gist.github.com/tequdev/ee649229cadad1bf770e55820f3de013

https://devnet.xrpl.org/transactions/D5257EB8398599D549DE340EFFABD14B6279204D50468CEE399A80A73988CCC1

mvadari commented 2 months ago

Isn't this expected/desired behavior? The frozenness of the trustline should be checked at cashing time, not creation time.