TARAXA
dag_block_bundle_rlp.cpp File Reference
#include "dag/dag_block_bundle_rlp.hpp"
#include <vector>
#include "common/types.hpp"
#include "dag/dag_block.hpp"

Namespaces

 taraxa
 

Functions

dev::bytes taraxa::encodeDAGBlocksBundleRlp (const std::vector< DagBlock > &blocks)
 Encodes pbft blocks into optimized blocks bundle rlp. More...
 
std::vector< DagBlock > taraxa::decodeDAGBlocksBundleRlp (const dev::RLP &blocks_bundle_rlp)
 Decodes pbft blocks from optimized blocks bundle rlp. More...
 
std::shared_ptr< DagBlock > taraxa::decodeDAGBlockBundleRlp (uint64_t index, const dev::RLP &blocks_bundle_rlp)
 Decodes single dag block from optimized blocks bundle rlp. More...