Enum bitcoind::P2P [−][src]
pub enum P2P { No, Yes, Connect(SocketAddrV4, bool), }
Expand description
Enum to specify p2p settings
Variants
the node doesn’t open a p2p port and work in standalone mode
the node open a p2p port
The node open a p2p port and also connects to the url given as parameter, it’s handy to
initialize this with BitcoinD::p2p_connect of another node. The bool
parameter indicates
if the node can accept connection too.
Tuple Fields of Connect
0: SocketAddrV4
1: bool