Skip to content

Commit

Permalink
Merge pull request #4918 from stacks-network/chore/add-skip-mutants-f…
Browse files Browse the repository at this point in the history
…or-pr-4877

Add skip header for timeout mutants - pr #4877 related
  • Loading branch information
kantai authored Jul 3, 2024
2 parents 1c8cd23 + e6d0177 commit 1f5d9d4
Showing 1 changed file with 5 additions and 0 deletions.
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

0 comments on commit 1f5d9d4

Please sign in to comment.