Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jking-aus committed Oct 21, 2024
1 parent bf53228 commit c474944
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
11 changes: 10 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 11 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
[workspace]
# Extra tooling projects will be added.
members = ["anchor", "anchor/client", "anchor/http_api", "anchor/qbft"]
members = [
"anchor",
"anchor/client",
"anchor/http_api",
"anchor/qbft",
"anchor/types",
]
resolver = "2"

[workspace.package]
Expand All @@ -10,6 +16,7 @@ edition = "2021"
client = { path = "anchor/client" }
qbft = { path = "anchor/qbft" }
http_api = { path = "anchor/http_api" }
types = { path = "anchor/types" }
task_executor = { git = "https://github.com/sigp/lighthouse", branch = "anchor", default-features = false, features = [
"tracing",
] }
Expand All @@ -24,6 +31,7 @@ futures = "0.3.30"
# dirs = "3"
hyper = "1.4"
serde = { version = "1.0.208", features = ["derive"] }
ethereum_serde_utils = "0.7.0"
tokio = { version = "1.39.2", features = [
"rt",
"rt-multi-thread",
Expand All @@ -33,6 +41,8 @@ tokio = { version = "1.39.2", features = [
] }
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["fmt", "env-filter"] }
arbitrary = { version = "1.3.2", features = ["derive"] }


[profile.maxperf]
inherits = "release"
Expand Down
11 changes: 4 additions & 7 deletions anchor/qbft/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,17 +234,17 @@ where
fn start_round(&mut self) {
debug!(round = *self.current_round, "Starting new round",);

// Remove old unnecessary round change message
// Remove round change messages that would be for previous rounds
self.round_change_messages
.retain(|&round, _value| round >= self.current_round);

// Initialise the instance state for the round
self.state = InstanceState::AwaitingProposal;

// Check if we are the leader
if self.check_leader(&self.operator_id()) {
// We are the leader
debug!("Current leader");

self.state = InstanceState::AwaitingProposal;

// Check justification of round change quorum
if let Some(validated_data) = self.justify_round_change_quorum().cloned() {
debug!(
Expand All @@ -257,9 +257,6 @@ where
self.send_proposal(self.start_data.clone());
self.send_prepare(self.start_data.clone());
}
} else {
// We are not the leader, so await a proposal from a leader
self.state = InstanceState::AwaitingProposal;
}
}

Expand Down
1 change: 0 additions & 1 deletion anchor/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use tracing::{error, info};

mod environment;

use client::Client;
use environment::Environment;
use task_executor::ShutdownReason;
Expand Down

0 comments on commit c474944

Please sign in to comment.