Module: Bitcoin::Network

Defined in:
lib/bitcoin/network.rb,
lib/bitcoin/network/peer.rb,
lib/bitcoin/network/pool.rb,
lib/bitcoin/network/connection.rb,
lib/bitcoin/network/peer_discovery.rb,
lib/bitcoin/network/message_handler.rb

Defined Under Namespace

Modules: MessageHandler Classes: Connection, Peer, PeerDiscovery, Pool

Constant Summary collapse

PING_INTERVAL =

Time between pings automatically sent out for latency probing and keepalive (in seconds).

2 * 60
TIMEOUT_INTERVAL =

Time after which to disconnect, after waiting for a ping response (or inactivity).

20 * 60
MAX_OUTBOUND_CONNECTIONS =

Maximum number of automatic outgoing nodes

4