// Copyright (c) 2024 The Limenka developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef LIMENKA_IPC_CAPNP_MINING_TYPES_H #define LIMENKA_IPC_CAPNP_MINING_TYPES_H #include #include #include #include #include #include #include namespace mp { // Custom serialization for BlockValidationState. void CustomBuildMessage(InvokeContext& invoke_context, const BlockValidationState& src, ipc::capnp::messages::BlockValidationState::Builder&& builder); void CustomReadMessage(InvokeContext& invoke_context, const ipc::capnp::messages::BlockValidationState::Reader& reader, BlockValidationState& dest); } // namespace mp #endif // LIMENKA_IPC_CAPNP_MINING_TYPES_H