TARAXA
Loading...
Searching...
No Matches
dag_block_bundle_rlp.hpp File Reference
#include <libdevcore/Common.h>
#include <libdevcore/RLP.h>
#include <vector>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  taraxa
 

Functions

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

Variables

static constexpr size_t taraxa::kDAGBlocksBundleRlpSize {3}