diff options
author | TheCharlatan <seb.kung@gmail.com> | 2024-01-15 12:55:31 +0100 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2024-05-09 15:56:08 +0200 |
commit | 41eba5bd716bea47c8731d156d053afee92a7f12 (patch) | |
tree | 23a01431d9155d7c82ede876e20cd579f0fd8286 /src/bitcoind.cpp | |
parent | a08d2b3cb971c68e9a50b991b2953fa4541cf48a (diff) | |
download | bitcoin-41eba5bd716bea47c8731d156d053afee92a7f12.tar.xz |
kernel: Remove key module from kernel library
The key module's functionality is not used by the kernel library, but
currently kernel users are still required to initialize the key module's
`secp256k1_context_sign` global as part of the `kernel::Context` through
`ECC_Start`.
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r-- | src/bitcoind.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 7685bdea79..0b89aa42af 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -14,11 +14,13 @@ #include <init.h> #include <interfaces/chain.h> #include <interfaces/init.h> +#include <kernel/context.h> #include <node/context.h> #include <node/interface_ui.h> #include <noui.h> #include <util/check.h> #include <util/exception.h> +#include <util/signalinterrupt.h> #include <util/strencodings.h> #include <util/syserror.h> #include <util/threadnames.h> @@ -180,6 +182,7 @@ static bool AppInit(NodeContext& node) } node.kernel = std::make_unique<kernel::Context>(); + node.ecc_context = std::make_unique<ECC_Context>(); if (!AppInitSanityChecks(*node.kernel)) { // InitError will have been called with detailed error, which ends up on console |