6#ifndef VERIBLOCK_POP_CPP_BLOCK_BATCH_HPP
7#define VERIBLOCK_POP_CPP_BLOCK_BATCH_HPP
9#include <veriblock/pop/entities/altblock.hpp>
10#include <veriblock/pop/entities/btcblock.hpp>
11#include <veriblock/pop/entities/vbkblock.hpp>
12#include <veriblock/pop/storage/stored_block_index.hpp>
32 const AltBlock::prev_hash_t& prev_hash,
47 virtual void writeTip(
const AltBlock::hash_t& value) = 0;
Contiguous byte array of fixed size.
An interface which represents single write batch of a group of blocks.
virtual void writeTip(const VbkBlock::hash_t &value)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void writeTip(const BtcBlock::hash_t &value)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void writeTip(const AltBlock::hash_t &value)=0
Save Tree tip on disk.
virtual void writeBlock(const BtcBlock::hash_t &hash, const BtcBlock::prev_hash_t &prev_hash, const StoredBlockIndex< BtcBlock > &value)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void writeBlock(const VbkBlock::hash_t &hash, const VbkBlock::prev_hash_t &prev_hash, const StoredBlockIndex< VbkBlock > &value)=0
This is an overloaded member function, provided for convenience. It differs from the above function o...
virtual void writeBlock(const AltBlock::hash_t &hash, const AltBlock::prev_hash_t &prev_hash, const StoredBlockIndex< AltBlock > &value)=0
Save BlockIndex on disk.