33 #include <boost/program_options/variables_map.hpp> 38 #include <unordered_map> 48 std::list<cryptonote::transaction>
txes;
62 std::list<cryptonote::transaction>
txes;
74 bool init(
const boost::program_options::variables_map&
vm);
100 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; }
101 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)
Definition: core_proxy.h:73
bool has_block_weights(uint64_t height, uint64_t nblocks) const
Definition: core_proxy.h:110
Definition: cryptonote_config.h:297
bool get_test_drop_download()
Definition: core_proxy.h:89
void on_synchronized()
Definition: core_proxy.h:70
int * count
Definition: gmock_stress_test.cc:176
void get_blockchain_top(uint64_t &height, crypto::hash &top_id)
Definition: core_proxy.cpp:236
bool handle_incoming_tx(const cryptonote::tx_blob_entry &tx_blob, cryptonote::tx_verification_context &tvc, cryptonote::relay_method tx_relay, bool relayed)
Definition: core_proxy.cpp:162
bool fluffy_blocks_enabled() const
Definition: core_proxy.h:108
cryptonote::block blk
Definition: core_proxy.h:46
bool get_pool_transaction(const crypto::hash &id, cryptonote::blobdata &tx_blob, cryptonote::relay_category tx_category) const
Definition: core_proxy.h:98
Definition: cryptonote_basic.h:474
bool get_short_chain_history(std::list< crypto::hash > &ids)
Definition: core_proxy.cpp:231
Definition: core_proxy.h:42
uint64_t get_earliest_ideal_height_for_version(uint8_t version) const
Definition: core_proxy.h:106
bool on_idle()
Definition: core_proxy.h:85
std::unordered_map< crypto::hash, block_index > m_hash2blkidx
Definition: core_proxy.h:59
crypto::hash longhash
Definition: core_proxy.h:45
std::list< crypto::hash > m_known_block_list
Definition: core_proxy.h:58
Definition: core_proxy.h:55
virtual uint64_t get_current_blockchain_height() const final
Definition: core_proxy.h:72
crypto::hash get_block_id_by_height(uint64_t height) const
Definition: core_proxy.h:117
bool get_transactions(const std::vector< crypto::hash > &txs_ids, std::vector< cryptonote::transaction > &txs, std::vector< crypto::hash > &missed_txs) const
Definition: core_proxy.h:101
cryptonote::block m_genesis
Definition: core_proxy.h:57
crypto namespace.
Definition: crypto.cpp:60
bool update_checkpoints(const bool skip_dns=false)
Definition: core_proxy.h:93
uint64_t get_target_blockchain_height() const
Definition: core_proxy.h:94
Non-owning sequence of data. Does not deep copy.
Definition: span.h:54
#define BLOCKS_SYNCHRONIZING_DEFAULT_COUNT
Definition: cryptonote_config.h:99
Definition: connection_context.h:42
std::list< cryptonote::transaction > txes
Definition: core_proxy.h:48
Definition: blocks.cpp:12
cryptonote::Blockchain & get_blockchain_storage()
Definition: core_proxy.h:88
Definition: verification_context.h:64
bool have_block_unlocked(const crypto::hash &id, int *where=NULL)
Definition: core_proxy.cpp:248
unsigned char uint8_t
Definition: stdint.h:124
struct hash_func hashes[]
Definition: i_core_events.h:37
uint32_t get_blockchain_pruning_seed() const
Definition: core_proxy.h:113
cryptonote::blobdata blob
Definition: core_proxy.h:47
crypto::hash id
Definition: core_proxy.h:44
Definition: verification_context.h:40
bool get_txpool_complement(const std::vector< crypto::hash > &hashes, std::vector< cryptonote::blobdata > &txes)
Definition: core_proxy.h:115
bool pad_transactions() const
Definition: core_proxy.h:112
unsigned int uint32_t
Definition: stdint.h:126
bool deinit()
Definition: core_proxy.h:75
Definition: argon2_core.h:74
bool add_block(const crypto::hash &_id, const crypto::hash &_longhash, const cryptonote::block &_blk, const cryptonote::blobdata &_blob)
Definition: core_proxy.cpp:274
void safesyncmode(const bool)
Definition: core_proxy.h:71
cryptonote::network_type get_nettype() const
Definition: core_proxy.h:97
block_index()
Definition: core_proxy.h:50
bool pool_has_tx(const crypto::hash &txid) const
Definition: core_proxy.h:99
bool cleanup_handle_incoming_blocks(bool force_sync=false)
Definition: core_proxy.h:92
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)
Definition: core_proxy.h:51
cryptonote::difficulty_type get_block_cumulative_difficulty(uint64_t height) const
Definition: core_proxy.h:107
unsigned __int64 uint64_t
Definition: stdint.h:136
std::list< cryptonote::transaction > txes
Definition: core_proxy.h:62
bool prune_blockchain(uint32_t pruning_seed) const
Definition: core_proxy.h:114
std::unique_ptr< void, terminate > context
Unique ZMQ context handle, calls zmq_term on destruction.
Definition: zmq.h:105
size_t height
Definition: core_proxy.h:43
uint64_t prevalidate_block_hashes(uint64_t height, const std::vector< crypto::hash > &hashes, const std::vector< uint64_t > &weights)
Definition: core_proxy.h:109
bool is_within_compiled_block_hash_area(uint64_t height) const
Definition: core_proxy.h:111
static constexpr crypto::hash null_hash
Definition: hash.h:92
Definition: cryptonote_protocol_defs.h:121
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
Definition: core_proxy.h:100
Definition: misc_language.h:103
version
Supported socks variants.
Definition: socks.h:57
relay_method tx_relay
Definition: levin_notify.cpp:545
void build_short_history(std::list< crypto::hash > &m_history, const crypto::hash &m_start)
Definition: core_proxy.cpp:259
bool handle_incoming_block(const cryptonote::blobdata &block_blob, const cryptonote::block *block, cryptonote::block_verification_context &bvc, bool update_miner_blocktemplate=true)
Definition: core_proxy.cpp:205
virtual void on_transactions_relayed(epee::span< const cryptonote::blobdata > tx_blobs, cryptonote::relay_method tx_relay)
Definition: core_proxy.h:96
std::string blobdata
Definition: blobdatatype.h:39
virtual bool is_synchronized() const final
Definition: core_proxy.h:69
bool get_block_by_hash(const crypto::hash &h, cryptonote::block &blk, bool *orphan=NULL) const
Definition: core_proxy.h:102
network_type
Definition: cryptonote_config.h:295
randomx_vm * vm
Definition: tests.cpp:20
void pause_mine()
Definition: core_proxy.h:83
boost::multiprecision::uint128_t difficulty_type
Definition: difficulty.h:41
crypto::hash m_lastblk
Definition: core_proxy.h:61
uint8_t get_hard_fork_version(uint64_t height) const
Definition: core_proxy.h:105
Definition: core_proxy.h:40
bool get_pool_transaction_hashes(std::vector< crypto::hash > &txs, bool include_unrelayed_txes=true) const
Definition: core_proxy.h:116
uint8_t get_ideal_hard_fork_version(uint64_t height) const
Definition: core_proxy.h:104
bool init(const boost::program_options::variables_map &vm)
Definition: core_proxy.cpp:241
bool prepare_handle_incoming_blocks(const std::vector< cryptonote::block_complete_entry > &blocks_entry, std::vector< cryptonote::block > &blocks)
Definition: core_proxy.h:91
bool get_test_drop_download_height()
Definition: core_proxy.h:90
relay_method
Methods tracking how a tx was received and relayed.
Definition: enums.h:36
POD_CLASS hash
Definition: hash.h:48
uint8_t get_ideal_hard_fork_version() const
Definition: core_proxy.h:103
size_t get_block_sync_size(uint64_t height) const
Definition: core_proxy.h:95
relay_category
Definition: blockchain_db.h:109
void resume_mine()
Definition: core_proxy.h:84
bool have_block(const crypto::hash &id, int *where=NULL)
Definition: core_proxy.cpp:255
#define const
Definition: ipfrdr.c:80
bool find_blockchain_supplement(const std::list< crypto::hash > &qblock_ids, bool clip_pruned, cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request &resp)
Definition: core_proxy.h:86
static uint64_t h
Definition: blockchain_stats.cpp:55
bool handle_incoming_txs(const std::vector< cryptonote::tx_blob_entry > &tx_blobs, std::vector< cryptonote::tx_verification_context > &tvc, cryptonote::relay_method tx_relay, bool relayed)
Definition: core_proxy.cpp:192
bool handle_get_objects(cryptonote::NOTIFY_REQUEST_GET_OBJECTS::request &arg, cryptonote::NOTIFY_RESPONSE_GET_OBJECTS::request &rsp, cryptonote::cryptonote_connection_context &context)
Definition: core_proxy.h:87
Definition: blockchain.h:100
weights
Definition: block_weight.py:18