veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
altintegration::BlockBatch Struct Referenceabstract

An interface which represents single write batch of a group of blocks. More...

Detailed Description

Altchains are expected to implement this interface to allow alt-cpp saving blocks on disk.

Definition at line 22 of file block_batch.hpp.

#include <block_batch.hpp>

+ Inheritance diagram for altintegration::BlockBatch:
+ Collaboration diagram for altintegration::BlockBatch:

Public Member Functions

virtual void writeBlock (const AltBlock::hash_t &hash, const AltBlock::prev_hash_t &prev_hash, const StoredBlockIndex< AltBlock > &value)=0
 Save BlockIndex on disk. More...
 
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 only in what argument(s) it accepts. More...
 
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 only in what argument(s) it accepts. More...
 
virtual void writeTip (const AltBlock::hash_t &value)=0
 Save Tree tip on disk. More...
 
virtual void writeTip (const VbkBlock::hash_t &value)=0
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
virtual void writeTip (const BtcBlock::hash_t &value)=0
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 

Member Function Documentation

◆ writeBlock() [1/3]

virtual void altintegration::BlockBatch::writeBlock ( const AltBlock::hash_t &  hash,
const AltBlock::prev_hash_t &  prev_hash,
const StoredBlockIndex< AltBlock > &  value 
)
pure virtual
Parameters
hash
prev_hash
value

Implemented in altintegration::adaptors::BlockBatchImpl.

◆ writeBlock() [2/3]

virtual void altintegration::BlockBatch::writeBlock ( const BtcBlock::hash_t hash,
const BtcBlock::prev_hash_t prev_hash,
const StoredBlockIndex< BtcBlock > &  value 
)
pure virtual

◆ writeBlock() [3/3]

virtual void altintegration::BlockBatch::writeBlock ( const VbkBlock::hash_t hash,
const VbkBlock::prev_hash_t prev_hash,
const StoredBlockIndex< VbkBlock > &  value 
)
pure virtual

◆ writeTip() [1/3]

virtual void altintegration::BlockBatch::writeTip ( const AltBlock::hash_t &  value)
pure virtual
Parameters
value

Implemented in altintegration::adaptors::BlockBatchImpl.

◆ writeTip() [2/3]

virtual void altintegration::BlockBatch::writeTip ( const BtcBlock::hash_t value)
pure virtual

◆ writeTip() [3/3]

virtual void altintegration::BlockBatch::writeTip ( const VbkBlock::hash_t value)
pure virtual

The documentation for this struct was generated from the following file: