/// Create a voting round from a completed `Round`. We will not vote further
/// in this round.
Create a voting round from a completed `Round`. We will not vote further
in this round.
Create a voting round from a completed ` Round ` . We will not vote further in this round .
pub(super) fn completed(
		votes: Round<E::Id, H, N, E::Signature>,
		finalized_sender: UnboundedSender<FinalizedNotification<H, N, E>>,
		last_round_state: Option<crate::bridge_state::LatterView<H, N>>,
		env: Arc<E>,
	) -> VotingRound<H, N, E> {
		let round_data = env.round_data(votes.number());
		VotingRound {
			votes,
			voting: Voting::No,
			incoming: round_data.incoming,
			outgoing: Buffered::new(round_data.outgoing),
			state: None,
			bridged_round_state: None,
			primary_block: None,
			env,
			last_round_state,
			finalized_sender,
			best_finalized: None,
		}
	}
pub ( super ) fn completed ( votes : Round < E :: Id , H , N , E :: Signature > , finalized_sender : UnboundedSender < FinalizedNotification < H , N , E > > , last_round_state : Option < crate :: bridge_state :: LatterView < H , N > > , env : Arc < E > , ) -> VotingRound < H , N , E > { let round_data = env . round_data ( votes . number ( ) ) ; VotingRound { votes , voting : Voting :: No , incoming : round_data . incoming , outgoing : Buffered :: new ( round_data . outgoing ) , state : None , bridged_round_state : None , primary_block : None , env , last_round_state , finalized_sender , best_finalized : None , } }
Create a voting round from a completed `Round`.
Create a voting round from a completed ` Round ` .
votes
Round<E::Id, H, N, E::Signature>
finalized_sender
UnboundedSender<FinalizedNotification<H, N, E>>
last_round_state
Option<crate::bridge_state::LatterView<H, N>>
env
Arc<E>