mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Merge 104eed1166 into merged_master (Bitcoin PR bitcoin/bitcoin#27611)
This commit is contained in:
commit
c5e6e709b8
5 changed files with 17 additions and 12 deletions
|
|
@ -427,16 +427,26 @@ private:
|
|||
std::vector<Peer> m_peers;
|
||||
std::string ChainToString() const
|
||||
{
|
||||
switch (gArgs.GetChainType()) {
|
||||
const ChainTypeMeta chain = gArgs.GetChainTypeMeta(); // ELEMENTS
|
||||
switch (chain.chain_type) {
|
||||
case ChainType::TESTNET:
|
||||
return " testnet";
|
||||
case ChainType::SIGNET:
|
||||
return " signet";
|
||||
case ChainType::REGTEST:
|
||||
return " regtest";
|
||||
default:
|
||||
case ChainType::MAIN:
|
||||
return "";
|
||||
case ChainType::LIQUID1:
|
||||
return "liquidv1";
|
||||
case ChainType::LIQUID1TEST:
|
||||
return "liquidv1test";
|
||||
case ChainType::LIQUIDTESTNET:
|
||||
return "liquidtestnet";
|
||||
case ChainType::CUSTOM:
|
||||
return chain.chain_name;
|
||||
}
|
||||
assert(false);
|
||||
}
|
||||
std::string PingTimeToString(double seconds) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue