From da56bdcf09280e9e2af697ecfe6276e7177cecd0 Mon Sep 17 00:00:00 2001 From: goshawk-3 Date: Fri, 28 Jun 2024 17:17:32 +0300 Subject: [PATCH] node: Rename get_voters to get_att_voters --- node/src/chain/acceptor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/node/src/chain/acceptor.rs b/node/src/chain/acceptor.rs index b85c305002..b328c3acd9 100644 --- a/node/src/chain/acceptor.rs +++ b/node/src/chain/acceptor.rs @@ -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 { - /// the tip + /// the Tip tip: RwLock, /// Provisioners needed to verify next block @@ -177,7 +177,7 @@ impl Acceptor { 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, @@ -189,7 +189,7 @@ impl Acceptor { ); } - async fn get_voters( + async fn get_att_voters( &self, provisioners_list: &Provisioners, tip: &Block, @@ -845,7 +845,7 @@ impl Acceptor { ); 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(