aboutsummaryrefslogtreecommitdiff
path: root/src/chainparamsbase.h
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-05-09 22:03:50 +0200
committerTheCharlatan <seb.kung@gmail.com>2023-05-10 10:39:58 +0200
commite23088707be2c3bf247f4b777290c8e401db48cb (patch)
tree2bbdefb0d41490d825b9464b37b00bbddc93b1e9 /src/chainparamsbase.h
parentfc06881f13495154c888a64a38c7d538baf00435 (diff)
downloadbitcoin-e23088707be2c3bf247f4b777290c8e401db48cb.tar.xz
refactor: Use ChainType enum exhaustively
This is a follow up of https://github.com/bitcoin/bitcoin/pull/27491, more concretely https://github.com/bitcoin/bitcoin/pull/27491#discussion_r1188847896, for not using default cases (as per the style guide), and https://github.com/bitcoin/bitcoin/pull/27491#discussion_r1188852707 and https://github.com/bitcoin/bitcoin/pull/27491#discussion_r1188851857 for avoiding dead code. Also change chain name to chain type in docstrings
Diffstat (limited to 'src/chainparamsbase.h')
-rw-r--r--src/chainparamsbase.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/chainparamsbase.h b/src/chainparamsbase.h
index 73e449d11b..ea933d1ca8 100644
--- a/src/chainparamsbase.h
+++ b/src/chainparamsbase.h
@@ -35,8 +35,6 @@ private:
/**
* Creates and returns a std::unique_ptr<CBaseChainParams> of the chosen chain.
- * @returns a CBaseChainParams* of the chosen chain.
- * @throws a std::runtime_error if the chain is not supported.
*/
std::unique_ptr<CBaseChainParams> CreateBaseChainParams(const ChainType chain);