Otherwise, the compilation may fail with:
0/home/admin/actions-runner/_work/_temp/src/kernel/bitcoinkernel_wrapper.h:271:14: error: no type named 'exception_ptr' in namespace 'std'; did you mean 'exception'?
1 271 | std::exception_ptr exception;
2 | ~~~~~^~~~~~~~~~~~~
3 | exception
4/cxx_build/include/c++/v1/__exception/exception.h:72:33: note: 'exception' declared here
5 72 | class _LIBCPP_EXPORTED_FROM_ABI exception {
6 | ^
7In file included from /home/admin/actions-runner/_work/_temp/src/bitcoin-chainstate.cpp:1:
8/home/admin/actions-runner/_work/_temp/src/kernel/bitcoinkernel_wrapper.h:284:35: error: no member named 'current_exception' in namespace 'std'
9 284 | data.exception = std::current_exception();
10 | ^~~~~~~~~~~~~~~~~
11/home/admin/actions-runner/_work/_temp/src/kernel/bitcoinkernel_wrapper.h:290:14: error: no member named 'rethrow_exception' in namespace 'std'
12 290 | std::rethrow_exception(user_data.exception);
13 | ^~~~~~~~~~~~~~~~~
14/home/admin/actions-runner/_work/_temp/src/kernel/bitcoinkernel_wrapper.h:273:65: error: no viable conversion from 'std::nullptr_t' to 'std::exception'
15 273 | UserData user_data = UserData{.bytes = &bytes, .exception = nullptr};
16 | ^~~~~~~
17/home/admin/actions-runner/_work/_temp/src/kernel/bitcoinkernel_wrapper.h:733:16: note: in instantiation of function template specialization 'btck::write_bytes<btck_Block>' requested here
18 733 | return write_bytes(get(), btck_block_to_bytes);
19 | ^
20/cxx_build/include/c++/v1/__exception/exception.h:75:25: note: candidate constructor not viable: no known conversion from 'std::nullptr_t' to 'const exception &' for 1st argument
21 75 | _LIBCPP_HIDE_FROM_ABI exception(const exception&) _NOEXCEPT = default;
22 | ^ ~~~~~~~~~~~~~~~~
234 errors generated.