diff --git a/consensus-engine/README.md b/consensus-engine/README.md index 0fff23c6..c1f389ad 100644 --- a/consensus-engine/README.md +++ b/consensus-engine/README.md @@ -9,7 +9,7 @@ To test consensus-engine with randomized state transitions, cargo test --test fuzz_test ``` -By default, the fuzz test runs only [few test cases and transisions](tests/fuzz_test.rs#L15). +By default, the fuzz test runs only [few test cases and transitions](tests/fuzz_test.rs#L15). To trigger a long-running fuzz test, please use the following environment variables: ```bash PROPTEST_CASES=500000 \ # Num of successful test cases that must execute diff --git a/consensus-engine/src/types/block_id.rs b/consensus-engine/src/types/block_id.rs index 91e29b60..e1de990c 100644 --- a/consensus-engine/src/types/block_id.rs +++ b/consensus-engine/src/types/block_id.rs @@ -29,7 +29,7 @@ impl BlockId { Self([0; 32]) } - /// Returns a random block id, only avaliable with feature `simulation` or test + /// Returns a random block id, only available with feature `simulation` or test #[cfg(any(test, feature = "simulation"))] pub fn random(rng: &mut R) -> Self { let mut bytes = [0u8; 32]; diff --git a/nodes/nomos-node/README.md b/nodes/nomos-node/README.md index 4fd2466e..cad343b3 100644 --- a/nodes/nomos-node/README.md +++ b/nodes/nomos-node/README.md @@ -13,7 +13,7 @@ Nomos node can be configured with one of the following network backends: The [mixclient](../../mixnet/client/) is currently integrated as a part of the libp2p network backend. To run a Nomos node with the libp2p network backend, the `mixnet_client` and `mixnet_delay` fields in the [`config.yaml`](./config.yaml) must be specified, so the Nomos node can send/receive packets to/from mixnodes. -For more detials about the mixnode/mixclient architecture, see the [mixnet documentation](../../mixnet/README.md). +For more details about the mixnode/mixclient architecture, see the [mixnet documentation](../../mixnet/README.md). ```mermaid flowchart LR diff --git a/simulations/src/network/mod.rs b/simulations/src/network/mod.rs index 70c413cb..45bdad2c 100644 --- a/simulations/src/network/mod.rs +++ b/simulations/src/network/mod.rs @@ -806,7 +806,7 @@ mod tests { assert_eq!(b.receive_messages().len(), 1); // Node A should receive a message during the third step, because it's throughput during the - // step is 5, but the message it recieves is of size 15. + // step is 5, but the message it receives is of size 15. network.step(Duration::from_millis(100)); assert_eq!(a.receive_messages().len(), 1); assert_eq!(b.receive_messages().len(), 0); diff --git a/simulations/src/node/dummy.rs b/simulations/src/node/dummy.rs index 42d91e2d..86d5b9de 100644 --- a/simulations/src/node/dummy.rs +++ b/simulations/src/node/dummy.rs @@ -624,7 +624,7 @@ mod tests { assert!(!nodes[&NodeId::from_index(1)].state().view_state[&View::new(1)].vote_sent); // Internal assert!(!nodes[&NodeId::from_index(2)].state().view_state[&View::new(1)].vote_sent); // Internal - // Leaves should have thier vote sent. + // Leaves should have their vote sent. assert!(nodes[&NodeId::from_index(3)].state().view_state[&View::new(1)].vote_sent); // Leaf assert!(nodes[&NodeId::from_index(4)].state().view_state[&View::new(1)].vote_sent); // Leaf assert!(nodes[&NodeId::from_index(5)].state().view_state[&View::new(1)].vote_sent); // Leaf @@ -640,7 +640,7 @@ mod tests { // Root hasn't sent its votes yet. assert!(!nodes[&NodeId::from_index(0)].state().view_state[&View::new(1)].vote_sent); // Root - // Internal and leaves should have thier vote sent. + // Internal and leaves should have their vote sent. assert!(nodes[&NodeId::from_index(1)].state().view_state[&View::new(1)].vote_sent); // Internal assert!(nodes[&NodeId::from_index(2)].state().view_state[&View::new(1)].vote_sent); // Internal assert!(nodes[&NodeId::from_index(3)].state().view_state[&View::new(1)].vote_sent); // Leaf @@ -694,7 +694,7 @@ mod tests { assert!(!nodes[&NodeId::from_index(1)].state().view_state[&View::new(2)].vote_sent); // Internal assert!(!nodes[&NodeId::from_index(2)].state().view_state[&View::new(2)].vote_sent); // Internal - // Leaves should have thier vote sent. + // Leaves should have their vote sent. assert!(nodes[&NodeId::from_index(3)].state().view_state[&View::new(2)].vote_sent); // Leaf assert!(nodes[&NodeId::from_index(4)].state().view_state[&View::new(2)].vote_sent); // Leaf assert!(nodes[&NodeId::from_index(5)].state().view_state[&View::new(2)].vote_sent); // Leaf diff --git a/tests/src/tests/unhappy.rs b/tests/src/tests/unhappy.rs index 358d05f9..5943f758 100644 --- a/tests/src/tests/unhappy.rs +++ b/tests/src/tests/unhappy.rs @@ -113,7 +113,7 @@ fn assert_timeout_qc_consensus<'a>( .clone() .expect("collected timeout_qc shouldn't be None"); - // NOTE: This check could be failed if other timeout_qcs had occured + // NOTE: This check could be failed if other timeout_qcs had occurred // before `consensus_infos` were gathered. // But it should be okay as long as the `timeout` is not too short. assert_eq!(timeout_qc.view(), view);