mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix display discrepancy in fee.
This commit is contained in:
committed by
Nik Bougalis
parent
d63aab6312
commit
22a8e25538
@@ -131,8 +131,6 @@ TER Transactor::payFee ()
|
|||||||
if ((mSourceBalance > zero) && ! view().open())
|
if ((mSourceBalance > zero) && ! view().open())
|
||||||
{
|
{
|
||||||
// Closed ledger, non-zero balance, less than fee
|
// Closed ledger, non-zero balance, less than fee
|
||||||
mSourceBalance.clear ();
|
|
||||||
sle->setFieldAmount (sfBalance, mSourceBalance);
|
|
||||||
return tecINSUFF_FEE;
|
return tecINSUFF_FEE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -532,6 +530,7 @@ Transactor::operator()()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool didApply = isTesSuccess (terResult);
|
bool didApply = isTesSuccess (terResult);
|
||||||
|
auto fee = tx().getTransactionFee ();
|
||||||
|
|
||||||
if (isTecClaim (terResult) && !(view().flags() & tapRETRY))
|
if (isTecClaim (terResult) && !(view().flags() & tapRETRY))
|
||||||
{
|
{
|
||||||
@@ -555,7 +554,6 @@ Transactor::operator()()
|
|||||||
terResult = tefPAST_SEQ;
|
terResult = tefPAST_SEQ;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
STAmount fee = tx().getTransactionFee ();
|
|
||||||
STAmount balance = txnAcct->getFieldAmount (sfBalance);
|
STAmount balance = txnAcct->getFieldAmount (sfBalance);
|
||||||
|
|
||||||
// We retry/reject the transaction if the account
|
// We retry/reject the transaction if the account
|
||||||
@@ -600,7 +598,6 @@ Transactor::operator()()
|
|||||||
// encapsulation of STAmount here and use "special
|
// encapsulation of STAmount here and use "special
|
||||||
// knowledge" - namely that a native amount is
|
// knowledge" - namely that a native amount is
|
||||||
// stored fully in the mantissa:
|
// stored fully in the mantissa:
|
||||||
auto const fee = tx().getTransactionFee ();
|
|
||||||
|
|
||||||
// The transactor guarantees these will never trigger
|
// The transactor guarantees these will never trigger
|
||||||
if (!fee.native () || fee.negative ())
|
if (!fee.native () || fee.negative ())
|
||||||
|
|||||||
Reference in New Issue
Block a user