mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 06:25:51 +00:00
Fix two minor bugs with reporting load fees.
This commit is contained in:
@@ -247,8 +247,8 @@ bool LoadFeeTrack::raiseLocalFee()
|
|||||||
boost::mutex::scoped_lock sl(mLock);
|
boost::mutex::scoped_lock sl(mLock);
|
||||||
uint32 origFee = mLocalTxnLoadFee;
|
uint32 origFee = mLocalTxnLoadFee;
|
||||||
|
|
||||||
if (mLocalTxnLoadFee < mLocalTxnLoadFee) // make sure this fee takes effect
|
if (mLocalTxnLoadFee < mRemoteTxnLoadFee) // make sure this fee takes effect
|
||||||
mLocalTxnLoadFee = mLocalTxnLoadFee;
|
mLocalTxnLoadFee = mRemoteTxnLoadFee;
|
||||||
|
|
||||||
mLocalTxnLoadFee += (mLocalTxnLoadFee / lftFeeIncFraction); // increment by 1/16th
|
mLocalTxnLoadFee += (mLocalTxnLoadFee / lftFeeIncFraction); // increment by 1/16th
|
||||||
|
|
||||||
|
|||||||
@@ -1163,7 +1163,7 @@ Json::Value NetworkOPs::getServerInfo(bool human, bool admin)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
info["load_factor"] =
|
info["load_factor"] =
|
||||||
static_cast<double>(theApp->getFeeTrack().getLoadBase()) / theApp->getFeeTrack().getLoadFactor();
|
static_cast<double>(theApp->getFeeTrack().getLoadFactor()) / theApp->getFeeTrack().getLoadBase();
|
||||||
|
|
||||||
bool valid = false;
|
bool valid = false;
|
||||||
Ledger::pointer lpClosed = getValidatedLedger();
|
Ledger::pointer lpClosed = getValidatedLedger();
|
||||||
|
|||||||
Reference in New Issue
Block a user