Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonRGB committed Apr 29, 2024
1 parent e74a227 commit feebf56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synchronizer/actions/etrog/processor_l1_sequence_batches.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (p *ProcessorL1SequenceBatchesEtrog) ProcessSequenceBatches(ctx context.Con
}
} else {
// Reprocess batch to compare the stateRoot with tBatch.StateRoot and get accInputHash
batchRespose, err := p.state.ExecuteBatchV2(ctx, batch, processCtx.L1InfoRoot, leaves, *processCtx.Timestamp, false, processCtx.SkipVerifyL1InfoRoot, processCtx.ForcedBlockHashL1, dbTx)
batchResponse, err := p.state.ExecuteBatchV2(ctx, batch, processCtx.L1InfoRoot, leaves, *processCtx.Timestamp, false, processCtx.SkipVerifyL1InfoRoot, processCtx.ForcedBlockHashL1, dbTx)
if err != nil {
log.Errorf("error executing L1 batch: %+v, error: %v", batch, err)
rollbackErr := dbTx.Rollback(ctx)
Expand All @@ -262,8 +262,8 @@ func (p *ProcessorL1SequenceBatchesEtrog) ProcessSequenceBatches(ctx context.Con
}
return err
}
newRoot = common.BytesToHash(batchRespose.NewStateRoot)
accumulatedInputHash := common.BytesToHash(batchRespose.NewAccInputHash)
newRoot = common.BytesToHash(batchResponse.NewStateRoot)
accumulatedInputHash := common.BytesToHash(batchResponse.NewAccInputHash)

//AddAccumulatedInputHash
err = p.state.AddAccumulatedInputHash(ctx, batch.BatchNumber, accumulatedInputHash, dbTx)
Expand Down

0 comments on commit feebf56

Please sign in to comment.