Skip to content

Commit

Permalink
node: Rename get_voters to get_att_voters
Browse files Browse the repository at this point in the history
  • Loading branch information
goshawk-3 committed Jun 28, 2024
1 parent a14437a commit da56bdc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/src/chain/acceptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub(crate) enum RevertTarget {
/// attestation and transactions full verifications.
/// Acceptor also manages the initialization and lifespan of Consensus task.
pub(crate) struct Acceptor<N: Network, DB: database::DB, VM: vm::VMExecution> {
/// the tip
/// the Tip
tip: RwLock<BlockWithLabel>,

/// Provisioners needed to verify next block
Expand Down Expand Up @@ -177,7 +177,7 @@ impl<DB: database::DB, VM: vm::VMExecution, N: Network> Acceptor<N, DB, VM> {
let tip = self.tip.read().await.inner().clone();

let tip_block_voters =
self.get_voters(provisioners_list.prev(), &tip).await;
self.get_att_voters(provisioners_list.prev(), &tip).await;

self.task.write().await.spawn(
&tip,
Expand All @@ -189,7 +189,7 @@ impl<DB: database::DB, VM: vm::VMExecution, N: Network> Acceptor<N, DB, VM> {
);
}

async fn get_voters(
async fn get_att_voters(
&self,
provisioners_list: &Provisioners,
tip: &Block,
Expand Down Expand Up @@ -845,7 +845,7 @@ impl<DB: database::DB, VM: vm::VMExecution, N: Network> Acceptor<N, DB, VM> {
);

let tip_block_voters =
self.get_voters(provisioners_list.prev(), &tip).await;
self.get_att_voters(provisioners_list.prev(), &tip).await;

let base_timeouts = self.adjust_round_base_timeouts().await;
task.spawn(
Expand Down

0 comments on commit da56bdc

Please sign in to comment.