From 604f1be24443a2bd9b320d6f689487427fbffa4c Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 8 Nov 2026 23:23:06 +0000 Subject: screen: what apply_bytes did, without how many it applied How many changes apply_bytes applied was read only by the handler of SIGNATURES, which re-screened the changes waiting for them and published those that went in. With SIGNATURES gone (1219), nothing reads it: Outcome loses the field. --- src/access/screen.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/access/screen.rs b/src/access/screen.rs index 6f7866f..b1318ea 100644 --- a/src/access/screen.rs +++ b/src/access/screen.rs @@ -673,8 +673,6 @@ fn apply_taken( /// What `apply_bytes` did. #[derive(Debug, Default, Clone)] pub(crate) struct Outcome { - /// Changes applied (received, or waiting before). - pub(crate) applied: usize, /// Whether the bytes carried changes, and all of them refused before: their sender /// offers again what the node never takes, and its sync session backs off. pub(crate) refused_again: bool, @@ -765,7 +763,6 @@ pub(crate) fn apply_bytes( log, )?; let outcome = Outcome { - applied: screened.applied, refused_again: received > 0 && screened.refused_again == received, roots: screened.roots.iter().copied().collect(), forged: screened.forged, -- cgit v1.3.1