mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-12 01:27:32 +00:00
node: wire the next-side XX handshake and rekey rejection sites
Adapt the typed RejectReason coverage to the Noise XX handshake: wire the msg1/msg2/msg3 state-machine rejection sites in handlers/handshake.rs and the rekey-initiator outbound sites in handlers/rekey.rs, and add the XX-specific HandshakeStats counters. The shared RejectReason scaffold and the branch-agnostic clusters come from the merged refactor-hotpath work; this commit carries only the next-side delta.
This commit is contained in:
@@ -49,10 +49,10 @@ async fn test_m1_rejects_all_ones_filter_announce() {
|
||||
node.handle_filter_announce(&peer_addr, &payload).await;
|
||||
|
||||
let after = &node.stats().bloom;
|
||||
// While the typed-rejection rollout is in progress the call site
|
||||
// bumps the counter directly AND dispatches through record_reject,
|
||||
// which hits the same counter. A later change will collapse this to
|
||||
// a single increment by removing the legacy direct bump; for now
|
||||
// While the typed-rejection rollout is in progress the call site bumps
|
||||
// counter directly AND dispatches through record_reject, which
|
||||
// hits the same counter. A later change will collapse this to a
|
||||
// single increment by removing the legacy direct bump; for now
|
||||
// the rejection-path event yields a +2 delta.
|
||||
assert_eq!(
|
||||
after.fill_exceeded,
|
||||
|
||||
Reference in New Issue
Block a user