mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
chang sfFeeAmount to soeOPTIONAL
This commit is contained in:
@@ -616,7 +616,7 @@ LEDGER_ENTRY(ltSPONSORSHIP, 0x0090, Sponsorship, sponsorship, ({
|
||||
{sfPreviousTxnLgrSeq, soeREQUIRED},
|
||||
{sfOwner, soeREQUIRED},
|
||||
{sfSponsee, soeREQUIRED},
|
||||
{sfFeeAmount, soeDEFAULT},
|
||||
{sfFeeAmount, soeOPTIONAL},
|
||||
{sfMaxFee, soeOPTIONAL},
|
||||
{sfReserveCount, soeDEFAULT},
|
||||
{sfOwnerNode, soeREQUIRED},
|
||||
|
||||
@@ -478,9 +478,7 @@ Transactor::payFee()
|
||||
auto const feeAmountAfter = sle->getFieldAmount(payer.balanceField) - feePaid;
|
||||
|
||||
if (feeAmountAfter == beast::zero && payer.balanceField == sfFeeAmount)
|
||||
// Because ltSponsorship.sfFeeAmount is soeDEFAULT
|
||||
// TODO: Use whether the field is soeDEFAULT instead of sfFeeAmount in
|
||||
// the condition.
|
||||
// Because ltSponsorship.sfFeeAmount is soeOptional
|
||||
sle->makeFieldAbsent(payer.balanceField);
|
||||
else
|
||||
sle->setFieldAmount(payer.balanceField, feeAmountAfter);
|
||||
|
||||
Reference in New Issue
Block a user