mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Revert "Increase minimum local fee":
The code is no longer necessary, as the fee is now dynamically
adjusted using the new fee escalation logic.
This reverts commit 57625e06ed.
This commit is contained in:
@@ -1919,14 +1919,7 @@ void LedgerConsensusImp::addLoad(STValidation::ref val)
|
||||
app_.getFeeTrack().getLocalFee(),
|
||||
app_.getFeeTrack().getClusterFee());
|
||||
|
||||
std::uint32_t loadBase = app_.getFeeTrack().getLoadBase();
|
||||
|
||||
// Hard code the minimum fee for now:
|
||||
std::uint32_t const minFee = 10000;
|
||||
std::uint32_t const refFee = 10;
|
||||
fee = std::max(fee, (minFee * loadBase + refFee - 1) / refFee);
|
||||
|
||||
if (fee > loadBase)
|
||||
if (fee > app_.getFeeTrack().getLoadBase())
|
||||
val->setFieldU32(sfLoadFee, fee);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user