|
16 | 16 | #include <chainparams.h>
|
17 | 17 | #include <interfaces/node.h>
|
18 | 18 | #include <netbase.h>
|
19 |
| -#include <rpc/server.h> |
20 | 19 | #include <rpc/client.h>
|
| 20 | +#include <rpc/server.h> |
21 | 21 | #include <util/strencodings.h>
|
| 22 | +#include <util/string.h> |
22 | 23 | #include <util/system.h>
|
23 | 24 | #include <util/threadnames.h>
|
24 | 25 |
|
@@ -459,11 +460,22 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
|
459 | 460 |
|
460 | 461 | ui->splitter->restoreState(settings.value("PeersTabSplitterSizes").toByteArray());
|
461 | 462 |
|
462 |
| - QChar nonbreaking_hyphen(8209); |
| 463 | + constexpr QChar nonbreaking_hyphen(8209); |
| 464 | + const std::vector<QString> CONNECTION_TYPE_DOC{ |
| 465 | + tr("Inbound Full/Block Relay: initiated by peer"), |
| 466 | + tr("Outbound Full Relay: default"), |
| 467 | + tr("Outbound Block Relay: does not relay transactions or addresses"), |
| 468 | + tr("Outbound Manual: added using RPC %1 or %2/%3 configuration options") |
| 469 | + .arg("addnode") |
| 470 | + .arg(QString(nonbreaking_hyphen) + "addnode") |
| 471 | + .arg(QString(nonbreaking_hyphen) + "connect"), |
| 472 | + tr("Outbound Feeler: short-lived, for testing addresses"), |
| 473 | + tr("Outbound Address Fetch: short-lived, for soliciting addresses")}; |
| 474 | + const QString list{"<ul><li>" + Join(CONNECTION_TYPE_DOC, QString("</li><li>")) + "</li></ul>"}; |
| 475 | + ui->peerConnectionTypeLabel->setToolTip(ui->peerConnectionTypeLabel->toolTip().arg(list)); |
463 | 476 | ui->dataDir->setToolTip(ui->dataDir->toolTip().arg(QString(nonbreaking_hyphen) + "datadir"));
|
464 | 477 | ui->blocksDir->setToolTip(ui->blocksDir->toolTip().arg(QString(nonbreaking_hyphen) + "blocksdir"));
|
465 | 478 | ui->openDebugLogfileButton->setToolTip(ui->openDebugLogfileButton->toolTip().arg(PACKAGE_NAME));
|
466 |
| - ui->peerConnectionTypeLabel->setToolTip(ui->peerConnectionTypeLabel->toolTip().arg("addnode").arg(QString(nonbreaking_hyphen) + "addnode").arg(QString(nonbreaking_hyphen) + "connect")); |
467 | 479 |
|
468 | 480 | if (platformStyle->getImagesOnButtons()) {
|
469 | 481 | ui->openDebugLogfileButton->setIcon(platformStyle->SingleColorIcon(":/icons/export"));
|
|
0 commit comments