Ensure we use the right fork when calculating payload attestation sig domain (#9342)

Using `state.fork` is a bit sketchy at the fork boundary. It's safer to just use the payload attestations slot


  


Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu>
This commit is contained in:
Eitan Seri-Levi
2026-05-22 10:50:45 -07:00
committed by GitHub
parent 60abd4b5b9
commit 5693d86002

View File

@@ -378,10 +378,11 @@ where
.data .data
.slot .slot
.epoch(E::slots_per_epoch()); .epoch(E::slots_per_epoch());
let fork = spec.fork_at_epoch(epoch);
let domain = spec.get_domain( let domain = spec.get_domain(
epoch, epoch,
Domain::PTCAttester, Domain::PTCAttester,
&state.fork(), &fork,
state.genesis_validators_root(), state.genesis_validators_root(),
); );