Dash Core  0.12.2.1
P2P Digital Currency
CSuperblockManager Class Reference

#include <governance-classes.h>

Static Public Member Functions

static bool IsSuperblockTriggered (int nBlockHeight)
 
static void CreateSuperblock (CMutableTransaction &txNewRet, int nBlockHeight, std::vector< CTxOut > &voutSuperblockRet)
 
static std::string GetRequiredPaymentsString (int nBlockHeight)
 
static bool IsValid (const CTransaction &txNew, int nBlockHeight, CAmount blockReward)
 

Static Private Member Functions

static bool GetBestSuperblock (CSuperblock_sptr &pSuperblockRet, int nBlockHeight)
 

Detailed Description

Superblock Manager

Class for querying superblock information

Definition at line 66 of file governance-classes.h.

Member Function Documentation

◆ CreateSuperblock()

void CSuperblockManager::CreateSuperblock ( CMutableTransaction txNewRet,
int  nBlockHeight,
std::vector< CTxOut > &  voutSuperblockRet 
)
static

Create Superblock Payments

  • Create the correct payment structure for a given superblock

Definition at line 394 of file governance-classes.cpp.

Referenced by FillBlockPayments().

◆ GetBestSuperblock()

bool CSuperblockManager::GetBestSuperblock ( CSuperblock_sptr pSuperblockRet,
int  nBlockHeight 
)
staticprivate

Definition at line 346 of file governance-classes.cpp.

Referenced by CreateSuperblock(), GetRequiredPaymentsString(), and IsValid().

◆ GetRequiredPaymentsString()

std::string CSuperblockManager::GetRequiredPaymentsString ( int  nBlockHeight)
static

Get Required Payment String

  • Get a string representing the payments required for a given superblock

Definition at line 733 of file governance-classes.cpp.

Referenced by GetRequiredPaymentsString().

◆ IsSuperblockTriggered()

bool CSuperblockManager::IsSuperblockTriggered ( int  nBlockHeight)
static

Is Superblock Triggered

  • Does this block have a non-executed and actived trigger?

Definition at line 281 of file governance-classes.cpp.

Referenced by FillBlockPayments(), GetRequiredPaymentsString(), IsBlockPayeeValid(), and IsBlockValueValid().

◆ IsValid()

bool CSuperblockManager::IsValid ( const CTransaction txNew,
int  nBlockHeight,
CAmount  blockReward 
)
static

Definition at line 451 of file governance-classes.cpp.

Referenced by IsBlockPayeeValid(), and IsBlockValueValid().


The documentation for this class was generated from the following files: