mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Function to get load factors in machine understandable form.
This commit is contained in:
@@ -187,6 +187,12 @@ uint32 LoadFeeTrack::getLocalFee()
|
||||
return mLocalTxnLoadFee;
|
||||
}
|
||||
|
||||
uint32 LoadFeeTrack::getLoadFactor()
|
||||
{
|
||||
boost::mutex::scoped_lock sl(mLock);
|
||||
return std::max(mLocalTxnLoadFee, mRemoteTxnLoadFee);
|
||||
}
|
||||
|
||||
void LoadFeeTrack::setRemoteFee(uint32 f)
|
||||
{
|
||||
boost::mutex::scoped_lock sl(mLock);
|
||||
|
||||
@@ -144,6 +144,9 @@ public:
|
||||
uint32 getRemoteFee();
|
||||
uint32 getLocalFee();
|
||||
|
||||
uint32 getLoadBase() { return lftNormalFee; }
|
||||
uint32 getLoadFactor();
|
||||
|
||||
Json::Value getJson(uint64 baseFee, uint32 referenceFeeUnits);
|
||||
|
||||
void setRemoteFee(uint32);
|
||||
|
||||
Reference in New Issue
Block a user