|
Electroneum
|
This is the orginal cryptonote protocol network-events handler, modified by us. More...
#include <boost/interprocess/detail/atomic.hpp>#include <list>#include <ctime>#include "cryptonote_basic/cryptonote_format_utils.h"#include "profile_tools.h"#include "net/network_throttle-detail.hpp"#include "common/pruning.h"#include "cryptonote_basic/validators.h"

Namespaces | |
| cryptonote | |
| Holds cryptonote related classes and helpers. | |
Macros | |
| #define | ELECTRONEUM_DEFAULT_LOG_CATEGORY "net.cn" |
| #define | MLOG_P2P_MESSAGE(x) MCINFO("net.p2p.msg", context << x) |
| #define | MLOGIF_P2P_MESSAGE(init, test, x) |
| #define | MLOG_PEER_STATE(x) MCINFO(ELECTRONEUM_DEFAULT_LOG_CATEGORY, context << "[" << epee::string_tools::to_string_hex(context.m_pruning_seed) << "] state: " << x << " in state " << cryptonote::get_protocol_state_string(context.m_state)) |
| #define | BLOCK_QUEUE_NSPANS_THRESHOLD 10 |
| #define | BLOCK_QUEUE_SIZE_THRESHOLD (100*1024*1024) |
| #define | BLOCK_QUEUE_FORCE_DOWNLOAD_NEAR_BLOCKS 1000 |
| #define | REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD_STANDBY (5 * 1000000) |
| #define | REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD (30 * 1000000) |
| #define | IDLE_PEER_KICK_TIME (600 * 1000000) |
| #define | PASSIVE_PEER_KICK_TIME (60 * 1000000) |
| #define | DROP_ON_SYNC_WEDGE_THRESHOLD (30 * 1000000000ull) |
| #define | LAST_ACTIVITY_STALL_THRESHOLD (2.0f) |
This is the orginal cryptonote protocol network-events handler, modified by us.
| #define BLOCK_QUEUE_FORCE_DOWNLOAD_NEAR_BLOCKS 1000 |
| #define BLOCK_QUEUE_NSPANS_THRESHOLD 10 |
| #define BLOCK_QUEUE_SIZE_THRESHOLD (100*1024*1024) |
| #define DROP_ON_SYNC_WEDGE_THRESHOLD (30 * 1000000000ull) |
| #define ELECTRONEUM_DEFAULT_LOG_CATEGORY "net.cn" |
| #define IDLE_PEER_KICK_TIME (600 * 1000000) |
| #define LAST_ACTIVITY_STALL_THRESHOLD (2.0f) |
| #define MLOG_P2P_MESSAGE | ( | x | ) | MCINFO("net.p2p.msg", context << x) |
| #define MLOG_PEER_STATE | ( | x | ) | MCINFO(ELECTRONEUM_DEFAULT_LOG_CATEGORY, context << "[" << epee::string_tools::to_string_hex(context.m_pruning_seed) << "] state: " << x << " in state " << cryptonote::get_protocol_state_string(context.m_state)) |
| #define MLOGIF_P2P_MESSAGE | ( | init, | |
| test, | |||
| x | |||
| ) |
| #define PASSIVE_PEER_KICK_TIME (60 * 1000000) |
| #define REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD (30 * 1000000) |
| #define REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD_STANDBY (5 * 1000000) |