Skip to content

Commit ec82c9e

Browse files
authored
Merge branch 'main' into li/integration-nitro
2 parents 0754403 + b2f5a5e commit ec82c9e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

cliquenet/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ undergo a series of stages.
2525

2626
If the TCP listener accepts a new inbound connection it creates a handshake task which
2727
attempts to perform a Noise handshake which involves a Diffie-Hellman key exchange and
28-
-- if successfull -- results in an authenticated and secure link with an identified
28+
-- if successful -- results in an authenticated and secure link with an identified
2929
peer.
3030

3131
### Connect task
@@ -53,7 +53,7 @@ peer a node drops the one whose associated public key is smaller than its own.
5353

5454
### I/O tasks
5555

56-
After successful connection establishment, two tasks are created, one to continously
56+
After successful connection establishment, two tasks are created, one to continuously
5757
read incoming data and one to send application data. The data is split and encrypted
5858
into frames of 64 KiB (the maximum size of a Noise package) or less. Failure of either
5959
task results in the termination of both and a new connect task is created to
@@ -77,7 +77,7 @@ channel to the respective write task. The capacity of every channel is bounded.
7777
If the one the application uses is full, backpressure is exercised, i.e. the
7878
application has to wait. This can happen for example, if no connection is available
7979
for some time. The channel to an I/O write task is also bounded, but if full, the
80-
connection is considered slow and unhealty and will be dropped, resulting in a new
80+
connection is considered slow and unhealthy and will be dropped, resulting in a new
8181
connect task to re-establish the connection.
8282

8383
## Data frame

sailfish-consensus/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ where
974974
}
975975
actions.push(Action::Catchup(Round::new(r, self.committee.id())));
976976
}
977-
} else if self.committed_round >= self.nodes.quorum() {
977+
} else if self.committed_round >= *self.nodes.quorum() {
978978
for v in self.buffer.drain_round(r) {
979979
self.dag.add(v)
980980
}

sailfish-types/src/nodeinfo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub struct NodeInfo<T> {
66
quorum: usize,
77
}
88

9-
impl<T: Default + PartialOrd + Clone> NodeInfo<T> {
9+
impl<T: Default + PartialOrd> NodeInfo<T> {
1010
pub fn new(c: &Committee) -> Self {
1111
Self {
1212
nodes: c.parties().map(|k| (*k, T::default())).collect(),
@@ -43,8 +43,8 @@ impl<T: Default + PartialOrd + Clone> NodeInfo<T> {
4343
}
4444

4545
/// Gets the lower bound of the highest quorum interval.
46-
pub fn quorum(&self) -> T {
46+
pub fn quorum(&self) -> &T {
4747
debug_assert!(self.quorum <= self.nodes.len());
48-
self.nodes[self.quorum - 1].1.clone()
48+
&self.nodes[self.quorum - 1].1
4949
}
5050
}

0 commit comments

Comments
 (0)