Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Classes | Namespaces | Functions | Variables
rtt.h File Reference
#include <policy/block/parkingpolicy.h>
#include <cstdint>
#include <optional>
Include dependency graph for rtt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RTTPolicy
 

Namespaces

namespace  Consensus
 

Functions

std::optional< uint32_tGetNextRTTWorkRequired (const CBlockIndex *pprev, int64_t now, const Consensus::Params &consensusParams)
 Compute the real time block hash target given the previous block parameters.
 
bool isRTTEnabled (const Consensus::Params &params, const CBlockIndex *pprev)
 Whether the RTT feature is enabled.
 

Variables

static constexpr bool DEFAULT_ENABLE_RTT {true}
 Default for -enablertt.
 

Function Documentation

◆ GetNextRTTWorkRequired()

std::optional< uint32_t > GetNextRTTWorkRequired ( const CBlockIndex pprev,
int64_t  now,
const Consensus::Params consensusParams 
)

Compute the real time block hash target given the previous block parameters.

Definition at line 102 of file rtt.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isRTTEnabled()

bool isRTTEnabled ( const Consensus::Params params,
const CBlockIndex pprev 
)

Whether the RTT feature is enabled.

Definition at line 150 of file rtt.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ DEFAULT_ENABLE_RTT

constexpr bool DEFAULT_ENABLE_RTT {true}
staticconstexpr

Default for -enablertt.

Definition at line 20 of file rtt.h.