6#ifndef VERIBLOCK_POP_CPP_PAYLOADS_PROVIDER_HPP
7#define VERIBLOCK_POP_CPP_PAYLOADS_PROVIDER_HPP
9#include <veriblock/pop/blockchain/blockchain_util.hpp>
10#include <veriblock/pop/entities/altblock.hpp>
11#include <veriblock/pop/entities/popdata.hpp>
44 virtual void writePayloads(
const PopData& payloads) = 0;
50 return getVBK(
id, out, state);
54 return getVTB(
id, out, state);
58 return getATV(
id, out, state);
Class that is used for storing validation state.
Accessor for ATV/VTB/VbkBlock bodies given hash.
virtual bool getATV(const ATV::id_t &ids, ATV &out, ValidationState &state)=0
should write ATV identified by id into out, or return false
bool getPayload(const VTB::id_t &id, VTB &out, ValidationState &state)
alias for getVTB
bool getPayload(const ATV::id_t &id, ATV &out, ValidationState &state)
alias for getATV
virtual bool getVTB(const VTB::id_t &ids, VTB &out, ValidationState &state)=0
should write VTB identified by id into out, or return false
bool getPayload(const VbkBlock::id_t &id, VbkBlock &out, ValidationState &state)
alias for getVBK
virtual bool getVBK(const VbkBlock::id_t &id, VbkBlock &out, ValidationState &state)=0
should write VbkBlock identified by id into out, or return false
Represents ALT block body of POP-related info.
Veriblock to Bitcoin publication, committed to Veriblock blockchain in containingBlock.