Sanity checks * Ensure that Bitcoin is running in a usable environment with all * necessary library support. */
| 712 | * necessary library support. |
| 713 | */ |
| 714 | static bool InitSanityCheck(void) |
| 715 | { |
| 716 | if(!ECC_InitSanityCheck()) { |
| 717 | InitError("Elliptic curve cryptography sanity check failure. Aborting."); |
| 718 | return false; |
| 719 | } |
| 720 | |
| 721 | if (!glibc_sanity_test() || !glibcxx_sanity_test()) |
| 722 | return false; |
| 723 | |
| 724 | if (!Random_SanityCheck()) { |
| 725 | InitError("OS cryptographic RNG sanity check failure. Aborting."); |
| 726 | return false; |
| 727 | } |
| 728 | |
| 729 | return true; |
| 730 | } |
| 731 | |
| 732 | static bool AppInitServers() |
| 733 | { |
no test coverage detected