Skip to content

Commit

Permalink
Merge branch 'e2e-node-api' into node-api-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
nidhi-singh02 committed Sep 26, 2024
2 parents e36e4f0 + 89ca105 commit de7404f
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 de7404f

Please sign in to comment.