From 9e1bac45852d177cf387314a54053a3f7ec8ce99 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Mon, 3 Jun 2024 14:44:55 +0200 Subject: [PATCH] kernel: Add chain params context option to C header As a first option, add the chainparams. For now these can only be instantiated with default values. In future they may be expanded to take their own options for regtest and signet configurations. This commit also introduces a unique pattern for setting the option values when calling the `*_set(...)` function. --- src/kernel/bitcoinkernel.cpp | 62 +++++++++++++++++++++++++++++- src/kernel/bitcoinkernel.h | 55 ++++++++++++++++++++++++++ src/kernel/bitcoinkernel_wrapper.h | 20 ++++++++++ src/test/kernel/test_kernel.cpp | 11 +++++- 4 files changed, 145 insertions(+), 3 deletions(-) diff --git a/src/kernel/bitcoinkernel.cpp b/src/kernel/bitcoinkernel.cpp index 8f29ac81636..35e03372f6b 100644 --- a/src/kernel/bitcoinkernel.cpp +++ b/src/kernel/bitcoinkernel.cpp @@ -18,6 +18,7 @@ #include