Skip to content

Commit

Permalink
Minor touchups
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Jan 29, 2021
1 parent 0b1b977 commit 6d89f3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion beacon-chain/core/state/transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ func ExecuteStateTransitionNoVerifyAnySig(

state, err = ProcessSlotsUsingNextSlotCache(ctx, state, signed.Block.ParentRoot, signed.Block.Slot)
if err != nil {
return nil, nil, err
return nil, nil, errors.Wrap(err, "could not process slots")
}

// Execute per block transition.
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/validator/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (vs *Server) GetBlock(ctx context.Context, req *ethpb.BlockRequest) (*ethpb

head, err = state.ProcessSlotsUsingNextSlotCache(ctx, head, parentRoot, req.Slot)
if err != nil {
return nil, status.Errorf(codes.Internal, "Could not get parent state %v", err)
return nil, status.Errorf(codes.Internal, "Could not advance slots to calculate proposer index: %v", err)
}

var eth1Data *ethpb.Eth1Data
Expand Down

0 comments on commit 6d89f3b

Please sign in to comment.