Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 committed Sep 25, 2024
1 parent 767e5b9 commit bb7c97b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions mod/consensus/pkg/cometbft/service/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,6 @@ func (s *Service[LoggerT]) InitChain(
return nil, errors.New("finalizeBlockState is nil")
}

// add block gas meter for any genesis transactions (allow infinite gas)
s.finalizeBlockState.SetContext(
s.finalizeBlockState.Context(),
)

res, err := s.initChainer(s.finalizeBlockState.Context(), req)
if err != nil {
return nil, err
Expand Down Expand Up @@ -233,8 +228,6 @@ func (s *Service[LoggerT]) PrepareProposal(
),
)

s.prepareProposalState.SetContext(s.prepareProposalState.Context())

blkBz, sidecarsBz, err := s.Middleware.PrepareProposal(
s.prepareProposalState.Context(), &types.SlotData[
*ctypes.AttestationData,
Expand Down Expand Up @@ -330,7 +323,6 @@ func (s *Service[LoggerT]) internalFinalizeBlock(
if s.finalizeBlockState == nil {
return nil, errors.New("finalizeBlockState is nil")
}
s.finalizeBlockState.SetContext(s.finalizeBlockState.Context())

// First check for an abort signal after beginBlock, as it's the first place
// we spend any significant amount of time.
Expand All @@ -341,10 +333,6 @@ func (s *Service[LoggerT]) internalFinalizeBlock(
// continue
}

s.finalizeBlockState.SetContext(
s.finalizeBlockState.Context(),
)

// Iterate over all raw transactions in the proposal and attempt to execute
// them, gathering the execution results.
//
Expand Down

0 comments on commit bb7c97b

Please sign in to comment.