From d89b2b244c29c3c5805301a5be6fa9ded17b817c Mon Sep 17 00:00:00 2001 From: shandongzhejiang Date: Wed, 21 Aug 2024 10:59:43 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: shandongzhejiang --- pool/pool.go | 2 +- sequencer/forcedbatch.go | 2 +- sequencer/l2block.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pool/pool.go b/pool/pool.go index 029ee14dbb..94f7466227 100644 --- a/pool/pool.go +++ b/pool/pool.go @@ -99,7 +99,7 @@ func NewPool(cfg Config, batchConstraintsCfg state.BatchConstraintsCfg, s storag return p } -// refresGasPRices refreshes the gas price +// refreshGasPrices refreshes the gas price func (p *Pool) refreshGasPrices() { gasPrices, err := p.GetGasPrices(context.Background()) if err != nil { diff --git a/sequencer/forcedbatch.go b/sequencer/forcedbatch.go index de1082c347..7cf2a23c48 100644 --- a/sequencer/forcedbatch.go +++ b/sequencer/forcedbatch.go @@ -159,7 +159,7 @@ func (f *finalizer) addForcedTxToWorker(forcedBatchResponse *state.ProcessBatchR } } -// handleProcessForcedTxsResponse handles the block/transactions responses for the processed forced batch. +// handleProcessForcedBatchResponse handles the block/transactions responses for the processed forced batch. func (f *finalizer) handleProcessForcedBatchResponse(ctx context.Context, newBatchNumber uint64, batchResponse *state.ProcessBatchResponse, dbTx pgx.Tx) error { f.addForcedTxToWorker(batchResponse) diff --git a/sequencer/l2block.go b/sequencer/l2block.go index a0da9fd0e3..ed9f89f2c2 100644 --- a/sequencer/l2block.go +++ b/sequencer/l2block.go @@ -155,7 +155,7 @@ func (f *finalizer) processPendingL2Blocks(ctx context.Context) { } } -// storePendingTransactions stores the pending L2 blocks in the database +// storePendingL2Blocks stores the pending L2 blocks in the database func (f *finalizer) storePendingL2Blocks(ctx context.Context) { for { select {