mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-29 20:27:14 +00:00
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:
@@ -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(),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user