Skip to content

Commit

Permalink
[FOLD] Make use of the deep freeze flags malformed prior
Browse files Browse the repository at this point in the history
to accepting the amendment.
  • Loading branch information
HowardHinnant committed Oct 31, 2024
1 parent a0d48ae commit 4aac190
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/xrpld/app/tx/detail/SetTrust.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,17 @@ SetTrust::doApply()
if (bSetDeepFreeze && !bClearDeepFreeze &&
(willSetFreeze || alreadyFrozen))
{
uFlagsOut |= (bHigh ? lsfHighDeepFreeze : lsfLowDeepFreeze);
if (ctx_.view().rules().enabled(featureDeepFreeze))
uFlagsOut |= (bHigh ? lsfHighDeepFreeze : lsfLowDeepFreeze);
else
return temMALFORMED;
}
else if (bClearDeepFreeze && !bSetDeepFreeze)
{
uFlagsOut &= ~(bHigh ? lsfHighDeepFreeze : lsfLowDeepFreeze);
if (ctx_.view().rules().enabled(featureDeepFreeze))
uFlagsOut &= ~(bHigh ? lsfHighDeepFreeze : lsfLowDeepFreeze);
else
return temMALFORMED;
}

if (QUALITY_ONE == uLowQualityOut)
Expand Down

0 comments on commit 4aac190

Please sign in to comment.