mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
make baseFeeLevel inline
This commit is contained in:
@@ -20,9 +20,6 @@ namespace test {
|
||||
|
||||
class TxQPosNegFlows_test : public beast::unit_test::suite
|
||||
{
|
||||
// Same as corresponding values from TxQ.h
|
||||
static constexpr FeeLevel64 baseFeeLevel{256};
|
||||
static constexpr FeeLevel64 minEscalationFeeLevel = baseFeeLevel * 500;
|
||||
|
||||
void
|
||||
fillQueue(jtx::Env& env, jtx::Account const& account)
|
||||
@@ -70,7 +67,7 @@ class TxQPosNegFlows_test : public beast::unit_test::suite
|
||||
{
|
||||
FeeLevel64 const expectedMedFeeLevel = (feeLevel1 + feeLevel2 + FeeLevel64{1}) / 2;
|
||||
|
||||
return std::max(expectedMedFeeLevel, minEscalationFeeLevel).fee();
|
||||
return std::max(expectedMedFeeLevel, jtx::minEscalationFeeLevel).fee();
|
||||
}
|
||||
|
||||
auto
|
||||
|
||||
@@ -582,8 +582,8 @@ create(jtx::Account const& account, jtx::Account const& dest, STAmount const& se
|
||||
|
||||
} // namespace check
|
||||
|
||||
static constexpr FeeLevel64 baseFeeLevel{TxQ::baseLevel};
|
||||
static constexpr FeeLevel64 minEscalationFeeLevel = baseFeeLevel * 500;
|
||||
inline constexpr FeeLevel64 baseFeeLevel{256};
|
||||
inline constexpr FeeLevel64 minEscalationFeeLevel = baseFeeLevel * 500;
|
||||
|
||||
template <class Suite>
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user