Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dangell7 committed Oct 4, 2023
1 parent 4947453 commit 016dce8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/ripple/app/tx/impl/SetTrust.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,19 @@ SetTrust::preclaim(PreclaimContext const& ctx)
auto const sleDst = ctx.view.read(keylet::account(uDstAccountID));

// If the destination has opted to disallow incoming trustlines
// then honour that flag ONLY if the trustline doesn't exist
// then honour that flag
if (ctx.view.rules().enabled(featureDisallowIncoming))
{
if (!sleDst)
return tecNO_DST;

if (sleDst->getFlags() & lsfDisallowIncomingTrustline)
{
// The original implementation of featureDisallowIncoming was
// too restrictive. If
// o fixDisallowIncomingV1 is enabled and
// o The trust line already exists
// Then allow the TrustSet.
if (ctx.view.rules().enabled(fixDisallowIncomingV1) &&
ctx.view.exists(keylet::line(id, uDstAccountID, currency)))
{
Expand Down

0 comments on commit 016dce8

Please sign in to comment.