Bitcoin Core 28.99.0
P2P Digital Currency
mining-types.h
Go to the documentation of this file.
1// Copyright (c) 2024 The Bitcoin Core developers
2// Distributed under the MIT software license, see the accompanying
3// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5#ifndef BITCOIN_IPC_CAPNP_MINING_TYPES_H
6#define BITCOIN_IPC_CAPNP_MINING_TYPES_H
7
8#include <interfaces/mining.h>
9#include <ipc/capnp/common.capnp.proxy-types.h>
11#include <ipc/capnp/mining.capnp.proxy.h>
12#include <node/miner.h>
13#include <node/types.h>
14#include <validation.h>
15
16namespace mp {
17// Custom serialization for BlockValidationState.
18void CustomBuildMessage(InvokeContext& invoke_context,
19 const BlockValidationState& src,
20 ipc::capnp::messages::BlockValidationState::Builder&& builder);
21void CustomReadMessage(InvokeContext& invoke_context,
22 const ipc::capnp::messages::BlockValidationState::Reader& reader,
24} // namespace mp
25
26#endif // BITCOIN_IPC_CAPNP_MINING_TYPES_H
Functions to serialize / deserialize common bitcoin types.
Definition: common-types.h:44
void CustomReadMessage(InvokeContext &invoke_context, const ipc::capnp::messages::BlockValidationState::Reader &reader, BlockValidationState &dest)
Definition: mining.cpp:29
void CustomBuildMessage(InvokeContext &invoke_context, const BlockValidationState &src, ipc::capnp::messages::BlockValidationState::Builder &&builder)
Definition: mining.cpp:11
is a home for public enum and struct type definitions that are used by internally by node code,...