BitLab 0.1.0
BitLab: A Browser for the Bitcoin P2P Network and Blockchain
Loading...
Searching...
No Matches
Node Struct Reference

The structure to store information about a connected peer. More...

#include <peer_connection.h>

Data Fields

char ip_address [64]
 
uint16_t port
 
int socket_fd
 
pthread_t thread
 
int is_connected
 
int operation_in_progress
 
uint64_t compact_blocks
 
uint64_t fee_rate
 

Detailed Description

The structure to store information about a connected peer.

Parameters
ip_addressThe IP address of the peer.
portThe port of the peer.
socket_fdThe socket file descriptor for communication.
threadThe thread assigned to this connection.
is_connectedThe connection status.
operation_in_progressThe operation status.
compact_blocksDoes peer want to use compact blocks.
fee_rateMin fee rate in sat/kB of transaction that peer allows.

Definition at line 49 of file peer_connection.h.

Field Documentation

◆ compact_blocks

uint64_t Node::compact_blocks

Definition at line 57 of file peer_connection.h.

Referenced by peer_communication().

◆ fee_rate

uint64_t Node::fee_rate

Definition at line 58 of file peer_connection.h.

Referenced by peer_communication().

◆ ip_address

◆ is_connected

int Node::is_connected

◆ operation_in_progress

◆ port

uint16_t Node::port

Definition at line 52 of file peer_connection.h.

Referenced by disconnect(), and initialize_node().

◆ socket_fd

◆ thread

pthread_t Node::thread

Definition at line 54 of file peer_connection.h.

Referenced by create_peer_thread(), and disconnect().


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