TARAXA
votes_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

 taraxa
 

Functions

dev::bytes taraxa::encodePbftVotesBundleRlp (const std::vector< std::shared_ptr< PbftVote >> &votes)
 Encodes pbft votes into optimized votes bundle rlp. More...
 
std::vector< std::shared_ptr< PbftVote > > taraxa::decodePbftVotesBundleRlp (const dev::RLP &votes_bundle_rlp)
 Decodes pbft votes from optimized votes bundle rlp. More...
 
dev::bytes taraxa::encodePillarVotesBundleRlp (const std::vector< std::shared_ptr< PillarVote >> &votes)
 Encodes pillar votes into optimized votes bundle rlp. More...
 
std::vector< std::shared_ptr< PillarVote > > taraxa::decodePillarVotesBundleRlp (const dev::RLP &votes_bundle_rlp)
 Decodes pillar votes from optimized votes bundle rlp. More...
 

Variables

constexpr static size_t taraxa::kPbftVotesBundleRlpSize {5}
 
constexpr static size_t taraxa::kPillarVotesBundleRlpSize {3}