Skip to content

Commit b8068f3

Browse files
committed
Squashed 'libbitcoinkernel-sys/bitcoin/' changes from 8777c555fc..b129d35f68
b129d35f68 kernel: Add pure kernel bitcoin-chainstate c8aa86b12f kernel: Add block index utility functions to C header 18fc20239a kernel: Add function to read block undo data from disk to C header 89444db9d5 kernel: Add functions to read block from disk to C header 4321237942 kernel: Add function for copying block data to C header 0ee2800a58 kernel: Add functions for the block validation state to C header c7f7602f4c kernel: Add validation interface to C header 78bba95d19 kernel: Add interrupt function to C header 069de41ca7 kernel: Add import blocks function to C header bcc3572491 kernel: Add chainstate load options for in-memory dbs in C header ed7c3c908b kernel: Add options for reindexing in C header e8b655fe10 kernel: Add block validation to C header 5af1da3a09 Kernel: Add chainstate loading to kernel C header 5174fa51f1 kernel: Add chainstate manager object to C header 677128a9bc kernel: Add notifications context option to C header 88fe3d4961 kerenl: Add chain params context option to C header 21107de0ca kernel: Add kernel library context object 83cc65c491 kernel: Add logging to kernel library C header 2f47169f91 kernel: Introduce initial kernel C header API REVERT: 8777c555fc kernel: Add pure kernel bitcoin-chainstate REVERT: fcc69abdb9 kernel: Add block index utility functions to C header REVERT: 266d21c9c6 kernel: Add function to read block undo data from disk to C header REVERT: 62b2926c0a kernel: Add functions to read block from disk to C header REVERT: 440d7a7a86 kernel: Add function for copying block data to C header REVERT: 8827ebd5ea kernel: Add functions for the block validation state to C header REVERT: 1ad10251b4 kernel: Add validation interface and task runner to C header REVERT: b96eb0c49c kernel: Add interrupt function to C header REVERT: d96ffb9165 kernel: Add import blocks function to C header REVERT: 28dc294a13 kernel: Add chainstate load options for in-memory dbs in C header REVERT: 7de1202a01 kernel: Add options for reindexing in C header REVERT: 2e28c5516d kernel: Add block validation to C header REVERT: f511ce1489 Kernel: Add chainstate loading to kernel C header REVERT: 7ed0a89a3e kernel: Add chainstate manager object to C header REVERT: 3fb9cec5d4 kernel: Add notifications context option to C header REVERT: d71bbbab94 kerenl: Add chain params context option to C header REVERT: 7cfc892152 kernel: Add kernel library context object REVERT: ba01b6bd0e kernel: Add logging to kernel library C header REVERT: 17b98b95eb kernel: Introduce initial kernel C header API git-subtree-dir: libbitcoinkernel-sys/bitcoin git-subtree-split: b129d35f682d02d32a1915c922f2941ca37b42a0
1 parent 3bc8463 commit b8068f3

File tree

5 files changed

+488
-494
lines changed

5 files changed

+488
-494
lines changed

src/kernel/bitcoin-chainstate.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ class KernelLog
2828
}
2929
};
3030

31-
class TestTaskRunner : public TaskRunner<TestTaskRunner>
32-
{
33-
};
34-
3531
class TestValidationInterface : public ValidationInterface<TestValidationInterface>
3632
{
3733
public:
@@ -156,12 +152,10 @@ int main(int argc, char* argv[])
156152

157153
ContextOptions options{};
158154
ChainParams params{kernel_ChainType::kernel_CHAIN_TYPE_REGTEST};
159-
assert(options.SetChainParams(params));
155+
options.SetChainParams(params);
160156

161157
TestKernelNotifications notifications{};
162-
assert(options.SetNotifications(notifications));
163-
TestTaskRunner task_runner{};
164-
assert(options.SetTaskRunner(task_runner));
158+
options.SetNotifications(notifications);
165159

166160
Context context{options};
167161
assert(context);

0 commit comments

Comments
 (0)