chore: fix some typos (#4095)

This commit is contained in:
wersfeds
2024-04-12 22:32:23 +08:00
committed by GitHub
parent 1e971b8d2a
commit 480d5d0fea
3 changed files with 3 additions and 3 deletions
@@ -446,7 +446,7 @@ where
)) ))
} }
/// Returns lastest confirmed message at source chain, given source block. /// Returns latest confirmed message at source chain, given source block.
fn latest_confirmed_nonce_at_source(&self, at: &SourceHeaderIdOf<P>) -> Option<MessageNonce> { fn latest_confirmed_nonce_at_source(&self, at: &SourceHeaderIdOf<P>) -> Option<MessageNonce> {
self.latest_confirmed_nonces_at_source self.latest_confirmed_nonces_at_source
.iter() .iter()
@@ -567,7 +567,7 @@ mod tests {
let source_header_1 = header_id(1); let source_header_1 = header_id(1);
let target_header_1 = header_id(1); let target_header_1 = header_id(1);
// we start in perfec sync state - all headers are synced and finalized on both ends // we start in perfect sync state - all headers are synced and finalized on both ends
let mut state = TestRaceStateImpl { let mut state = TestRaceStateImpl {
best_finalized_source_header_id_at_source: Some(source_header_1), best_finalized_source_header_id_at_source: Some(source_header_1),
best_finalized_source_header_id_at_best_target: Some(source_header_1), best_finalized_source_header_id_at_best_target: Some(source_header_1),
+1 -1
View File
@@ -23,7 +23,7 @@ to return the best known head of given parachain. When required, it must be able
finality delivery transaction to the target node. finality delivery transaction to the target node.
The main entrypoint for the crate is the [`run` function](./src/parachains_loop.rs), which takes source and target The main entrypoint for the crate is the [`run` function](./src/parachains_loop.rs), which takes source and target
clients and [`ParachainSyncParams`](./src/parachains_loop.rs) parameters. The most imporant parameter is the clients and [`ParachainSyncParams`](./src/parachains_loop.rs) parameters. The most important parameter is the
`parachains` - it is the set of parachains, which relay tracks and updates. The other important parameter that `parachains` - it is the set of parachains, which relay tracks and updates. The other important parameter that
may affect the relay operational costs is the `strategy`. If it is set to `Any`, then the finality delivery may affect the relay operational costs is the `strategy`. If it is set to `Any`, then the finality delivery
transaction is submitted if at least one of tracked parachain heads is updated. The other option is `All`. Then transaction is submitted if at least one of tracked parachain heads is updated. The other option is `All`. Then