TARAXA
|
#include <libdevcore/Common.h>
#include <libdevcore/RLP.h>
#include <vector>
#include "common/encoding_rlp.hpp"
Go to the source code of this file.
Classes | |
struct | taraxa::OptimizedPbftVotesBundle |
struct | taraxa::OptimizedPillarVotesBundle |
Namespaces | |
namespace | taraxa |
Functions | |
dev::bytes | taraxa::encodePbftVotesBundleRlp (const std::vector< std::shared_ptr< PbftVote > > &votes) |
Encodes pbft votes into optimized votes bundle rlp. | |
std::vector< std::shared_ptr< PbftVote > > | taraxa::decodePbftVotesBundleRlp (const dev::RLP &votes_bundle_rlp) |
Decodes pbft votes from optimized votes bundle rlp. | |
dev::bytes | taraxa::encodePillarVotesBundleRlp (const std::vector< std::shared_ptr< PillarVote > > &votes) |
Encodes pillar votes into optimized votes bundle rlp. | |
std::vector< std::shared_ptr< PillarVote > > | taraxa::decodePillarVotesBundleRlp (const dev::RLP &votes_bundle_rlp) |
Decodes pillar votes from optimized votes bundle rlp. | |
Variables | |
static constexpr size_t | taraxa::kPbftVotesBundleRlpSize {5} |
static constexpr size_t | taraxa::kPillarVotesBundleRlpSize {3} |