mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-06 21:19:35 +01:00
net: introduce a new connection type for private broadcast
We will open a short-lived connection to a random Tor or I2P peer, send our transaction to that peer and close the connection.
This commit is contained in:
@@ -452,6 +452,7 @@ private:
|
||||
if (conn_type == "block-relay-only") return "block";
|
||||
if (conn_type == "manual" || conn_type == "feeler") return conn_type;
|
||||
if (conn_type == "addr-fetch") return "addr";
|
||||
if (conn_type == "private-broadcast") return "priv";
|
||||
return "";
|
||||
}
|
||||
std::string FormatServices(const UniValue& services)
|
||||
@@ -703,6 +704,7 @@ public:
|
||||
" \"manual\" - peer we manually added using RPC addnode or the -addnode/-connect config options\n"
|
||||
" \"feeler\" - short-lived connection for testing addresses\n"
|
||||
" \"addr\" - address fetch; short-lived connection for requesting addresses\n"
|
||||
" \"priv\" - private broadcast; short-lived connection for broadcasting our transactions\n"
|
||||
" net Network the peer connected through (\"ipv4\", \"ipv6\", \"onion\", \"i2p\", \"cjdns\", or \"npr\" (not publicly routable))\n"
|
||||
" serv Services offered by the peer\n"
|
||||
" \"n\" - NETWORK: peer can serve the full block chain\n"
|
||||
|
||||
Reference in New Issue
Block a user