mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-29 18:10:34 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -334,9 +334,9 @@ TrustSet::doApply()
|
||||
|
||||
std::uint32_t const uOwnerCount = ownerCount(view(), *sponsorSle ? *sponsorSle : sle, j_);
|
||||
|
||||
// The free-first-item shortcut only applies when there is no sponsor.
|
||||
// With any sponsor on the tx, the sponsor must cover the reserve
|
||||
// (whether via balance or prefunded budget), so the reserve check runs.
|
||||
// The "free-tier" shortcut (ownerCount < 2) only applies when there is no sponsor.
|
||||
// With any sponsor on the tx, the sponsor must cover the reserve (via balance or
|
||||
// prefunded budget), so the reserve check always runs.
|
||||
bool const freeTrustLine = uOwnerCount < 2 && !*sponsorSle;
|
||||
|
||||
std::uint32_t const uQualityIn(bQualityIn ? ctx_.tx.getFieldU32(sfQualityIn) : 0);
|
||||
|
||||
Reference in New Issue
Block a user