|
Monero
|
This is the original cryptonote protocol network-events handler, modified by us. More...
#include <boost/optional/optional.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 "common/util.h"#include "misc_log_ex.h"

Go to the source code of this file.
Namespaces | |
| namespace | cryptonote |
| Holds cryptonote related classes and helpers. | |
Macros | |
| #define | MONERO_DEFAULT_LOG_CATEGORY "net.cn" |
| #define | MLOG_P2P_MESSAGE(x) |
| #define | MLOGIF_P2P_MESSAGE(init, test, x) |
| #define | MLOG_PEER_STATE(x) |
| #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 (240 * 1000000) |
| #define | NON_RESPONSIVE_PEER_KICK_TIME (20 * 1000000) |
| #define | PASSIVE_PEER_KICK_TIME (60 * 1000000) |
| #define | DROP_ON_SYNC_WEDGE_THRESHOLD (30 * 1000000000ull) |
| #define | LAST_ACTIVITY_STALL_THRESHOLD (2.0f) |
| #define | DROP_PEERS_ON_SCORE -2 |
Functions | |
| template<class CryptoHashContainer> | |
| bool | cryptonote::make_pool_supplement_from_block_entry (const std::vector< cryptonote::tx_blob_entry > &tx_entries, const CryptoHashContainer &blk_tx_hashes, const bool allow_pruned, cryptonote::pool_supplement &pool_supplement) |
| bool | cryptonote::make_full_pool_supplement_from_block_entry (const cryptonote::block_complete_entry &blk_entry, cryptonote::pool_supplement &pool_supplement) |
This is the original 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 DROP_PEERS_ON_SCORE -2 |
| #define IDLE_PEER_KICK_TIME (240 * 1000000) |
| #define LAST_ACTIVITY_STALL_THRESHOLD (2.0f) |
| #define MLOG_P2P_MESSAGE | ( | x | ) |
| #define MLOG_PEER_STATE | ( | x | ) |
| #define MONERO_DEFAULT_LOG_CATEGORY "net.cn" |
| #define NON_RESPONSIVE_PEER_KICK_TIME (20 * 1000000) |
| #define PASSIVE_PEER_KICK_TIME (60 * 1000000) |
| #define REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD (30 * 1000000) |
| #define REQUEST_NEXT_SCHEDULED_SPAN_THRESHOLD_STANDBY (5 * 1000000) |