Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add skip header for timeout mutants - pr #4877 related #4918

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions stackslib/src/net/unsolicited.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,7 @@ impl PeerNetwork {
}
}

#[cfg_attr(test, mutants::skip)]
/// Check the signature of a NakamotoBlock against its sortition's reward cycle.
/// The reward cycle must be recent.
pub(crate) fn check_nakamoto_block_signer_signature(
Expand Down Expand Up @@ -793,6 +794,7 @@ impl PeerNetwork {
return (Some(reward_set_sn_rc), can_process);
}

#[cfg_attr(test, mutants::skip)]
/// Determine if an unsolicited NakamotoBlockData message contains data we can potentially
/// buffer. Returns whether or not the block can be buffered.
pub(crate) fn is_nakamoto_block_bufferable(
Expand Down Expand Up @@ -867,6 +869,7 @@ impl PeerNetwork {
to_buffer
}

#[cfg_attr(test, mutants::skip)]
/// Handle an unsolicited NakamotoBlocksData message.
///
/// Unlike Stacks epoch 2.x blocks, no change to the remote peer's inventory will take place.
Expand Down Expand Up @@ -897,6 +900,7 @@ impl PeerNetwork {
)
}

#[cfg_attr(test, mutants::skip)]
/// Handle an unsolicited message, with either the intention of just processing it (in which
/// case, `buffer` will be `false`), or with the intention of not only processing it, but also
/// determining if it can be bufferred and retried later (in which case, `buffer` will be
Expand Down Expand Up @@ -998,6 +1002,7 @@ impl PeerNetwork {
}
}

#[cfg_attr(test, mutants::skip)]
/// Handle unsolicited messages propagated up to us from our ongoing ConversationP2Ps.
/// Return messages that we couldn't handle here, but key them by neighbor, not event, so the
/// relayer can do something useful with them.
Expand Down