Skip to content

Commit

Permalink
fix assemble
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanBratanov committed Nov 10, 2024
1 parent a8749f7 commit 3cd5c22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import tech.pegasys.teku.spec.config.SpecConfig;
import tech.pegasys.teku.spec.datastructures.blocks.BeaconBlock;
import tech.pegasys.teku.spec.datastructures.blocks.MinimalBeaconBlockSummary;
import tech.pegasys.teku.spec.datastructures.forkchoice.ChildNode;
import tech.pegasys.teku.spec.datastructures.forkchoice.ReadOnlyForkChoiceStrategy;
import tech.pegasys.teku.spec.datastructures.operations.Attestation;
import tech.pegasys.teku.spec.datastructures.state.Validator;
Expand Down Expand Up @@ -215,7 +216,7 @@ private Optional<Bytes32> getDutyDependentRoot(
final Bytes32 chainHead,
final UInt64 epoch) {
final UInt64 slot = getDutyDependentRootSlot(epoch);
return forkChoiceStrategy.getAncestor(chainHead, slot);
return forkChoiceStrategy.getAncestor(chainHead, slot).map(ChildNode::root);
}

private Bytes32 getDutyDependentRoot(final BeaconState state, final UInt64 epoch) {
Expand Down

0 comments on commit 3cd5c22

Please sign in to comment.