mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 07:37:57 +00:00
dev-comment spelling mistakes (#4434)
This commit is contained in:
committed by
GitHub
parent
854d92a4a4
commit
4adb8466a3
@@ -938,7 +938,7 @@ where
|
||||
handle_incoming_peer_message(ctx, runtime, state, remote, msg).await?;
|
||||
},
|
||||
NewGossipTopology(..) => {
|
||||
// impossibru!
|
||||
// impossible!
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -311,7 +311,7 @@ async fn distribute_collation(
|
||||
// whether or not we expect a connection request or not.
|
||||
should_connect: bool,
|
||||
) -> DistributeCollation {
|
||||
// Now we want to distribute a PoVBlock
|
||||
// Now we want to distribute a `PoVBlock`
|
||||
let pov_block = PoV { block_data: BlockData(vec![42, 43, 44]) };
|
||||
|
||||
let pov_hash = pov_block.hash();
|
||||
@@ -531,7 +531,7 @@ fn advertise_and_send_collation() {
|
||||
|
||||
// We declare to the connected validators that we are a collator.
|
||||
// We need to catch all `Declare` messages to the validators we've
|
||||
// previosly connected to.
|
||||
// previously connected to.
|
||||
for peer_id in test_state.current_group_validator_peer_ids() {
|
||||
expect_declare_msg(&mut virtual_overseer, &test_state, &peer_id).await;
|
||||
}
|
||||
@@ -897,7 +897,7 @@ where
|
||||
|
||||
// We declare to the connected validators that we are a collator.
|
||||
// We need to catch all `Declare` messages to the validators we've
|
||||
// previosly connected to.
|
||||
// previously connected to.
|
||||
for peer_id in test_state.current_group_validator_peer_ids() {
|
||||
expect_declare_msg(virtual_overseer, &test_state, &peer_id).await;
|
||||
}
|
||||
|
||||
@@ -1009,7 +1009,7 @@ where
|
||||
state.metrics.note_collator_peer_count(state.peer_data.len());
|
||||
},
|
||||
NewGossipTopology(..) => {
|
||||
// impossibru!
|
||||
// impossible!
|
||||
},
|
||||
PeerViewChange(peer_id, view) => {
|
||||
handle_peer_view_change(state, peer_id, view).await?;
|
||||
@@ -1254,7 +1254,7 @@ async fn handle_collation_fetched_result<Context>(
|
||||
Context: SubsystemContext<Message = CollatorProtocolMessage>,
|
||||
{
|
||||
// If no prior collation for this relay parent has been seconded, then
|
||||
// memoize the collation_event for that relay_parent, such that we may
|
||||
// memorize the `collation_event` for that `relay_parent`, such that we may
|
||||
// notify the collator of their successful second backing
|
||||
let relay_parent = collation_event.1.relay_parent;
|
||||
|
||||
@@ -1392,7 +1392,7 @@ async fn poll_collation_response(
|
||||
"Fetching collation failed due to network error"
|
||||
);
|
||||
// A minor decrease in reputation for any network failure seems
|
||||
// sensible. In theory this could be exploited, by DoSing this node,
|
||||
// sensible. In theory this could be exploited, by Dosing this node,
|
||||
// which would result in reduced reputation for proper nodes, but the
|
||||
// same can happen for penalties on timeouts, which we also have.
|
||||
CollationFetchResult::Error(COST_NETWORK_ERROR)
|
||||
@@ -1406,7 +1406,7 @@ async fn poll_collation_response(
|
||||
"Request timed out"
|
||||
);
|
||||
// A minor decrease in reputation for any network failure seems
|
||||
// sensible. In theory this could be exploited, by DoSing this node,
|
||||
// sensible. In theory this could be exploited, by Dosing this node,
|
||||
// which would result in reduced reputation for proper nodes, but the
|
||||
// same can happen for penalties on timeouts, which we also have.
|
||||
CollationFetchResult::Error(COST_REQUEST_TIMED_OUT)
|
||||
|
||||
@@ -494,7 +494,7 @@ fn collator_authentication_verification_works() {
|
||||
// our view.
|
||||
// - Collation protocol should request one PoV.
|
||||
// - Collation protocol should disconnect both collators after having received the collation.
|
||||
// - The same collators plus an additional collator connect again and send povs for a different relay parent.
|
||||
// - The same collators plus an additional collator connect again and send `PoV`s for a different relay parent.
|
||||
// - Collation protocol will request one PoV, but we will cancel it.
|
||||
// - Collation protocol should request the second PoV which does not succeed in time.
|
||||
// - Collation protocol should request third PoV.
|
||||
@@ -697,7 +697,7 @@ fn reject_connection_to_next_group() {
|
||||
&mut virtual_overseer,
|
||||
peer_b.clone(),
|
||||
test_state.collators[0].clone(),
|
||||
test_state.chain_ids[1].clone(), // next, not current para_id
|
||||
test_state.chain_ids[1].clone(), // next, not current `para_id`
|
||||
)
|
||||
.await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user