Bitcoin ABC 0.30.7
P2P Digital Currency
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_t > GetNextRTTWorkRequired (const CBlockIndex *pprev, int64_t now, const Consensus::Params &consensusParams)
 Compute the real time block hash target given the previous block parameters. More...
 
bool isRTTEnabled (const Consensus::Params &params, const CBlockIndex *pprev)
 Whether the RTT feature is enabled. More...
 

Variables

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

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.