Bitcoin ABC  0.22.13
P2P Digital Currency
Classes | Namespaces | Typedefs | Variables
processor.h File Reference
#include <avalanche/node.h>
#include <avalanche/protocol.h>
#include <blockindexworkcomparator.h>
#include <eventloop.h>
#include <interfaces/chain.h>
#include <interfaces/handler.h>
#include <key.h>
#include <rwcollection.h>
#include <boost/multi_index/composite_key.hpp>
#include <boost/multi_index/hashed_index.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <boost/multi_index_container.hpp>
#include <atomic>
#include <chrono>
#include <cstdint>
#include <memory>
#include <vector>
Include dependency graph for processor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  avalanche::VoteRecord
 Vote history. More...
 
class  avalanche::BlockUpdate
 
struct  avalanche::query_timeout
 
class  avalanche::Processor
 
struct  avalanche::Processor::Query
 

Namespaces

 avalanche
 

Typedefs

using avalanche::BlockVoteMap = std::map< const CBlockIndex *, VoteRecord, CBlockIndexWorkComparator >
 

Variables

static constexpr bool AVALANCHE_DEFAULT_ENABLED = false
 Is avalanche enabled by default. More...
 
static constexpr int AVALANCHE_FINALIZATION_SCORE = 128
 Finalization score. More...
 
static constexpr size_t AVALANCHE_MAX_ELEMENT_POLL = 16
 Maximum item that can be polled at once. More...
 
static constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100
 Avalanche default cooldown in milliseconds. More...
 
static constexpr std::chrono::milliseconds AVALANCHE_DEFAULT_QUERY_TIMEOUT
 How long before we consider that a query timed out. More...
 
static constexpr int AVALANCHE_MAX_INFLIGHT_POLL = 10
 How many inflight requests can exist for one item. More...
 
std::unique_ptr< avalanche::Processorg_avalanche
 Global avalanche instance. More...
 

Variable Documentation

◆ AVALANCHE_DEFAULT_COOLDOWN

constexpr size_t AVALANCHE_DEFAULT_COOLDOWN = 100
static

Avalanche default cooldown in milliseconds.

Definition at line 50 of file processor.h.

◆ AVALANCHE_DEFAULT_ENABLED

constexpr bool AVALANCHE_DEFAULT_ENABLED = false
static

Is avalanche enabled by default.

Definition at line 36 of file processor.h.

◆ AVALANCHE_DEFAULT_QUERY_TIMEOUT

constexpr std::chrono::milliseconds AVALANCHE_DEFAULT_QUERY_TIMEOUT
static
Initial value:
{
10000}

How long before we consider that a query timed out.

Definition at line 54 of file processor.h.

◆ AVALANCHE_FINALIZATION_SCORE

constexpr int AVALANCHE_FINALIZATION_SCORE = 128
static

Finalization score.

Definition at line 41 of file processor.h.

◆ AVALANCHE_MAX_ELEMENT_POLL

constexpr size_t AVALANCHE_MAX_ELEMENT_POLL = 16
static

Maximum item that can be polled at once.

Definition at line 46 of file processor.h.

◆ AVALANCHE_MAX_INFLIGHT_POLL

constexpr int AVALANCHE_MAX_INFLIGHT_POLL = 10
static

How many inflight requests can exist for one item.

Definition at line 60 of file processor.h.

◆ g_avalanche

std::unique_ptr<avalanche::Processor> g_avalanche

Global avalanche instance.

Definition at line 28 of file processor.cpp.