aboutsummaryrefslogtreecommitdiffstats
path: root/src/access
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-08 23:23:06 +0000
committertv <tv@krebsco.de>2026-11-09 00:24:33 +0100
commit604f1be24443a2bd9b320d6f689487427fbffa4c (patch)
tree6ceaf2643c977eb0fe972a0173598852138f2940 /src/access
parentb33f4235fe16b8160afb60d0bd743f4c81d9d0ab (diff)
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.
Diffstat (limited to 'src/access')
-rw-r--r--src/access/screen.rs3
1 files changed, 0 insertions, 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,