Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
avalanche::StakeContenderCacheEntry Struct Reference

#include <stakecontendercache.h>

Collaboration diagram for avalanche::StakeContenderCacheEntry:
[legend]

Public Member Functions

 StakeContenderCacheEntry (const BlockHash &_prevblockhash, int _blockheight, const ProofId &_proofid, uint8_t _status, const CScript &_payoutScriptPubkey, uint32_t _score)
 
double computeRewardRank () const
 
StakeContenderId getStakeContenderId () const
 
bool isAccepted () const
 
bool isInWinnerSet () const
 

Public Attributes

BlockHash prevblockhash
 
int blockheight
 
ProofId proofid
 
uint8_t status
 
CScript payoutScriptPubkey
 
uint32_t score
 

Detailed Description

Definition at line 33 of file stakecontendercache.h.

Constructor & Destructor Documentation

◆ StakeContenderCacheEntry()

avalanche::StakeContenderCacheEntry::StakeContenderCacheEntry ( const BlockHash _prevblockhash,
int  _blockheight,
const ProofId _proofid,
uint8_t  _status,
const CScript _payoutScriptPubkey,
uint32_t  _score 
)
inline

Definition at line 43 of file stakecontendercache.h.

Member Function Documentation

◆ computeRewardRank()

double avalanche::StakeContenderCacheEntry::computeRewardRank ( ) const
inline

Definition at line 51 of file stakecontendercache.h.

Here is the call graph for this function:

◆ getStakeContenderId()

StakeContenderId avalanche::StakeContenderCacheEntry::getStakeContenderId ( ) const
inline

Definition at line 54 of file stakecontendercache.h.

Here is the caller graph for this function:

◆ isAccepted()

bool avalanche::StakeContenderCacheEntry::isAccepted ( ) const
inline

Definition at line 57 of file stakecontendercache.h.

◆ isInWinnerSet()

bool avalanche::StakeContenderCacheEntry::isInWinnerSet ( ) const
inline

Definition at line 58 of file stakecontendercache.h.

Member Data Documentation

◆ blockheight

int avalanche::StakeContenderCacheEntry::blockheight

Definition at line 35 of file stakecontendercache.h.

◆ payoutScriptPubkey

CScript avalanche::StakeContenderCacheEntry::payoutScriptPubkey

Definition at line 40 of file stakecontendercache.h.

◆ prevblockhash

BlockHash avalanche::StakeContenderCacheEntry::prevblockhash

Definition at line 34 of file stakecontendercache.h.

◆ proofid

ProofId avalanche::StakeContenderCacheEntry::proofid

Definition at line 36 of file stakecontendercache.h.

◆ score

uint32_t avalanche::StakeContenderCacheEntry::score

Definition at line 41 of file stakecontendercache.h.

◆ status

uint8_t avalanche::StakeContenderCacheEntry::status

Definition at line 37 of file stakecontendercache.h.


The documentation for this struct was generated from the following file: