mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge #180: Peer details: connection type follow-ups
79a2576af1doc: update ConnectionType Doxygen documentation (Jon Atack)f3153dc08fgui: improve markup handling of connection type tooltip (Jon Atack)4f09615733gui: return inbound {full, block} relay type in peer details (Jon Atack) Pull request description: Three follow-ups to #163: - return relay type for inbound peers - improve markup handling in the tooltip to facilitate translations - update ConnectionType doxygen documentation  ACKs for top commit: hebasto: re-ACK79a2576af1, only suggested changes since my [previous](https://github.com/bitcoin-core/gui/pull/180#pullrequestreview-564894781) review. jarolrod: ACK79a2576af1, tested on macOS 11.1 with Qt 5.15.2 laanwj: Code review ACK79a2576af1Tree-SHA512: 4a8d8f8bfbaefd68e8d1bf3b20d29e4a8e8cfe97b2f8d59d3a4c338a50b61de0a67d97bd8646c04bd5df5a9679c4954b9b46e7cba24bb89f4d0e44e94cf9d66c
This commit is contained in:
11
src/net.h
11
src/net.h
@@ -111,7 +111,8 @@ struct CSerializedNetMsg
|
||||
* connection. Aside from INBOUND, all types are initiated by us.
|
||||
*
|
||||
* If adding or removing types, please update CONNECTION_TYPE_DOC in
|
||||
* src/rpc/net.cpp. */
|
||||
* src/rpc/net.cpp and src/qt/rpcconsole.cpp, as well as the descriptions in
|
||||
* src/qt/guiutil.cpp and src/bitcoin-cli.cpp::NetinfoRequestHandler. */
|
||||
enum class ConnectionType {
|
||||
/**
|
||||
* Inbound connections are those initiated by a peer. This is the only
|
||||
@@ -122,7 +123,7 @@ enum class ConnectionType {
|
||||
|
||||
/**
|
||||
* These are the default connections that we use to connect with the
|
||||
* network. There is no restriction on what is relayed- by default we relay
|
||||
* network. There is no restriction on what is relayed; by default we relay
|
||||
* blocks, addresses & transactions. We automatically attempt to open
|
||||
* MAX_OUTBOUND_FULL_RELAY_CONNECTIONS using addresses from our AddrMan.
|
||||
*/
|
||||
@@ -130,8 +131,8 @@ enum class ConnectionType {
|
||||
|
||||
|
||||
/**
|
||||
* We open manual connections to addresses that users explicitly inputted
|
||||
* via the addnode RPC, or the -connect command line argument. Even if a
|
||||
* We open manual connections to addresses that users explicitly requested
|
||||
* via the addnode RPC or the -addnode/-connect configuration options. Even if a
|
||||
* manual connection is misbehaving, we do not automatically disconnect or
|
||||
* add it to our discouragement filter.
|
||||
*/
|
||||
@@ -150,7 +151,7 @@ enum class ConnectionType {
|
||||
* although in our codebase feeler connections encompass test-before-evict as well.
|
||||
* We make these connections approximately every FEELER_INTERVAL:
|
||||
* first we resolve previously found collisions if they exist (test-before-evict),
|
||||
* otherwise connect to a node from the new table.
|
||||
* otherwise we connect to a node from the new table.
|
||||
*/
|
||||
FEELER,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user