diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-05-09 22:03:50 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-05-10 10:39:58 +0200 |
commit | e23088707be2c3bf247f4b777290c8e401db48cb (patch) | |
tree | 2bbdefb0d41490d825b9464b37b00bbddc93b1e9 /src/chainparamsbase.h | |
parent | fc06881f13495154c888a64a38c7d538baf00435 (diff) |
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.h | 2 |
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); |