Skip to content

Commit aaad22c

Browse files
committed
trying to make cn_slow_hash work fancoder#2
1 parent 4c01b49 commit aaad22c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/cryptonote_config.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,32 @@
1515

1616
#define CRYPTONOTE_MINED_MONEY_UNLOCK_WINDOW 60
1717
#define CRYPTONOTE_DISPLAY_DECIMAL_POINT 12
18+
19+
#define CRYPTONOTE_MAX_BLOCK_SIZE 500000000 // block header blob limit, never used!
20+
#define CRYPTONOTE_MAX_TX_SIZE 1000000000
21+
22+
// MONEY_SUPPLY - total number coins to be generated
23+
#define MONEY_SUPPLY (10000000000000000000)
24+
#define EMISSION_SPEED_FACTOR_PER_MINUTE (18)
25+
#define EMISSION_SPEED_FACTOR (18)
26+
#define FINAL_SUBSIDY_PER_MINUTE ((uint64_t)300000000000) // 3 * pow(10, 11)
27+
#define CRYPTONOTE_REWARD_BLOCKS_WINDOW 100
28+
#define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE 1000000
29+
#define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V2 1000000 //size of block (bytes) after which reward for block calculated using block size
30+
#define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1 100000 //size of block (bytes) after which reward for block calculated using block size - before first fork
31+
#define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V5 1000000 //size of block (bytes) after which reward for block calculated using block size - second change, from v5
32+
33+
#define DIFFICULTY_TARGET 240 // seconds
34+
#define DIFFICULTY_TARGET_V2 240 // seconds
35+
#define DIFFICULTY_TARGET_V1 240 // seconds - before first fork
36+
37+
uint64_t const CRYPTONOTE_PUBLIC_ADDRESS_BASE58_PREFIX = 111;
38+
#define EXPECTED_NUMBER_OF_BLOCKS_PER_DAY 24 * 60 * 60 / DIFFICULTY_TARGET
39+
#define DIFFICULTY_WINDOW EXPECTED_NUMBER_OF_BLOCKS_PER_DAY // blocks
40+
#define DIFFICULTY_LAG 15 // !!!
41+
#define DIFFICULTY_CUT 60 // timestamps to cut after sorting
42+
#define DIFFICULTY_BLOCKS_COUNT DIFFICULTY_WINDOW + DIFFICULTY_LAG
43+
44+
#define MINER_CONFIG_FILE_NAME "miner_conf.json"
45+
46+
#define THREAD_STACK_SIZE 5 * 1024 * 1024

0 commit comments

Comments
 (0)