Electroneum
Public Member Functions | Public Attributes | Private Attributes | List of all members
cryptonote::block Struct Reference

#include <cryptonote_basic.h>

Inheritance diagram for cryptonote::block:
Inheritance graph
[legend]
Collaboration diagram for cryptonote::block:
Collaboration graph
[legend]

Public Member Functions

 block ()
 
 block (const block &b)
 
blockoperator= (const block &b)
 
void invalidate_hashes ()
 
bool is_hash_valid () const
 
void set_hash_valid (bool v) const
 
 if (!typename Archive< W >::is_saving()) set_hash_valid(false)
 
 if (tx_hashes.size() > CRYPTONOTE_MAX_TX_PER_BLOCK) return false
 

Public Attributes

transaction miner_tx
 
std::vector< crypto::hashtx_hashes
 
std::vector< uint8_t > signature
 
std::vector< uint8_t > signatory
 
crypto::hash hash
 
- Public Attributes inherited from cryptonote::block_header
uint8_t major_version
 
uint8_t minor_version
 
uint64_t timestamp
 
crypto::hash prev_id
 
uint32_t nonce
 

Private Attributes

std::atomic< boolhash_valid
 

Constructor & Destructor Documentation

◆ block() [1/2]

cryptonote::block::block ( )
inline

◆ block() [2/2]

cryptonote::block::block ( const block b)
inline

Member Function Documentation

◆ if() [1/2]

cryptonote::block::if ( !typename Archive< W >  ::is_saving())

◆ if() [2/2]

cryptonote::block::if ( tx_hashes.  size(),
CRYPTONOTE_MAX_TX_PER_BLOCK   
)

◆ invalidate_hashes()

void cryptonote::block::invalidate_hashes ( )
inline

◆ is_hash_valid()

bool cryptonote::block::is_hash_valid ( ) const
inline

◆ operator=()

block& cryptonote::block::operator= ( const block b)
inline

◆ set_hash_valid()

void cryptonote::block::set_hash_valid ( bool  v) const
inline

Member Data Documentation

◆ hash

crypto::hash cryptonote::block::hash
mutable

◆ hash_valid

std::atomic<bool> cryptonote::block::hash_valid
mutableprivate

◆ miner_tx

transaction cryptonote::block::miner_tx

◆ signatory

std::vector<uint8_t> cryptonote::block::signatory
mutable

◆ signature

std::vector<uint8_t> cryptonote::block::signature
mutable

◆ tx_hashes

std::vector<crypto::hash> cryptonote::block::tx_hashes

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