32 #include "gtest/gtest.h" 49 return (fee + mask - 1) / mask * mask;
104 static bool is_more_or_less(
double x,
double y)
106 return fabs(y - x) < 0.001;
109 static const double MAX_MULTIPLIER = 166.f;
111 TEST_F(fee, double_at_full)
113 static const uint64_t block_rewards[] = {
120 static const uint64_t median_block_weights[] = {
129 for (
uint64_t block_reward: block_rewards)
131 for (
uint64_t median_block_weight: median_block_weights)
#define CRYPTONOTE_DISPLAY_DECIMAL_POINT
#define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V2
static uint64_t get_dynamic_base_fee(uint64_t block_reward, size_t median_block_weight, uint8_t version)
get dynamic per kB or byte fee for a given block weight
Holds cryptonote related classes and helpers.
#define ASSERT_EQ(val1, val2)
#define PER_KB_FEE_QUANTIZATION_DECIMALS
unsigned __int64 uint64_t
#define TEST_F(test_fixture, test_name)
#define ASSERT_TRUE(condition)