6#ifndef VERIBLOCK_POP_CPP_VBK_COMMAND_GROUP_PROVIDER_HPP
7#define VERIBLOCK_POP_CPP_VBK_COMMAND_GROUP_PROVIDER_HPP
9#include <veriblock/pop/blockchain/blockchain_util.hpp>
10#include <veriblock/pop/blockchain/command_group.hpp>
11#include <veriblock/pop/entities/popdata.hpp>
12#include <veriblock/pop/entities/vbkblock.hpp>
13#include <veriblock/pop/storage/payloads_provider.hpp>
24 using command_groups_t = std::vector<std::unique_ptr<CommandGroup>>;
27 : _tree(tree), _payloadStore(payloadStore) {}
Class that is used for storing validation state.
Accessor for ATV/VTB/VbkBlock bodies given hash.
A wrapper for the payload store that constructs command objects.
std::unique_ptr< CommandGroup > getCommand(const BlockIndex< VbkBlock > &block, const VTB::id_t &id, ValidationState &state)
Get the command group for the given payload in the given block.
std::unique_ptr< command_groups_t > getCommands(const BlockIndex< VbkBlock > &block, ValidationState &state)
Get command groups for a particular block.