remove sponsor from pre-sponsor block

This commit is contained in:
Mayukha Vadari
2026-06-24 10:30:25 -04:00
parent db0371a568
commit 49735d1962

View File

@@ -140,11 +140,8 @@ PaymentChannelCreate::doApply()
if (ctx_.view().rules().enabled(featureSponsor))
{
auto const sponsorSle = getTxReserveSponsor(ctx_.view(), ctx_.tx);
if (!sponsorSle)
return sponsorSle.error(); // LCOV_EXCL_LINE
if (auto const ret = checkInsufficientReserve(
ctx_.view(), ctx_.tx, sle, STAmount{preFeeBalance_}, *sponsorSle, 1, 0, j_);
ctx_.view(), ctx_.tx, sle, STAmount{preFeeBalance_}, {}, 1, 0, j_);
!isTesSuccess(ret))
return ret;
if (auto const ret = checkInsufficientReserve(
@@ -152,7 +149,7 @@ PaymentChannelCreate::doApply()
ctx_.tx,
sle,
STAmount{preFeeBalance_ - ctx_.tx[sfAmount].xrp()},
*sponsorSle,
{},
1,
0,
j_);