34 #include <boost/program_options/variables_map.hpp> 38 #include <unordered_map> 48 std::list<cryptonote::transaction>
txes;
58 std::list<crypto::hash> m_known_block_list;
59 std::unordered_map<crypto::hash, block_index> m_hash2blkidx;
62 std::list<cryptonote::transaction> txes;
65 void build_short_history(std::list<crypto::hash> &m_history,
const crypto::hash &m_start);
73 bool init(
const boost::program_options::variables_map& vm);
80 bool handle_incoming_txs(
const std::vector<cryptonote::blobdata>& tx_blobs, std::vector<cryptonote::tx_verification_context>& tvc,
bool keeped_by_block,
bool relayed,
bool do_not_relay);
98 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 {
return false; }
99 bool get_transactions(
const std::vector<crypto::hash>& txs_ids, std::vector<cryptonote::transaction>& txs, std::vector<crypto::hash>& missed_txs)
const {
return false; }
void set_target_blockchain_height(uint64_t)
bool get_test_drop_download()
std::string get_validators_list()
void get_blockchain_top(uint64_t &height, crypto::hash &top_id)
bool fluffy_blocks_enabled() const
uint64_t prevalidate_block_hashes(uint64_t height, const std::vector< crypto::hash > &hashes)
bool get_short_chain_history(std::list< crypto::hash > &ids)
uint64_t get_earliest_ideal_height_for_version(uint8_t version) const
bool find_blockchain_supplement(const std::list< crypto::hash > &qblock_ids, cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request &resp)
virtual void on_transaction_relayed(const cryptonote::blobdata &tx)
bool get_transactions(const std::vector< crypto::hash > &txs_ids, std::vector< cryptonote::transaction > &txs, std::vector< crypto::hash > &missed_txs) const
uint64_t get_target_blockchain_height() const
#define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT
std::list< cryptonote::transaction > txes
cryptonote::Blockchain & get_blockchain_storage()
struct hash_func hashes[]
uint32_t get_blockchain_pruning_seed() const
cryptonote::blobdata blob
bool pad_transactions() const
bool isValidatorsListValid()
mdb_size_t count(MDB_cursor *cur)
bool handle_incoming_tx(const cryptonote::blobdata &tx_blob, cryptonote::tx_verification_context &tvc, bool keeped_by_block, bool relayed, bool do_not_relay)
bool have_block(const crypto::hash &id)
void safesyncmode(const bool)
cryptonote::network_type get_nettype() const
bool pool_has_tx(const crypto::hash &txid) const
bool cleanup_handle_incoming_blocks(bool force_sync=false)
block_index(size_t _height, const crypto::hash &_id, const crypto::hash &_longhash, const cryptonote::block &_blk, const cryptonote::blobdata &_blob, const std::list< cryptonote::transaction > &_txes)
cryptonote::difficulty_type get_block_cumulative_difficulty(uint64_t height) const
unsigned __int64 uint64_t
bool prune_blockchain(uint32_t pruning_seed) const
std::unique_ptr< void, terminate > context
Unique ZMQ context handle, calls zmq_term on destruction.
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
version
Supported socks variants.
bool handle_incoming_block(const cryptonote::blobdata &block_blob, const cryptonote::block *block, cryptonote::block_verification_context &bvc, bool update_miner_blocktemplate=true)
bool get_block_by_hash(const crypto::hash &h, cryptonote::block &blk, bool *orphan=NULL) const
boost::multiprecision::uint128_t difficulty_type
bool get_stat_info(cryptonote::core_stat_info &st_inf)
uint8_t get_hard_fork_version(uint64_t height) const
uint64_t get_current_blockchain_height()
electroneum::basic::list_update_outcome set_validators_list(std::string v_list, bool isEmergencyUpdate=false)
uint8_t get_ideal_hard_fork_version(uint64_t height) const
bool get_pool_transaction(const crypto::hash &id, cryptonote::blobdata &tx_blob) const
bool init(const boost::program_options::variables_map &vm)
bool prepare_handle_incoming_blocks(const std::vector< cryptonote::block_complete_entry > &blocks_entry, std::vector< cryptonote::block > &blocks)
bool get_test_drop_download_height()
bool handle_incoming_txs(const std::vector< cryptonote::blobdata > &tx_blobs, std::vector< cryptonote::tx_verification_context > &tvc, bool keeped_by_block, bool relayed, bool do_not_relay)
uint8_t get_ideal_hard_fork_version() const
size_t get_block_sync_size(uint64_t height) const
void set_block_cumulative_difficulty(uint64_t height, cryptonote::difficulty_type diff)
bool handle_get_objects(cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request &arg, cryptonote::NOTIFY_RESPONSE_GET_OBJECTS::request &rsp, cryptonote::cryptonote_connection_context &context)