From 64be91ccadd81c0411945296fed5669a6e6179b7 Mon Sep 17 00:00:00 2001 From: Chen Kai <281165273grape@gmail.com> Date: Wed, 7 Jan 2026 23:01:29 +0800 Subject: [PATCH] fix: fix process attestation source/target check bug Signed-off-by: Chen Kai <281165273grape@gmail.com> --- src/lean_spec/subspecs/containers/state/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lean_spec/subspecs/containers/state/state.py b/src/lean_spec/subspecs/containers/state/state.py index d24a4d95..3326c2dc 100644 --- a/src/lean_spec/subspecs/containers/state/state.py +++ b/src/lean_spec/subspecs/containers/state/state.py @@ -460,7 +460,7 @@ def process_attestations( # This prevents votes about unknown or conflicting forks. if ( source.root != self.historical_block_hashes[source.slot] - and target.root != self.historical_block_hashes[target.slot] + or target.root != self.historical_block_hashes[target.slot] ): continue