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:
9 files changed
+30
-2
No files matched your search
@@ -722,6 +722,8 @@ QString ConnectionTypeToQString(ConnectionType conn_type, bool prepend_direction
|
||||
case ConnectionType::FEELER: return prefix + QObject::tr("Feeler");
|
||||
//: Short-lived peer connection type that solicits known addresses from a peer.
|
||||
case ConnectionType::ADDR_FETCH: return prefix + QObject::tr("Address Fetch");
|
||||
//: Short-lived peer connection type that is used for broadcasting privacy-sensitive data.
|
||||
case ConnectionType::PRIVATE_BROADCAST: return prefix + QObject::tr("Private Broadcast");
|
||||
} // no default case, so the compiler can warn about missing cases
|
||||
assert(false);
|
||||
}
|
||||
|
||||
@@ -484,7 +484,10 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
|
||||
tr("Outbound Feeler: short-lived, for testing addresses"),
|
||||
/*: Explanatory text for a short-lived outbound peer connection that is used
|
||||
to request addresses from a peer. */
|
||||
tr("Outbound Address Fetch: short-lived, for soliciting addresses")};
|
||||
tr("Outbound Address Fetch: short-lived, for soliciting addresses"),
|
||||
/*: Explanatory text for a short-lived outbound peer connection that is used
|
||||
to broadcast privacy-sensitive data (like our transactions). */
|
||||
tr("Private broadcast: short-lived, for broadcasting privacy-sensitive transactions")};
|
||||
const QString connection_types_list{"<ul><li>" + Join(CONNECTION_TYPE_DOC, QString("</li><li>")) + "</li></ul>"};
|
||||
ui->peerConnectionTypeLabel->setToolTip(ui->peerConnectionTypeLabel->toolTip().arg(connection_types_list));
|
||||
const std::vector<QString> TRANSPORT_TYPE_DOC{
|
||||
|
||||
Reference in new issue
Block a user