mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Throws, explicits and trivial cleanups
This commit is contained in:
committed by
Nik Bougalis
parent
8e842b5893
commit
ed9f5639a8
@@ -365,7 +365,7 @@ void Config::loadFromString (std::string const& fileContents)
|
||||
{
|
||||
auto const seed = parseBase58<Seed>(strTemp);
|
||||
if (!seed)
|
||||
throw std::runtime_error (
|
||||
Throw<std::runtime_error> (
|
||||
"Invalid seed specified in [" SECTION_VALIDATION_SEED "]");
|
||||
VALIDATION_PRIV = generateSecretKey (KeyType::secp256k1, *seed);
|
||||
VALIDATION_PUB = derivePublicKey (KeyType::secp256k1, VALIDATION_PRIV);
|
||||
@@ -374,7 +374,7 @@ void Config::loadFromString (std::string const& fileContents)
|
||||
if (getSingleSection (secConfig, SECTION_NODE_SEED, NODE_SEED, j_))
|
||||
{
|
||||
if (!parseBase58<Seed>(NODE_SEED))
|
||||
throw std::runtime_error (
|
||||
Throw<std::runtime_error> (
|
||||
"Invalid seed specified in [" SECTION_NODE_SEED "]");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user