mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Compare commits
5 commits
50d4c23945
...
b1f3e9bb9c
Author | SHA1 | Date | |
---|---|---|---|
|
b1f3e9bb9c | ||
|
c5e44a0435 | ||
|
32d55e28af | ||
|
724546e28a | ||
|
3851960576 |
2 changed files with 16 additions and 2 deletions
|
@ -463,6 +463,16 @@ private:
|
|||
}
|
||||
return str;
|
||||
}
|
||||
std::string ServicesList(const UniValue& services)
|
||||
{
|
||||
std::vector<std::string> v;
|
||||
for (size_t i = 0; i < services.size(); ++i) {
|
||||
std::string s{ToLower((services[i].get_str()))};
|
||||
std::ranges::replace(s, '_', ' ');
|
||||
v.push_back(s);
|
||||
}
|
||||
return Join(v, ", ");
|
||||
}
|
||||
|
||||
public:
|
||||
static constexpr int ID_PEERINFO = 0;
|
||||
|
@ -554,7 +564,8 @@ public:
|
|||
}
|
||||
|
||||
// Generate report header.
|
||||
std::string result{strprintf("%s client %s%s - server %i%s\n\n", CLIENT_NAME, FormatFullVersion(), ChainToString(), networkinfo["protocolversion"].getInt<int>(), networkinfo["subversion"].get_str())};
|
||||
const std::string_view services{DetailsRequested() ? strprintf(" - services %s", FormatServices(networkinfo["localservicesnames"])) : ""};
|
||||
std::string result{strprintf("%s client %s%s - server %i%s%s\n\n", CLIENT_NAME, FormatFullVersion(), ChainToString(), networkinfo["protocolversion"].getInt<int>(), networkinfo["subversion"].get_str(), services)};
|
||||
|
||||
// Report detailed peer connections list sorted by direction and minimum ping time.
|
||||
if (DetailsRequested() && !m_peers.empty()) {
|
||||
|
@ -636,6 +647,9 @@ public:
|
|||
}
|
||||
|
||||
// Report local addresses, ports, and scores.
|
||||
if (!DetailsRequested()) {
|
||||
result += strprintf("\n\nLocal services: %s", ServicesList(networkinfo["localservicesnames"]));
|
||||
}
|
||||
result += "\n\nLocal addresses";
|
||||
const std::vector<UniValue>& local_addrs{networkinfo["localaddresses"].getValues()};
|
||||
if (local_addrs.empty()) {
|
||||
|
|
|
@ -87,7 +87,7 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
|
|||
# 0.21.x and 22.x would both produce bad derivation paths when topping up an inactive hd chain
|
||||
# Make sure that this is being automatically cleaned up by migration
|
||||
node_master = self.nodes[1]
|
||||
node_v22 = self.nodes[self.num_nodes - 5]
|
||||
node_v22 = self.nodes[self.num_nodes - 3]
|
||||
wallet_name = "bad_deriv_path"
|
||||
node_v22.createwallet(wallet_name=wallet_name, descriptors=False)
|
||||
bad_deriv_wallet = node_v22.get_wallet_rpc(wallet_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue