BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
78 std::vector<message_hash_type>& contained_transaction_msg_ids ) = 0;
105 virtual std::vector<item_hash_t>
get_block_ids(
const std::vector<item_hash_t>& blockchain_synopsis,
106 uint32_t& remaining_item_count,
107 uint32_t limit = 2000) = 0;
134 uint32_t number_of_blocks_after_reference_point) = 0;
144 virtual void sync_status( uint32_t item_type, uint32_t item_count ) = 0;
190 class node :
public std::enable_shared_from_this<node>
193 explicit node(
const std::string& user_agent);
216 void add_seed_nodes(
const std::vector<std::string>& seeds )
const;
270 const std::vector<std::string>& advertise_or_exclude_list = std::vector<std::string>() )
const;
295 const std::vector<uint32_t>& hard_fork_block_numbers )
const;
virtual bool handle_block(const graphene::net::block_message &blk_msg, bool sync_mode, std::vector< message_hash_type > &contained_transaction_msg_ids)=0
Called when a new block comes in from the network.
An order-perserving dictionary of variant's.
virtual fc::ip::endpoint get_actual_listening_endpoint() const
virtual uint8_t get_current_block_interval_in_seconds() const =0
node_id_t get_node_id() const
virtual void broadcast_transaction(const signed_transaction &trx) const
FC_REFLECT(graphene::net::message_propagation_data,(received_time)(validated_time)(originating_peer))
void load_configuration(const fc::path &configuration_directory) const
void set_accept_incoming_connections(bool accept) const
fc::time_point received_time
node(const std::string &user_agent)
void set_advertise_algorithm(const std::string &algo, const std::vector< std::string > &advertise_or_exclude_list=std::vector< std::string >()) const
virtual chain_id_type get_chain_id() const =0
message_propagation_data get_block_propagation_data(const graphene::protocol::block_id_type &block_id) const
virtual void connect_to_endpoint(const fc::ip::endpoint &ep) const
virtual void handle_transaction(const graphene::net::trx_message &trx_msg)=0
Called when a new transaction comes in from the network.
std::shared_ptr< detail::node_impl > node_impl_ptr
message_propagation_data get_tx_propagation_data(const graphene::protocol::transaction_id_type &transaction_id) const
std::shared_ptr< node > node_ptr
void set_node_delegate(std::shared_ptr< node_delegate > del) const
virtual item_hash_t get_head_block_id() const =0
void add_seed_node(const std::string &in) const
virtual void connect_to_p2p_network() const
void clear_peer_database() const
provides application independent P2P broadcast and data synchronization
adds a signature to a transaction
node_id_t originating_peer
virtual void sync_status(uint32_t item_type, uint32_t item_count)=0
wraps boost::filesystem::path to provide platform independent path manipulation.
void connect(AsyncSocket &sock, const EndpointType &ep)
wraps boost::asio::socket::async_connect
virtual void handle_message(const message &message_to_process)=0
Called when a new message comes in from the network other than a block or a transaction....
fc::variant_object network_get_usage_stats() const
virtual void broadcast(const message &item_to_broadcast) const
virtual std::vector< item_hash_t > get_block_ids(const std::vector< item_hash_t > &blockchain_synopsis, uint32_t &remaining_item_count, uint32_t limit=2000)=0
fc::variant_object get_call_statistics() const
void set_inbound_endpoint(const fc::ip::endpoint &ep) const
virtual uint32_t get_connection_count() const
virtual void connection_count_changed(uint32_t c)=0
void accept(AcceptorType &acc, SocketType &sock)
wraps boost::asio::async_accept
virtual void error_encountered(const std::string &message, const fc::oexception &error)=0
void add_node(const fc::ip::endpoint &ep) const
fc::time_point validated_time
void set_advanced_node_parameters(const fc::variant_object ¶ms) const
void set_connect_to_new_peers(bool connect) const
fc::variant_object network_get_info() const
virtual uint32_t estimate_last_known_fork_from_git_revision_timestamp(uint32_t unix_timestamp) const =0
virtual void sync_from(const item_id ¤t_head_block, const std::vector< uint32_t > &hard_fork_block_numbers) const
virtual uint32_t get_block_number(const item_hash_t &block_id)=0
virtual fc::time_point_sec get_block_time(const item_hash_t &block_id)=0
void set_total_bandwidth_limit(uint32_t upload_bytes_per_second, uint32_t download_bytes_per_second) const
void add_seed_nodes(const std::vector< std::string > &seeds) const
provides stack-based nullable value similar to boost::optional
virtual bool has_item(const net::item_id &id)=0
fc::variant_object get_advanced_node_parameters() const
std::vector< peer_status > get_connected_peers() const
void set_listen_endpoint(const fc::ip::endpoint &ep, bool wait_if_not_available) const
void set_allowed_peers(const std::vector< node_id_t > &allowed_peers) const
virtual void listen_to_p2p_network() const
std::vector< potential_peer_record > get_potential_peers() const
virtual ~node_delegate()=default
virtual message get_item(const item_id &id)=0
virtual std::vector< item_hash_t > get_blockchain_synopsis(const item_hash_t &reference_point, uint32_t number_of_blocks_after_reference_point)=0
bool is_connected() const
used by node reports status to client or fetch data from client