mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
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
This commit is contained in:
parent
fc06881f13
commit
e23088707b
7 changed files with 9 additions and 13 deletions
|
|
@ -255,7 +255,7 @@ BOOST_AUTO_TEST_CASE(util_ParseInvalidParameters)
|
|||
BOOST_CHECK(!test.ParseParameters(2, (char**)argv, error));
|
||||
BOOST_CHECK_EQUAL(error, "Invalid parameter -unregistered");
|
||||
|
||||
// Make sure registered parameters prefixed with a chain name trigger errors.
|
||||
// Make sure registered parameters prefixed with a chain type trigger errors.
|
||||
// (Previously, they were accepted and ignored.)
|
||||
argv[1] = "-test.registered";
|
||||
BOOST_CHECK(!test.ParseParameters(2, (char**)argv, error));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue