Fix typos (#481)
Co-authored-by: Daniel Sanchez <sanchez.quiros.daniel@gmail.com>
This commit is contained in:
parent
ea1dcb82fd
commit
ff8fc577a0
|
@ -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
|
||||
|
|
|
@ -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<R: rand::Rng>(rng: &mut R) -> Self {
|
||||
let mut bytes = [0u8; 32];
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue