make baseFeeLevel inline

This commit is contained in:
Denis Angell
2026-03-19 19:47:20 +01:00
parent 70752f8b82
commit e752479219
2 changed files with 3 additions and 6 deletions

View File

@@ -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

View File

@@ -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