Skip to content

Commit df6d666

Browse files
Merge dashpay#5998: backport: (scripted-diff) Merge bitcoin#21836, 21710, 21753
e0d9dc1 scripted-diff: Merge bitcoin#21836: Replace three dots with ellipsis in the UI string (Vijay) 7bd0262 Merge bitcoin#21753: doc: add -addrinfo to tor docs (W. J. van der Laan) 6350b0c Merge bitcoin#21710: doc: update helps for addnode rpc and -addnode/-maxconnections config options (W. J. van der Laan) Pull request description: bitcoin backports Top commit has no ACKs. Tree-SHA512: 0aafc4ac01f13418921d3cc4f13f42e7a4c4688918de3a801d9f7f7e6290d33b6e9408689866aef7db558b233375d2f8d01a0fe670e96dd09346ece634e45211
2 parents b114e2e + e0d9dc1 commit df6d666

27 files changed

+82
-76
lines changed

doc/tor.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ There are several ways to see your local onion address in Dash Core:
1818
You may set the `-debug=tor` config logging option to have additional
1919
information in the debug log about your Tor configuration.
2020

21+
CLI `-addrinfo` returns the number of addresses known to your node per network
22+
type, including Tor v2 and v3. This is useful to see how many onion addresses
23+
are known to your node for `-onlynet=onion` and how many Tor v3 addresses it
24+
knows when upgrading to current and future Tor releases that support Tor v3 only.
2125

2226
## 1. Run Dash Core behind a Tor proxy
2327

src/banman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BanMan::BanMan(fs::path ban_file, CClientUIInterface* client_interface, int64_t default_ban_time)
1717
: m_client_interface(client_interface), m_ban_db(std::move(ban_file)), m_default_ban_time(default_ban_time)
1818
{
19-
if (m_client_interface) m_client_interface->InitMessage(_("Loading banlist...").translated);
19+
if (m_client_interface) m_client_interface->InitMessage(_("Loading banlist").translated);
2020

2121
int64_t n_start = GetTimeMillis();
2222
if (m_ban_db.Read(m_banned)) {

src/init.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ void SetupServerArgs(NodeContext& node)
561561
ArgsManager::ALLOW_ANY, OptionsCategory::OPTIONS);
562562

563563
argsman.AddArg("-asmap=<file>", strprintf("Specify asn mapping used for bucketing of the peers (default: %s). Relative paths will be prefixed by the net-specific datadir location.", DEFAULT_ASMAP_FILENAME), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
564-
argsman.AddArg("-addnode=<ip>", "Add a node to connect to and attempt to keep the connection open (see the `addnode` RPC command help for more info). This option can be specified multiple times to add multiple nodes.", ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
564+
argsman.AddArg("-addnode=<ip>", strprintf("Add a node to connect to and attempt to keep the connection open (see the addnode RPC help for more info). This option can be specified multiple times to add multiple nodes; connections are limited to %u at a time and are counted separately from the -maxconnections limit.", MAX_ADDNODE_CONNECTIONS), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
565565
argsman.AddArg("-allowprivatenet", strprintf("Allow RFC1918 addresses to be relayed and connected to (default: %u)", DEFAULT_ALLOWPRIVATENET), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
566566
argsman.AddArg("-bantime=<n>", strprintf("Default duration (in seconds) of manually configured bans (default: %u)", DEFAULT_MISBEHAVING_BANTIME), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
567567
argsman.AddArg("-bind=<addr>[:<port>][=onion]", strprintf("Bind to given address and always listen on it (default: 0.0.0.0). Use [host]:port notation for IPv6. Append =onion to tag any incoming connections to that address and port as incoming Tor connections (default: 127.0.0.1:%u=onion, testnet: 127.0.0.1:%u=onion, regtest: 127.0.0.1:%u=onion)", defaultBaseParams->OnionServiceTargetPort(), testnetBaseParams->OnionServiceTargetPort(), regtestBaseParams->OnionServiceTargetPort()), ArgsManager::ALLOW_ANY | ArgsManager::NETWORK_ONLY, OptionsCategory::CONNECTION);
@@ -574,7 +574,7 @@ void SetupServerArgs(NodeContext& node)
574574
argsman.AddArg("-forcednsseed", strprintf("Always query for peer addresses via DNS lookup (default: %u)", DEFAULT_FORCEDNSSEED), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
575575
argsman.AddArg("-listen", "Accept connections from outside (default: 1 if no -proxy or -connect)", ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
576576
argsman.AddArg("-listenonion", strprintf("Automatically create Tor onion service (default: %d)", DEFAULT_LISTEN_ONION), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
577-
argsman.AddArg("-maxconnections=<n>", strprintf("Maintain at most <n> connections to peers (temporary service connections excluded) (default: %u)", DEFAULT_MAX_PEER_CONNECTIONS), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
577+
argsman.AddArg("-maxconnections=<n>", strprintf("Maintain at most <n> connections to peers (temporary service connections excluded) (default: %u). This limit does not apply to connections manually added via -addnode or the addnode RPC, which have a separate limit of %u.", DEFAULT_MAX_PEER_CONNECTIONS, MAX_ADDNODE_CONNECTIONS), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
578578
argsman.AddArg("-maxreceivebuffer=<n>", strprintf("Maximum per-connection receive buffer, <n>*1000 bytes (default: %u)", DEFAULT_MAXRECEIVEBUFFER), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
579579
argsman.AddArg("-maxsendbuffer=<n>", strprintf("Maximum per-connection send buffer, <n>*1000 bytes (default: %u)", DEFAULT_MAXSENDBUFFER), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
580580
argsman.AddArg("-maxtimeadjustment", strprintf("Maximum allowed median peer time offset adjustment. Local perspective of time may be influenced by peers forward or backward by this amount. (default: %u seconds)", DEFAULT_MAX_TIME_ADJUSTMENT), ArgsManager::ALLOW_ANY, OptionsCategory::CONNECTION);
@@ -1929,7 +1929,7 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc
19291929
};
19301930
bilingual_str strLoadError;
19311931

1932-
uiInterface.InitMessage(_("Loading block index...").translated);
1932+
uiInterface.InitMessage(_("Loading block index").translated);
19331933

19341934
do {
19351935
bool failed_verification = false;
@@ -2120,7 +2120,7 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc
21202120

21212121
for (CChainState* chainstate : chainman.GetAll()) {
21222122
if (!is_coinsview_empty(chainstate)) {
2123-
uiInterface.InitMessage(_("Verifying blocks...").translated);
2123+
uiInterface.InitMessage(_("Verifying blocks").translated);
21242124
if (fHavePruned && args.GetArg("-checkblocks", DEFAULT_CHECKBLOCKS) > MIN_BLOCKS_TO_KEEP) {
21252125
LogPrintf("Prune: pruned datadir may not have more than %d blocks; only checking available blocks\n",
21262126
MIN_BLOCKS_TO_KEEP);
@@ -2302,7 +2302,7 @@ bool AppInitMain(const CoreContext& context, NodeContext& node, interfaces::Bloc
23022302
if (!fReindex) {
23032303
LOCK(cs_main);
23042304
for (CChainState* chainstate : chainman.GetAll()) {
2305-
uiInterface.InitMessage(_("Pruning blockstore...").translated);
2305+
uiInterface.InitMessage(_("Pruning blockstore").translated);
23062306
chainstate->PruneAndFlush();
23072307
}
23082308
}

src/masternode/sync.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ void CMasternodeSync::SwitchToNextAsset()
9393
std::string CMasternodeSync::GetSyncStatus() const
9494
{
9595
switch (nCurrentAsset) {
96-
case MASTERNODE_SYNC_BLOCKCHAIN: return _("Synchronizing blockchain...").translated;
97-
case MASTERNODE_SYNC_GOVERNANCE: return _("Synchronizing governance objects...").translated;
96+
case MASTERNODE_SYNC_BLOCKCHAIN: return _("Synchronizing blockchain").translated;
97+
case MASTERNODE_SYNC_GOVERNANCE: return _("Synchronizing governance objects").translated;
9898
case MASTERNODE_SYNC_FINISHED: return _("Synchronization finished").translated;
9999
default: return "";
100100
}

src/net.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3299,7 +3299,7 @@ bool CConnman::Start(CDeterministicMNManager& dmnman, CMasternodeMetaMan& mn_met
32993299
}
33003300

33013301
if (clientInterface) {
3302-
clientInterface->InitMessage(_("Loading P2P addresses...").translated);
3302+
clientInterface->InitMessage(_("Loading P2P addresses").translated);
33033303
}
33043304
// Load addresses from peers.dat
33053305
int64_t nStart = GetTimeMillis();
@@ -3323,7 +3323,7 @@ bool CConnman::Start(CDeterministicMNManager& dmnman, CMasternodeMetaMan& mn_met
33233323
LogPrintf("%i block-relay-only anchors will be tried for connections.\n", m_anchors.size());
33243324
}
33253325

3326-
uiInterface.InitMessage(_("Starting network threads...").translated);
3326+
uiInterface.InitMessage(_("Starting network threads").translated);
33273327

33283328
fAddressesInitialized = true;
33293329

src/qt/bitcoin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ int GuiMain(int argc, char* argv[])
815815
if (app.baseInitialize()) {
816816
app.requestInitialize();
817817
#if defined(Q_OS_WIN)
818-
WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("%1 didn't yet exit safely...").arg(PACKAGE_NAME), (HWND)app.getMainWinId());
818+
WinShutdownMonitor::registerShutdownBlockReason(QObject::tr("%1 didn't yet exit safely").arg(PACKAGE_NAME), (HWND)app.getMainWinId());
819819
#endif
820820
app.exec();
821821
app.requestShutdown();

src/qt/bitcoingui.cpp

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -383,29 +383,29 @@ void BitcoinGUI::createActions()
383383
aboutQtAction = new QAction(tr("About &Qt"), this);
384384
aboutQtAction->setStatusTip(tr("Show information about Qt"));
385385
aboutQtAction->setMenuRole(QAction::AboutQtRole);
386-
optionsAction = new QAction(tr("&Options..."), this);
386+
optionsAction = new QAction(tr("&Options"), this);
387387
optionsAction->setStatusTip(tr("Modify configuration options for %1").arg(PACKAGE_NAME));
388388
optionsAction->setMenuRole(QAction::PreferencesRole);
389389
optionsAction->setEnabled(false);
390390
toggleHideAction = new QAction(tr("&Show / Hide"), this);
391391
toggleHideAction->setStatusTip(tr("Show or hide the main Window"));
392392

393-
encryptWalletAction = new QAction(tr("&Encrypt Wallet..."), this);
393+
encryptWalletAction = new QAction(tr("&Encrypt Wallet"), this);
394394
encryptWalletAction->setStatusTip(tr("Encrypt the private keys that belong to your wallet"));
395-
backupWalletAction = new QAction(tr("&Backup Wallet..."), this);
395+
backupWalletAction = new QAction(tr("&Backup Wallet"), this);
396396
backupWalletAction->setStatusTip(tr("Backup wallet to another location"));
397-
changePassphraseAction = new QAction(tr("&Change Passphrase..."), this);
397+
changePassphraseAction = new QAction(tr("&Change Passphrase"), this);
398398
changePassphraseAction->setStatusTip(tr("Change the passphrase used for wallet encryption"));
399-
unlockWalletAction = new QAction(tr("&Unlock Wallet..."), this);
399+
unlockWalletAction = new QAction(tr("&Unlock Wallet"), this);
400400
unlockWalletAction->setToolTip(tr("Unlock wallet"));
401401
lockWalletAction = new QAction(tr("&Lock Wallet"), this);
402-
signMessageAction = new QAction(tr("Sign &message..."), this);
402+
signMessageAction = new QAction(tr("Sign &message"), this);
403403
signMessageAction->setStatusTip(tr("Sign messages with your Dash addresses to prove you own them"));
404-
verifyMessageAction = new QAction(tr("&Verify message..."), this);
404+
verifyMessageAction = new QAction(tr("&Verify message"), this);
405405
verifyMessageAction->setStatusTip(tr("Verify messages to ensure they were signed with specified Dash addresses"));
406-
m_load_psbt_action = new QAction(tr("&Load PSBT from file..."), this);
406+
m_load_psbt_action = new QAction(tr("&Load PSBT from file"), this);
407407
m_load_psbt_action->setStatusTip(tr("Load Partially Signed Dash Transaction"));
408-
m_load_psbt_clipboard_action = new QAction(tr("Load PSBT from clipboard..."), this);
408+
m_load_psbt_clipboard_action = new QAction(tr("Load PSBT from clipboard"), this);
409409
m_load_psbt_clipboard_action->setStatusTip(tr("Load Partially Signed Bitcoin Transaction from clipboard"));
410410

411411
openInfoAction = new QAction(tr("&Information"), this);
@@ -437,22 +437,22 @@ void BitcoinGUI::createActions()
437437
usedReceivingAddressesAction = new QAction(tr("&Receiving addresses"), this);
438438
usedReceivingAddressesAction->setStatusTip(tr("Show the list of used receiving addresses and labels"));
439439

440-
openAction = new QAction(tr("Open &URI..."), this);
440+
openAction = new QAction(tr("Open &URI"), this);
441441
openAction->setStatusTip(tr("Open a dash: URI"));
442442

443443
m_open_wallet_action = new QAction(tr("Open Wallet"), this);
444444
m_open_wallet_action->setEnabled(false);
445445
m_open_wallet_action->setStatusTip(tr("Open a wallet"));
446446
m_open_wallet_menu = new QMenu(this);
447447

448-
m_close_wallet_action = new QAction(tr("Close Wallet..."), this);
448+
m_close_wallet_action = new QAction(tr("Close Wallet"), this);
449449
m_close_wallet_action->setStatusTip(tr("Close wallet"));
450450

451-
m_create_wallet_action = new QAction(tr("Create Wallet..."), this);
451+
m_create_wallet_action = new QAction(tr("Create Wallet"), this);
452452
m_create_wallet_action->setEnabled(false);
453453
m_create_wallet_action->setStatusTip(tr("Create a new wallet"));
454454

455-
m_close_all_wallets_action = new QAction(tr("Close All Wallets..."), this);
455+
m_close_all_wallets_action = new QAction(tr("Close All Wallets"), this);
456456
m_close_all_wallets_action->setStatusTip(tr("Close all wallets"));
457457

458458
showHelpMessageAction = new QAction(tr("&Command-line options"), this);
@@ -1300,7 +1300,7 @@ void BitcoinGUI::updateHeadersSyncProgressLabel()
13001300
int headersTipHeight = clientModel->getHeaderTipHeight();
13011301
int estHeadersLeft = (GetTime() - headersTipTime) / Params().GetConsensus().nPowTargetSpacing;
13021302
if (estHeadersLeft > HEADER_HEIGHT_DELTA_SYNC)
1303-
progressBarLabel->setText(tr("Syncing Headers (%1%)...").arg(QString::number(100.0 / (headersTipHeight+estHeadersLeft)*headersTipHeight, 'f', 1)));
1303+
progressBarLabel->setText(tr("Syncing Headers (%1%)").arg(QString::number(100.0 / (headersTipHeight+estHeadersLeft)*headersTipHeight, 'f', 1)));
13041304
}
13051305

13061306
void BitcoinGUI::openOptionsDialogWithTab(OptionsDialog::Tab tab)
@@ -1421,24 +1421,24 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, const QStri
14211421
updateHeadersSyncProgressLabel();
14221422
return;
14231423
}
1424-
progressBarLabel->setText(tr("Synchronizing with network..."));
1424+
progressBarLabel->setText(tr("Synchronizing with network"));
14251425
updateHeadersSyncProgressLabel();
14261426
break;
14271427
case BlockSource::DISK:
14281428
if (header) {
1429-
progressBarLabel->setText(tr("Indexing blocks on disk..."));
1429+
progressBarLabel->setText(tr("Indexing blocks on disk"));
14301430
} else {
1431-
progressBarLabel->setText(tr("Processing blocks on disk..."));
1431+
progressBarLabel->setText(tr("Processing blocks on disk"));
14321432
}
14331433
break;
14341434
case BlockSource::REINDEX:
1435-
progressBarLabel->setText(tr("Reindexing blocks on disk..."));
1435+
progressBarLabel->setText(tr("Reindexing blocks on disk"));
14361436
break;
14371437
case BlockSource::NONE:
14381438
if (header) {
14391439
return;
14401440
}
1441-
progressBarLabel->setText(tr("Connecting to peers..."));
1441+
progressBarLabel->setText(tr("Connecting to peers"));
14421442
break;
14431443
}
14441444

@@ -1470,7 +1470,7 @@ void BitcoinGUI::setNumBlocks(int count, const QDateTime& blockDate, const QStri
14701470
progressBar->setMaximum(1000000000);
14711471
progressBar->setValue(nVerificationProgress * 1000000000.0 + 0.5);
14721472

1473-
tooltip = tr("Catching up...") + QString("<br>") + tooltip;
1473+
tooltip = tr("Catching up") + QString("<br>") + tooltip;
14741474

14751475
#ifdef ENABLE_WALLET
14761476
if(walletFrame)

src/qt/forms/intro.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
</size>
124124
</property>
125125
<property name="text">
126-
<string notr="true">...</string>
126+
<string notr="true"></string>
127127
</property>
128128
<property name="autoDefault">
129129
<bool>false</bool>

src/qt/forms/modaloverlay.ui

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
<item row="0" column="1">
192192
<widget class="QLabel" name="numberOfBlocksLeft">
193193
<property name="text">
194-
<string>Unknown...</string>
194+
<string>Unknown</string>
195195
</property>
196196
</widget>
197197
</item>
@@ -211,7 +211,7 @@
211211
</sizepolicy>
212212
</property>
213213
<property name="text">
214-
<string>Unknown...</string>
214+
<string>Unknown</string>
215215
</property>
216216
</widget>
217217
</item>
@@ -243,7 +243,7 @@
243243
<item row="4" column="1">
244244
<widget class="QLabel" name="progressIncreasePerH">
245245
<property name="text">
246-
<string>calculating...</string>
246+
<string>calculating</string>
247247
</property>
248248
</widget>
249249
</item>
@@ -257,7 +257,7 @@
257257
<item row="5" column="1">
258258
<widget class="QLabel" name="expectedTimeLeft">
259259
<property name="text">
260-
<string>calculating...</string>
260+
<string>calculating</string>
261261
</property>
262262
</widget>
263263
</item>

src/qt/forms/psbtoperationsdialog.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
<item>
127127
<widget class="QPushButton" name="saveButton">
128128
<property name="text">
129-
<string>Save...</string>
129+
<string>Save</string>
130130
</property>
131131
</widget>
132132
</item>

0 commit comments

Comments
 (0)