Skip to content

Commit

Permalink
use quorum_certificate instead of quorum_certificate_message for quor…
Browse files Browse the repository at this point in the history
…um_certificate_extension
  • Loading branch information
linh2931 committed Dec 27, 2023
1 parent b72e3e4 commit a014d6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 6 additions & 7 deletions libraries/chain/include/eosio/chain/block.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,17 @@ namespace eosio { namespace chain {

quorum_certificate_extension() = default;

quorum_certificate_extension( const quorum_certificate_message& qc, uint32_t last_qc_block_num )
:qc( qc ), last_qc_block_num( last_qc_block_num )
quorum_certificate_extension( const quorum_certificate& qc)
:qc( qc )
{}

quorum_certificate_extension( const quorum_certificate_message&& qc, uint32_t last_qc_block_num )
:qc( std::move(qc) ), last_qc_block_num( last_qc_block_num )
quorum_certificate_extension( const quorum_certificate&& qc)
:qc( std::move(qc) )
{}

void reflector_init();

quorum_certificate_message qc;
uint32_t last_qc_block_num;
quorum_certificate qc;
};

namespace detail {
Expand Down Expand Up @@ -140,5 +139,5 @@ FC_REFLECT_ENUM( eosio::chain::transaction_receipt::status_enum,
FC_REFLECT(eosio::chain::transaction_receipt_header, (status)(cpu_usage_us)(net_usage_words) )
FC_REFLECT_DERIVED(eosio::chain::transaction_receipt, (eosio::chain::transaction_receipt_header), (trx) )
FC_REFLECT(eosio::chain::additional_block_signatures_extension, (signatures));
FC_REFLECT(eosio::chain::quorum_certificate_extension, (qc)(last_qc_block_num));
FC_REFLECT(eosio::chain::quorum_certificate_extension, (qc));
FC_REFLECT_DERIVED(eosio::chain::signed_block, (eosio::chain::signed_block_header), (transactions)(block_extensions) )
2 changes: 2 additions & 0 deletions libraries/chain/include/eosio/chain/hotstuff/hotstuff.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,3 +243,5 @@ FC_REFLECT(eosio::chain::hs_proposal_message, (proposal_id)(block_id)(parent_id)
FC_REFLECT(eosio::chain::hs_new_view_message, (high_qc));
FC_REFLECT(eosio::chain::finalizer_state, (b_leaf)(b_lock)(b_exec)(b_finality_violation)(block_exec)(pending_proposal_block)(v_height)(high_qc)(current_qc)(schedule)(proposals));
FC_REFLECT(eosio::chain::hs_message, (msg));
FC_REFLECT(eosio::chain::valid_quorum_certificate, (_proposal_id)(_proposal_digest)(_strong_votes)(_weak_votes)(_sig));
FC_REFLECT(eosio::chain::quorum_certificate, (block_height)(qc));

0 comments on commit a014d6e

Please sign in to comment.