/
githubmirror
/
bitcoin
Обзор
Документация
Войти
/
githubmirror
/
bitcoin
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v31.0
src/kernel/context.cpp
26 строк
651 B
stickies-v
logging: use util/log.h where possible
02 фев 2026, 20:22
02 фев 2026, 20:22
37cc2a2
Код
Авторство
О чём код?
// Copyright (c) 2022-present The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <kernel/context.h> #include <crypto/sha256.h> #include <random.h> #include <util/log.h> #include <mutex> #include <string> namespace kernel { Context::Context() { static std::once_flag globals_initialized{}; std::call_once(globals_initialized, []() { std::string sha256_algo = SHA256AutoDetect(); LogInfo("Using the '%s' SHA256 implementation\n", sha256_algo); RandomInit(); }); } } // namespace kernel