|
Electroneum
|
#include <stdexcept>#include <string>#include <boost/uuid/uuid.hpp>

Go to the source code of this file.
Classes | |
| struct | cryptonote::config_t |
Namespaces | |
| config | |
| config::testnet | |
| config::stagenet | |
| cryptonote | |
| Holds cryptonote related classes and helpers. | |
Enumerations | |
| enum | cryptonote::network_type : uint8_t { cryptonote::MAINNET = 0, cryptonote::TESTNET, cryptonote::STAGENET, cryptonote::FAKECHAIN, cryptonote::UNDEFINED = 255 } |
Functions | |
| const config_t & | cryptonote::get_config (network_type nettype) |
| #define ALLOW_DEBUG_COMMANDS |
Definition at line 147 of file cryptonote_config.h.
| #define BLOCKCHAIN_TIMESTAMP_CHECK_WINDOW 60 |
Definition at line 54 of file cryptonote_config.h.
| #define BLOCKS_IDS_SYNCHRONIZING_DEFAULT_COUNT 10000 |
Definition at line 111 of file cryptonote_config.h.
| #define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT 20 |
Definition at line 113 of file cryptonote_config.h.
| #define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT_PRE_V4 100 |
Definition at line 112 of file cryptonote_config.h.
| #define BULLETPROOF_MAX_OUTPUTS 16 |
Definition at line 185 of file cryptonote_config.h.
| #define COIN ((uint64_t)100) |
Definition at line 74 of file cryptonote_config.h.
| #define COMMAND_RPC_GET_BLOCKS_FAST_MAX_COUNT 1000 |
Definition at line 119 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCK_FUTURE_TIME_LIMIT 60*60*2 |
Definition at line 50 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V1 20000 |
Definition at line 65 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V10 500000 |
Definition at line 68 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V2 60000 |
Definition at line 64 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V5 150000 |
Definition at line 66 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V8 300000 |
Definition at line 67 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCKCHAINDATA_FILENAME "data.mdb" |
Definition at line 151 of file cryptonote_config.h.
| #define CRYPTONOTE_BLOCKCHAINDATA_LOCK_FILENAME "lock.mdb" |
Definition at line 152 of file cryptonote_config.h.
| #define CRYPTONOTE_COINBASE_BLOB_RESERVED_SIZE 600 |
Definition at line 71 of file cryptonote_config.h.
| #define CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE 10 |
Definition at line 51 of file cryptonote_config.h.
| #define CRYPTONOTE_DISPLAY_DECIMAL_POINT 2 |
Definition at line 72 of file cryptonote_config.h.
| #define CRYPTONOTE_DNS_TIMEOUT_MS 60000 |
Definition at line 38 of file cryptonote_config.h.
| #define CRYPTONOTE_GETBLOCKTEMPLATE_MAX_BLOCK_SIZE 196608 |
Definition at line 41 of file cryptonote_config.h.
| #define CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_BLOCKS 1 |
Definition at line 102 of file cryptonote_config.h.
| #define CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_SECONDS DIFFICULTY_TARGET * CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_BLOCKS |
Definition at line 103 of file cryptonote_config.h.
| #define CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_SECONDS_V6 DIFFICULTY_TARGET_V6 * CRYPTONOTE_LOCKED_TX_ALLOWED_DELTA_BLOCKS |
Definition at line 104 of file cryptonote_config.h.
| #define CRYPTONOTE_LONG_TERM_BLOCK_WEIGHT_WINDOW_SIZE 100000 |
Definition at line 69 of file cryptonote_config.h.
| #define CRYPTONOTE_MAX_BLOCK_NUMBER 500000000 |
Definition at line 40 of file cryptonote_config.h.
| #define CRYPTONOTE_MAX_TX_PER_BLOCK 0x10000000 |
Definition at line 43 of file cryptonote_config.h.
| #define CRYPTONOTE_MAX_TX_SIZE 1000000 |
Definition at line 42 of file cryptonote_config.h.
| #define CRYPTONOTE_MEMPOOL_TX_FROM_ALT_BLOCK_LIVETIME 604800 |
Definition at line 117 of file cryptonote_config.h.
| #define CRYPTONOTE_MEMPOOL_TX_LIVETIME 86400 |
Definition at line 115 of file cryptonote_config.h.
| #define CRYPTONOTE_MEMPOOL_TX_LIVETIME_V6 (86400*3) |
Definition at line 116 of file cryptonote_config.h.
| #define CRYPTONOTE_MINED_ETN_UNLOCK_WINDOW 18 |
Definition at line 45 of file cryptonote_config.h.
| #define CRYPTONOTE_NAME "electroneum" |
Definition at line 149 of file cryptonote_config.h.
| #define CRYPTONOTE_POOLDATA_FILENAME "poolstate.bin" |
Definition at line 150 of file cryptonote_config.h.
| #define CRYPTONOTE_PRUNING_LOG_STRIPES 3 |
Definition at line 188 of file cryptonote_config.h.
| #define CRYPTONOTE_PRUNING_STRIPE_SIZE 4096 |
Definition at line 187 of file cryptonote_config.h.
| #define CRYPTONOTE_PRUNING_TIP_BLOCKS 5500 |
Definition at line 189 of file cryptonote_config.h.
| #define CRYPTONOTE_PUBLIC_ADDRESS_TEXTBLOB_VER 0 |
Definition at line 44 of file cryptonote_config.h.
| #define CRYPTONOTE_REWARD_BLOCKS_WINDOW 100 |
Definition at line 63 of file cryptonote_config.h.
| #define CRYPTONOTE_SHORT_TERM_BLOCK_WEIGHT_SURGE_FACTOR 50 |
Definition at line 70 of file cryptonote_config.h.
| #define CURRENT_BLOCK_MAJOR_VERSION 1 |
Definition at line 48 of file cryptonote_config.h.
| #define CURRENT_BLOCK_MINOR_VERSION 0 |
Definition at line 49 of file cryptonote_config.h.
| #define CURRENT_HARDFORK_VERSION 11 |
Definition at line 158 of file cryptonote_config.h.
| #define CURRENT_TRANSACTION_VERSION 3 |
Definition at line 47 of file cryptonote_config.h.
| #define DEFAULT_MIX 0 |
Definition at line 82 of file cryptonote_config.h.
| #define DEFAULT_RINGSIZE (DEFAULT_MIX + 1) |
Definition at line 83 of file cryptonote_config.h.
| #define DEFAULT_TXPOOL_MAX_WEIGHT 648000000ull |
Definition at line 183 of file cryptonote_config.h.
| #define DIFFICULTY_BLOCKS_COUNT DIFFICULTY_WINDOW + DIFFICULTY_LAG |
Definition at line 98 of file cryptonote_config.h.
| #define DIFFICULTY_BLOCKS_COUNT_V6 DIFFICULTY_WINDOW_V6 + DIFFICULTY_LAG |
Definition at line 99 of file cryptonote_config.h.
| #define DIFFICULTY_BLOCKS_ESTIMATE_TIMESPAN DIFFICULTY_TARGET |
Definition at line 107 of file cryptonote_config.h.
| #define DIFFICULTY_BLOCKS_ESTIMATE_TIMESPAN_V6 DIFFICULTY_TARGET_V6 |
Definition at line 108 of file cryptonote_config.h.
| #define DIFFICULTY_CUT 60 |
Definition at line 97 of file cryptonote_config.h.
| #define DIFFICULTY_LAG 15 |
Definition at line 96 of file cryptonote_config.h.
| #define DIFFICULTY_TARGET 60 |
Definition at line 92 of file cryptonote_config.h.
| #define DIFFICULTY_TARGET_V6 120 |
Definition at line 93 of file cryptonote_config.h.
| #define DIFFICULTY_WINDOW 720 |
Definition at line 94 of file cryptonote_config.h.
| #define DIFFICULTY_WINDOW_V6 360 |
Definition at line 95 of file cryptonote_config.h.
| #define DYNAMIC_FEE_PER_KB_BASE_BLOCK_REWARD ((uint64_t)10000000000000) |
Definition at line 86 of file cryptonote_config.h.
| #define DYNAMIC_FEE_PER_KB_BASE_FEE ((uint64_t)2000000000) |
Definition at line 85 of file cryptonote_config.h.
| #define DYNAMIC_FEE_PER_KB_BASE_FEE_V5 ((uint64_t)2000000000 * (uint64_t)CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V2 / CRYPTONOTE_BLOCK_GRANTED_FULL_REWARD_ZONE_V5) |
Definition at line 87 of file cryptonote_config.h.
| #define DYNAMIC_FEE_REFERENCE_TRANSACTION_WEIGHT ((uint64_t)3000) |
Definition at line 88 of file cryptonote_config.h.
| #define EMISSION_SPEED_FACTOR_PER_MINUTE (20) |
Definition at line 58 of file cryptonote_config.h.
| #define EMISSION_SPEED_FACTOR_PER_MINUTE_V8 (22) |
Definition at line 59 of file cryptonote_config.h.
| #define ETN_DEFAULT_TX_SPENDABLE_AGE_V8 5 |
Definition at line 52 of file cryptonote_config.h.
| #define ETN_MINED_ETN_UNLOCK_WINDOW_V8 5 |
Definition at line 46 of file cryptonote_config.h.
| #define ETN_SUPPLY ((uint64_t)(2100000000000)) |
Definition at line 57 of file cryptonote_config.h.
| #define FEE_PER_BYTE ((uint64_t)30) |
Definition at line 80 of file cryptonote_config.h.
| #define FEE_PER_KB ((uint64_t)1) |
Definition at line 76 of file cryptonote_config.h.
| #define FEE_PER_KB_V11 ((uint64_t)0) |
Definition at line 78 of file cryptonote_config.h.
| #define FEE_PER_KB_V6 ((uint64_t)10) |
Definition at line 77 of file cryptonote_config.h.
Definition at line 61 of file cryptonote_config.h.
| #define HF_VERSION_ALLOW_BULLETPROOF 100 |
Definition at line 176 of file cryptonote_config.h.
| #define HF_VERSION_DYNAMIC_FEE 100 |
Definition at line 163 of file cryptonote_config.h.
| #define HF_VERSION_ENABLE_RCT 100 |
Definition at line 170 of file cryptonote_config.h.
| #define HF_VERSION_ENFORCE_0_DECOY_TXS 6 |
Definition at line 161 of file cryptonote_config.h.
| #define HF_VERSION_ENFORCE_0_DECOY_TXS_END 100 |
Definition at line 162 of file cryptonote_config.h.
| #define HF_VERSION_ENFORCE_RCT 100 |
Definition at line 171 of file cryptonote_config.h.
| #define HF_VERSION_FORBID_DUST_OUTPUTS 2 |
Definition at line 159 of file cryptonote_config.h.
| #define HF_VERSION_FORBID_INVALID_PUBKEYS 4 |
Definition at line 160 of file cryptonote_config.h.
| #define HF_VERSION_FORBIT_BORROMEAN_RANGE_PROOFS HF_VERSION_ALLOW_BULLETPROOF + 1 |
Definition at line 177 of file cryptonote_config.h.
| #define HF_VERSION_LONG_TERM_BLOCK_WEIGHT 100 |
Definition at line 174 of file cryptonote_config.h.
| #define HF_VERSION_MAX_RING_11 100 |
Definition at line 169 of file cryptonote_config.h.
| #define HF_VERSION_MIN_MIXIN_10 100 |
Definition at line 168 of file cryptonote_config.h.
| #define HF_VERSION_MIN_MIXIN_2 2 |
Definition at line 165 of file cryptonote_config.h.
| #define HF_VERSION_MIN_MIXIN_4 100 |
Definition at line 166 of file cryptonote_config.h.
| #define HF_VERSION_MIN_MIXIN_6 100 |
Definition at line 167 of file cryptonote_config.h.
| #define HF_VERSION_ORDERED_TX_INPUTS 100 |
Definition at line 175 of file cryptonote_config.h.
| #define HF_VERSION_PER_BYTE_FEE 100 |
Definition at line 172 of file cryptonote_config.h.
| #define HF_VERSION_PUBLIC_TX 10 |
Definition at line 178 of file cryptonote_config.h.
| #define HF_VERSION_SMALLER_BP 100 |
Definition at line 173 of file cryptonote_config.h.
| #define HF_VERSION_ZERO_FEE 11 |
Definition at line 164 of file cryptonote_config.h.
| #define MINER_CONFIG_FILE_NAME "miner_conf.json" |
Definition at line 154 of file cryptonote_config.h.
| #define ORPHANED_BLOCKS_MAX_COUNT 100 |
Definition at line 90 of file cryptonote_config.h.
| #define P2P_DEFAULT_ANCHOR_CONNECTIONS_COUNT 2 |
Definition at line 134 of file cryptonote_config.h.
| #define P2P_DEFAULT_CONNECTION_TIMEOUT 5000 |
Definition at line 128 of file cryptonote_config.h.
| #define P2P_DEFAULT_CONNECTIONS_COUNT 8 |
Definition at line 124 of file cryptonote_config.h.
| #define P2P_DEFAULT_HANDSHAKE_INTERVAL 60 |
Definition at line 125 of file cryptonote_config.h.
| #define P2P_DEFAULT_HANDSHAKE_INVOKE_TIMEOUT 5000 |
Definition at line 132 of file cryptonote_config.h.
| #define P2P_DEFAULT_INVOKE_TIMEOUT 60*2*1000 |
Definition at line 131 of file cryptonote_config.h.
| #define P2P_DEFAULT_LIMIT_RATE_DOWN 8192 |
Definition at line 137 of file cryptonote_config.h.
| #define P2P_DEFAULT_LIMIT_RATE_UP 2048 |
Definition at line 136 of file cryptonote_config.h.
| #define P2P_DEFAULT_PACKET_MAX_SIZE 50000000 |
Definition at line 126 of file cryptonote_config.h.
| #define P2P_DEFAULT_PEERS_IN_HANDSHAKE 250 |
Definition at line 127 of file cryptonote_config.h.
| #define P2P_DEFAULT_PING_CONNECTION_TIMEOUT 2000 |
Definition at line 130 of file cryptonote_config.h.
| #define P2P_DEFAULT_SOCKS_CONNECT_TIMEOUT 45 |
Definition at line 129 of file cryptonote_config.h.
| #define P2P_DEFAULT_SYNC_SEARCH_CONNECTIONS_COUNT 2 |
Definition at line 135 of file cryptonote_config.h.
| #define P2P_DEFAULT_WHITELIST_CONNECTIONS_PERCENT 70 |
Definition at line 133 of file cryptonote_config.h.
| #define P2P_FAILED_ADDR_FORGET_SECONDS (60*60) |
Definition at line 139 of file cryptonote_config.h.
| #define P2P_IDLE_CONNECTION_KILL_INTERVAL (5*60) |
Definition at line 142 of file cryptonote_config.h.
| #define P2P_IP_BLOCKTIME (60*60*24) |
Definition at line 140 of file cryptonote_config.h.
| #define P2P_IP_FAILS_BEFORE_BLOCK 10 |
Definition at line 141 of file cryptonote_config.h.
| #define P2P_LOCAL_GRAY_PEERLIST_LIMIT 5000 |
Definition at line 122 of file cryptonote_config.h.
| #define P2P_LOCAL_WHITE_PEERLIST_LIMIT 1000 |
Definition at line 121 of file cryptonote_config.h.
| #define P2P_NET_DATA_FILENAME "p2pstate.bin" |
Definition at line 153 of file cryptonote_config.h.
| #define P2P_SUPPORT_FLAG_FLUFFY_BLOCKS 0x01 |
Definition at line 144 of file cryptonote_config.h.
| #define P2P_SUPPORT_FLAGS P2P_SUPPORT_FLAG_FLUFFY_BLOCKS |
Definition at line 145 of file cryptonote_config.h.
| #define PER_KB_FEE_QUANTIZATION_DECIMALS 2 |
Definition at line 181 of file cryptonote_config.h.
| #define THREAD_STACK_SIZE 5 * 1024 * 1024 |
Definition at line 156 of file cryptonote_config.h.