veriblock-pop-cpp
C++11 Libraries for leveraging VeriBlock Proof-Of-Proof blockchain technology.
|
an incremental block builder More...
Definition at line 248 of file alt_block_tree.hpp.
#include <alt_block_tree.hpp>
Public Types | |
using | tree_t = AltBlockTree |
using | block_index_t = typename tree_t::index_t |
using | id_vector_t = std::vector< uint8_t > |
Public Member Functions | |
BlockPayloadMutator (tree_t &tree, block_index_t &block, PayloadsIndex< block_index_t > &pl, FinalizedPayloadsIndex< block_index_t > &fpl) | |
bool | isStatefulDuplicate (const id_vector_t &payload_id) |
stateful duplicate payload check as performed by connectBlock() | |
bool | isStatelessDuplicate (const id_vector_t &payload_id) |
stateless payload duplicate check functionally equivalent to checkPopDataForDuplicates | |
template<typename Payload > | |
bool | add (const Payload &payload, ValidationState &state) |
Add a payload to a leaf connected block, apply the payload if the block is applied. More... | |
block_index_t & | getBlock () |
using altintegration::AltBlockTree::BlockPayloadMutator::block_index_t = typename tree_t::index_t |
Definition at line 250 of file alt_block_tree.hpp.
using altintegration::AltBlockTree::BlockPayloadMutator::id_vector_t = std::vector<uint8_t> |
Definition at line 251 of file alt_block_tree.hpp.
Definition at line 249 of file alt_block_tree.hpp.
bool altintegration::AltBlockTree::BlockPayloadMutator::add | ( | const Payload & | payload, |
ValidationState & | state | ||
) |
|
inline |
Definition at line 275 of file alt_block_tree.hpp.