pub fn new(
        vote_data: VoteData,
        author: Author,
        mut ledger_info_placeholder: LedgerInfo,
        validator_signer: &ValidatorSigner,
        sync_info: SyncInfo,
    ) -> Self {
        ledger_info_placeholder.set_consensus_data_hash(vote_data.hash());
        let li_sig = validator_signer
            .sign_message(ledger_info_placeholder.hash())
            .expect("Failed to sign LedgerInfo");
        Self {
            vote_data,
            author,
            ledger_info: ledger_info_placeholder,
            signature: li_sig.into(),
            round_signature: None,
            sync_info,
        }
    }
/// Generates a new VoteMsg corresponding to the "fast-vote" path without the round signatures
/// that can be aggregated into a timeout certificate
Generates a new VoteMsg corresponding to the "fast-vote" path without the round signatures
that can be aggregated into a timeout certificate
Generates a new VoteMsg corresponding to the " fast - vote " path without the round signatures that can be aggregated into a timeout certificate
pub fn new(
        vote_data: VoteData,
        author: Author,
        mut ledger_info_placeholder: LedgerInfo,
        validator_signer: &ValidatorSigner,
        sync_info: SyncInfo,
    ) -> Self {
        ledger_info_placeholder.set_consensus_data_hash(vote_data.hash());
        let li_sig = validator_signer
            .sign_message(ledger_info_placeholder.hash())
            .expect("Failed to sign LedgerInfo");
        Self {
            vote_data,
            author,
            ledger_info: ledger_info_placeholder,
            signature: li_sig.into(),
            round_signature: None,
            sync_info,
        }
    }
pub fn new ( vote_data : VoteData , author : Author , mut ledger_info_placeholder : LedgerInfo , validator_signer : & ValidatorSigner , sync_info : SyncInfo , ) -> Self { ledger_info_placeholder . set_consensus_data_hash ( vote_data . hash ( ) ) ; let li_sig = validator_signer . sign_message ( ledger_info_placeholder . hash ( ) ) . expect ( " " ) ; Self { vote_data , author , ledger_info : ledger_info_placeholder , signature : li_sig . into ( ) , round_signature : None , sync_info , } }
Generates a new VoteMsg corresponding to the "fast-vote" path without the round signatures
that can be aggregated into a timeout certificate
Generates a new VoteMsg corresponding to the " fast - vote " path without the round signatures that can be aggregated into a timeout certificate
vote_data
VoteData
author
Author
ledger_info_placeholder
LedgerInfo
validator_signer
&ValidatorSigner
sync_info
SyncInfo
vote_data
VoteData
author
Author
ledger_info_placeholder
LedgerInfo
validator_signer
&ValidatorSigner
sync_info
SyncInfo