diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-27 23:43:44 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-10-31 08:37:08 +0000 |
commit | 82dbba10d467e28e56929e2e7f3b1f04d4635da4 (patch) | |
tree | a6085abcc430988bb1f0d021dfe1415b1d6866f2 /src/cryptonote_config.h | |
parent | Merge pull request #1270 (diff) | |
download | monero-82dbba10d467e28e56929e2e7f3b1f04d4635da4.tar.xz |
core: dynamic fee algorithm from ArticMine
The fee will vary based on the base reward and the current
block size limit:
fee = (R/R0) * (M0/M) * F0
R: base reward
R0: reference base reward (10 monero)
M: block size limit
M0: minimum block size limit (60000)
F0: 0.002 monero
Starts applying at v4
Diffstat (limited to '')
-rw-r--r-- | src/cryptonote_config.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cryptonote_config.h b/src/cryptonote_config.h index 66084da3c..175a5d26e 100644 --- a/src/cryptonote_config.h +++ b/src/cryptonote_config.h @@ -64,6 +64,8 @@ #define FEE_PER_KB_OLD ((uint64_t)10000000000) // pow(10, 10) #define FEE_PER_KB ((uint64_t)2000000000) // 2 * pow(10, 9) +#define DYNAMIC_FEE_PER_KB_BASE_FEE ((uint64_t)2000000000) // 2 * pow(10,9) +#define DYNAMIC_FEE_PER_KB_BASE_BLOCK_REWARD ((uint64_t)10000000000000) // 10 * pow(10,12) #define ORPHANED_BLOCKS_MAX_COUNT 100 @@ -122,6 +124,8 @@ #define THREAD_STACK_SIZE 5 * 1024 * 1024 +#define HF_VERSION_DYNAMIC_FEE 4 + // New constants are intended to go here namespace config { |