MCPcopy Create free account
hub / github.com/ElementsProject/elements / SanityChecks

Function SanityChecks

src/init/common.cpp:41–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool SanityChecks()
42{
43 if (!ECC_InitSanityCheck()) {
44 return InitError(Untranslated("Elliptic curve cryptography sanity check failure. Aborting."));
45 }
46
47 if (!glibcxx_sanity_test())
48 return false;
49
50 if (!Random_SanityCheck()) {
51 return InitError(Untranslated("OS cryptographic RNG sanity check failure. Aborting."));
52 }
53
54 if (!ChronoSanityCheck()) {
55 return InitError(Untranslated("Clock epoch mismatch. Aborting."));
56 }
57
58 return true;
59}
60
61void AddLoggingArgs(ArgsManager& argsman)
62{

Callers 1

AppInitSanityChecksFunction · 0.85

Calls 5

ECC_InitSanityCheckFunction · 0.85
InitErrorFunction · 0.85
UntranslatedFunction · 0.85
glibcxx_sanity_testFunction · 0.85
Random_SanityCheckFunction · 0.85

Tested by

no test coverage detected