From 88a054a5475d662d89b67531c4286178c7367ee1 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Wed, 9 Jul 2025 03:47:23 +0200 Subject: [PATCH] fix lock handling --- src/ripple/ledger/View.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ripple/ledger/View.h b/src/ripple/ledger/View.h index 7fba2ac30..27659ad8d 100644 --- a/src/ripple/ledger/View.h +++ b/src/ripple/ledger/View.h @@ -670,9 +670,9 @@ trustTransferAllowed( uint32_t issuerFlags = sleIssuerAcc->getFieldU32(sfFlags); - // reject the creation of a locked balance (isLocking) if the + // reject the creation of a locked balance (lhLOCKING) if the // issuer has enabled clawback - if (isLocking && view.rules().enabled(featureClawback) && + if (lockHandling == lhLOCKING && view.rules().enabled(featureClawback) && issuerFlags & lsfAllowTrustLineClawback) return tecNO_PERMISSION;