Skip to content

Commit c0138d2

Browse files
author
colinlyguo
committed
tweak comments
1 parent 78cf923 commit c0138d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rollup/internal/orm/chunk.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (o *Chunk) GetChunksByBatchHash(ctx context.Context, batchHash string) ([]*
180180
}
181181

182182
// GetParentChunkByBlockNumber retrieves the parent chunk by block number
183-
// for test
183+
// only used by proposer tool for analysis usage
184184
func (o *Chunk) GetParentChunkByBlockNumber(ctx context.Context, blockNumber uint64) (*Chunk, error) {
185185
db := o.db.WithContext(ctx)
186186
db = db.Model(&Chunk{})
@@ -278,7 +278,7 @@ func (o *Chunk) InsertChunk(ctx context.Context, chunk *encoding.Chunk, codecVer
278278
return &newChunk, nil
279279
}
280280

281-
// InsertTestChunkForProposerTool inserts a new chunk into the database only for testing purposes in the proposer tool.
281+
// InsertTestChunkForProposerTool inserts a new chunk into the database only for analysis usage by proposer tool.
282282
func (o *Chunk) InsertTestChunkForProposerTool(ctx context.Context, chunk *encoding.Chunk, codecVersion encoding.CodecVersion, totalL1MessagePoppedBefore uint64, dbTX ...*gorm.DB) (*Chunk, error) {
283283
if chunk == nil || len(chunk.Blocks) == 0 {
284284
return nil, errors.New("invalid args")

0 commit comments

Comments
 (0)