Monero
Loading...
Searching...
No Matches
test_core Class Reference
Inheritance diagram for test_core:
Collaboration diagram for test_core:

Public Member Functions

virtual bool is_synchronized () const final
void on_synchronized ()
void safesyncmode (const bool)
virtual uint64_t get_current_blockchain_height () const final
void set_target_blockchain_height (uint64_t)
bool init (const boost::program_options::variables_map &vm)
bool deinit ()
bool get_short_chain_history (std::list< crypto::hash > &ids, uint64_t &current_height) const
bool have_block (const crypto::hash &id, int *where=NULL) const
bool have_block_unlocked (const crypto::hash &id, int *where=NULL) const
void get_blockchain_top (uint64_t &height, crypto::hash &top_id) const
bool handle_incoming_tx (const cryptonote::blobdata &tx_blob, cryptonote::tx_verification_context &tvc, cryptonote::relay_method tx_relay, bool relayed)
bool handle_single_incoming_block (const cryptonote::blobdata &block_blob, const cryptonote::block *b, cryptonote::block_verification_context &bvc, cryptonote::pool_supplement &extra_block_txs, bool update_miner_blocktemplate=true)
bool handle_incoming_block (const cryptonote::blobdata &block_blob, const cryptonote::block *block, cryptonote::block_verification_context &bvc, bool update_miner_blocktemplate=true)
bool handle_incoming_block (const cryptonote::blobdata &block_blob, const cryptonote::block *block, cryptonote::block_verification_context &bvc, cryptonote::pool_supplement &extra_block_txs, bool update_miner_blocktemplate=true)
void pause_mine ()
void resume_mine ()
bool on_idle ()
bool find_blockchain_supplement (const std::list< crypto::hash > &qblock_ids, bool clip_pruned, cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request &resp)
bool handle_get_objects (cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request &arg, cryptonote::NOTIFY_RESPONSE_GET_OBJECTS::request &rsp, cryptonote::cryptonote_connection_context &context)
cryptonote::blockchain_storage & get_blockchain_storage ()
bool get_test_drop_download () const
bool get_test_drop_download_height () const
bool prepare_handle_incoming_blocks (const std::vector< cryptonote::block_complete_entry > &blocks_entry, std::vector< cryptonote::block > &blocks)
bool cleanup_handle_incoming_blocks (bool force_sync=false)
bool check_incoming_block_size (const cryptonote::blobdata &block_blob) const
bool update_checkpoints (const bool skip_dns=false)
uint64_t get_target_blockchain_height () const
size_t get_block_sync_size (uint64_t height) const
virtual void on_transactions_relayed (epee::span< const cryptonote::blobdata > tx_blobs, cryptonote::relay_method tx_relay)
cryptonote::network_type get_nettype () const
bool get_pool_transaction (const crypto::hash &id, cryptonote::blobdata &tx_blob, cryptonote::relay_category tx_category) const
bool pool_has_tx (const crypto::hash &txid) const
bool get_blocks (uint64_t start_offset, size_t count, std::vector< std::pair< cryptonote::blobdata, cryptonote::block > > &blocks, std::vector< cryptonote::blobdata > &txs) const
bool get_transactions (const std::vector< crypto::hash > &txs_ids, std::vector< cryptonote::blobdata > &txs, std::vector< crypto::hash > &missed_txs, bool pruned=false) const
bool get_transactions (const std::vector< crypto::hash > &txs_ids, std::vector< cryptonote::transaction > &txs, std::vector< crypto::hash > &missed_txs) const
bool get_block_by_hash (const crypto::hash &h, cryptonote::block &blk, bool *orphan=NULL) const
uint8_t get_ideal_hard_fork_version () const
uint8_t get_ideal_hard_fork_version (uint64_t height) const
uint8_t get_hard_fork_version (uint64_t height) const
uint64_t get_earliest_ideal_height_for_version (uint8_t version) const
cryptonote::difficulty_type get_block_cumulative_difficulty (uint64_t height) const
uint64_t prevalidate_block_hashes (uint64_t height, const std::vector< crypto::hash > &hashes, const std::vector< uint64_t > &weights)
bool pad_transactions ()
uint32_t get_blockchain_pruning_seed () const
bool prune_blockchain (uint32_t pruning_seed=0)
bool is_within_compiled_block_hash_area (uint64_t height) const
bool has_block_weights (uint64_t height, uint64_t nblocks) const
bool get_txpool_complement (const std::vector< crypto::hash > &hashes, std::vector< cryptonote::blobdata > &txes)
bool get_pool_transaction_hashes (std::vector< crypto::hash > &txs, bool include_unrelayed_txes=true) const
crypto::hash get_block_id_by_height (uint64_t height) const
void stop ()
Public Member Functions inherited from cryptonote::i_core_events
virtual ~i_core_events () noexcept

Member Function Documentation

◆ check_incoming_block_size()

bool test_core::check_incoming_block_size ( const cryptonote::blobdata & block_blob) const
inline

◆ cleanup_handle_incoming_blocks()

bool test_core::cleanup_handle_incoming_blocks ( bool force_sync = false)
inline

◆ deinit()

bool test_core::deinit ( )
inline

◆ find_blockchain_supplement()

bool test_core::find_blockchain_supplement ( const std::list< crypto::hash > & qblock_ids,
bool clip_pruned,
cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request & resp )
inline

◆ get_block_by_hash()

bool test_core::get_block_by_hash ( const crypto::hash & h,
cryptonote::block & blk,
bool * orphan = NULL ) const
inline

◆ get_block_cumulative_difficulty()

cryptonote::difficulty_type test_core::get_block_cumulative_difficulty ( uint64_t height) const
inline

◆ get_block_id_by_height()

crypto::hash test_core::get_block_id_by_height ( uint64_t height) const
inline

◆ get_block_sync_size()

size_t test_core::get_block_sync_size ( uint64_t height) const
inline

◆ get_blockchain_pruning_seed()

uint32_t test_core::get_blockchain_pruning_seed ( ) const
inline

◆ get_blockchain_storage()

cryptonote::blockchain_storage & test_core::get_blockchain_storage ( )
inline

◆ get_blockchain_top()

void test_core::get_blockchain_top ( uint64_t & height,
crypto::hash & top_id ) const
inline

◆ get_blocks()

bool test_core::get_blocks ( uint64_t start_offset,
size_t count,
std::vector< std::pair< cryptonote::blobdata, cryptonote::block > > & blocks,
std::vector< cryptonote::blobdata > & txs ) const
inline

◆ get_current_blockchain_height()

virtual uint64_t test_core::get_current_blockchain_height ( ) const
inlinefinalvirtual

◆ get_earliest_ideal_height_for_version()

uint64_t test_core::get_earliest_ideal_height_for_version ( uint8_t version) const
inline

◆ get_hard_fork_version()

uint8_t test_core::get_hard_fork_version ( uint64_t height) const
inline

◆ get_ideal_hard_fork_version() [1/2]

uint8_t test_core::get_ideal_hard_fork_version ( ) const
inline

◆ get_ideal_hard_fork_version() [2/2]

uint8_t test_core::get_ideal_hard_fork_version ( uint64_t height) const
inline

◆ get_nettype()

cryptonote::network_type test_core::get_nettype ( ) const
inline

◆ get_pool_transaction()

bool test_core::get_pool_transaction ( const crypto::hash & id,
cryptonote::blobdata & tx_blob,
cryptonote::relay_category tx_category ) const
inline

◆ get_pool_transaction_hashes()

bool test_core::get_pool_transaction_hashes ( std::vector< crypto::hash > & txs,
bool include_unrelayed_txes = true ) const
inline

◆ get_short_chain_history()

bool test_core::get_short_chain_history ( std::list< crypto::hash > & ids,
uint64_t & current_height ) const
inline

◆ get_target_blockchain_height()

uint64_t test_core::get_target_blockchain_height ( ) const
inline

◆ get_test_drop_download()

bool test_core::get_test_drop_download ( ) const
inline

◆ get_test_drop_download_height()

bool test_core::get_test_drop_download_height ( ) const
inline

◆ get_transactions() [1/2]

bool test_core::get_transactions ( const std::vector< crypto::hash > & txs_ids,
std::vector< cryptonote::blobdata > & txs,
std::vector< crypto::hash > & missed_txs,
bool pruned = false ) const
inline

◆ get_transactions() [2/2]

bool test_core::get_transactions ( const std::vector< crypto::hash > & txs_ids,
std::vector< cryptonote::transaction > & txs,
std::vector< crypto::hash > & missed_txs ) const
inline

◆ get_txpool_complement()

bool test_core::get_txpool_complement ( const std::vector< crypto::hash > & hashes,
std::vector< cryptonote::blobdata > & txes )
inline

◆ handle_get_objects()

◆ handle_incoming_block() [1/2]

bool test_core::handle_incoming_block ( const cryptonote::blobdata & block_blob,
const cryptonote::block * block,
cryptonote::block_verification_context & bvc,
bool update_miner_blocktemplate = true )
inline

◆ handle_incoming_block() [2/2]

bool test_core::handle_incoming_block ( const cryptonote::blobdata & block_blob,
const cryptonote::block * block,
cryptonote::block_verification_context & bvc,
cryptonote::pool_supplement & extra_block_txs,
bool update_miner_blocktemplate = true )
inline

◆ handle_incoming_tx()

bool test_core::handle_incoming_tx ( const cryptonote::blobdata & tx_blob,
cryptonote::tx_verification_context & tvc,
cryptonote::relay_method tx_relay,
bool relayed )
inline

◆ handle_single_incoming_block()

bool test_core::handle_single_incoming_block ( const cryptonote::blobdata & block_blob,
const cryptonote::block * b,
cryptonote::block_verification_context & bvc,
cryptonote::pool_supplement & extra_block_txs,
bool update_miner_blocktemplate = true )
inline

◆ has_block_weights()

bool test_core::has_block_weights ( uint64_t height,
uint64_t nblocks ) const
inline

◆ have_block()

bool test_core::have_block ( const crypto::hash & id,
int * where = NULL ) const
inline

◆ have_block_unlocked()

bool test_core::have_block_unlocked ( const crypto::hash & id,
int * where = NULL ) const
inline

◆ init()

bool test_core::init ( const boost::program_options::variables_map & vm)
inline

◆ is_synchronized()

virtual bool test_core::is_synchronized ( ) const
inlinefinalvirtual

◆ is_within_compiled_block_hash_area()

bool test_core::is_within_compiled_block_hash_area ( uint64_t height) const
inline

◆ on_idle()

bool test_core::on_idle ( )
inline

◆ on_synchronized()

void test_core::on_synchronized ( )
inline

◆ on_transactions_relayed()

virtual void test_core::on_transactions_relayed ( epee::span< const cryptonote::blobdata > tx_blobs,
cryptonote::relay_method tx_relay )
inlinevirtual

◆ pad_transactions()

bool test_core::pad_transactions ( )
inline

◆ pause_mine()

void test_core::pause_mine ( )
inline

◆ pool_has_tx()

bool test_core::pool_has_tx ( const crypto::hash & txid) const
inline

◆ prepare_handle_incoming_blocks()

bool test_core::prepare_handle_incoming_blocks ( const std::vector< cryptonote::block_complete_entry > & blocks_entry,
std::vector< cryptonote::block > & blocks )
inline

◆ prevalidate_block_hashes()

uint64_t test_core::prevalidate_block_hashes ( uint64_t height,
const std::vector< crypto::hash > & hashes,
const std::vector< uint64_t > & weights )
inline

◆ prune_blockchain()

bool test_core::prune_blockchain ( uint32_t pruning_seed = 0)
inline

◆ resume_mine()

void test_core::resume_mine ( )
inline

◆ safesyncmode()

void test_core::safesyncmode ( const bool )
inline

◆ set_target_blockchain_height()

void test_core::set_target_blockchain_height ( uint64_t )
inline

◆ stop()

void test_core::stop ( )
inline

◆ update_checkpoints()

bool test_core::update_checkpoints ( const bool skip_dns = false)
inline

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