mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-28 01:57:06 +02:00
tracing: add outbound connection tracepoint
This commit is contained in:
@@ -105,6 +105,18 @@ Arguments passed:
|
||||
4. Network the peer connects from as `uint32` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See `Network` enum in `netaddress.h`.
|
||||
5. Number of existing inbound connections as `uint64` including the newly opened inbound connection.
|
||||
|
||||
#### Tracepoint `net:outbound_connection`
|
||||
|
||||
Is called when a new outbound connection is opened by us. Passes information about
|
||||
the peer and the number of outbound connections including the newly opened connection.
|
||||
|
||||
Arguments passed:
|
||||
1. Peer ID as `int64`
|
||||
2. Peer address and port (IPv4, IPv6, Tor v3, I2P, ...) as `pointer to C-style String` (max. length 68 characters)
|
||||
3. Connection Type (inbound, feeler, outbound-full-relay, ...) as `pointer to C-style String` (max. length 20 characters)
|
||||
4. Network of the peer as `uint32` (1 = IPv4, 2 = IPv6, 3 = Onion, 4 = I2P, 5 = CJDNS). See `Network` enum in `netaddress.h`.
|
||||
5. Number of existing outbound connections as `uint64` including the newly opened outbound connection.
|
||||
|
||||
### Context `validation`
|
||||
|
||||
#### Tracepoint `validation:block_connected`
|
||||
|
Reference in New Issue
Block a user