Kagome
Polkadot Runtime Engine in C++17
sync_protocol_impl.hpp File Reference
#include "network/protocols/sync_protocol.hpp"
#include <chrono>
#include <memory>
#include <optional>
#include <unordered_map>
#include <unordered_set>
#include <boost/circular_buffer.hpp>
#include <libp2p/connection/stream.hpp>
#include <libp2p/host/host.hpp>
#include "application/chain_spec.hpp"
#include "log/logger.hpp"
#include "network/impl/protocols/protocol_base_impl.hpp"
#include "network/reputation_repository.hpp"
#include "network/sync_protocol_observer.hpp"
#include "utils/non_copyable.hpp"
Include dependency graph for sync_protocol_impl.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kagome::network::detail::BlocksResponseCache
 
struct  kagome::network::detail::BlocksResponseCache::CacheRecord
 
class  kagome::network::SyncProtocolImpl
 

Namespaces

 kagome::network
 
 kagome::network::detail
 

Variables

static constexpr auto kagome::network::kResponsesCacheCapacity = 500
 
static constexpr auto kagome::network::kResponsesCacheExpirationTimeout
 
static constexpr auto kagome::network::kMaxCacheEntriesPerPeer = 5
 

Class Documentation

struct kagome::network::detail::BlocksResponseCache::CacheRecord

Definition at line 85 of file sync_protocol_impl.hpp.

Collaboration diagram for kagome::network::detail::BlocksResponseCache::CacheRecord:
Class Members
circular_buffer< Fingerprint > fingerprints
PeerId peer_id
ExpirationTimepoint valid_till