mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-26 00:20:41 +00:00
remove sponsor from pre-sponsor block
This commit is contained in:
@@ -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_);
|
||||
|
||||
Reference in New Issue
Block a user