mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-15 09:48:20 +00:00
Merge branch 'glamsterdam-devnet-0' of https://github.com/eserilev/lighthouse into glamsterdam-devnet-0
This commit is contained in:
@@ -2038,7 +2038,9 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
|
||||
});
|
||||
}
|
||||
|
||||
if request_slot >= head_state.slot() {
|
||||
let is_attesting_to_head_slot = request_slot >= head_state.slot();
|
||||
|
||||
if is_attesting_to_head_slot {
|
||||
// When attesting to the head slot or later, always use the head of the chain.
|
||||
beacon_block_root = head.beacon_block_root;
|
||||
beacon_state_root = head.beacon_state_root();
|
||||
|
||||
Reference in New Issue
Block a user