@@ -377,7 +377,7 @@ func (r *Layer2Relayer) ProcessPendingBatches() {
377
377
}
378
378
}
379
379
380
- var batchesToSubmit []* dbBatchWithChunksAndParent
380
+ var batchesToSubmit []* dbBatchWithChunks
381
381
for i , dbBatch := range dbBatches {
382
382
var dbChunks []* orm.Chunk
383
383
var dbParentBatch * orm.Batch
@@ -433,10 +433,9 @@ func (r *Layer2Relayer) ProcessPendingBatches() {
433
433
}
434
434
435
435
if batchesToSubmitLen < r .cfg .BatchSubmission .MaxBatches {
436
- batchesToSubmit = append (batchesToSubmit , & dbBatchWithChunksAndParent {
437
- Batch : dbBatch ,
438
- Chunks : dbChunks ,
439
- ParentBatch : dbParentBatch ,
436
+ batchesToSubmit = append (batchesToSubmit , & dbBatchWithChunks {
437
+ Batch : dbBatch ,
438
+ Chunks : dbChunks ,
440
439
})
441
440
}
442
441
@@ -539,10 +538,9 @@ func (r *Layer2Relayer) batchHashesFromContextID(contextID string) []string {
539
538
return []string {contextID }
540
539
}
541
540
542
- type dbBatchWithChunksAndParent struct {
543
- Batch * orm.Batch
544
- Chunks []* orm.Chunk
545
- ParentBatch * orm.Batch
541
+ type dbBatchWithChunks struct {
542
+ Batch * orm.Batch
543
+ Chunks []* orm.Chunk
546
544
}
547
545
548
546
// ProcessPendingBundles submits proof to layer 1 rollup contract
@@ -896,7 +894,7 @@ func (r *Layer2Relayer) handleL2RollupRelayerConfirmLoop(ctx context.Context) {
896
894
}
897
895
}
898
896
899
- func (r * Layer2Relayer ) constructCommitBatchPayloadCodecV7 (batchesToSubmit []* dbBatchWithChunksAndParent , firstBatch , lastBatch * orm.Batch ) ([]byte , []* kzg4844.Blob , uint64 , uint64 , error ) {
897
+ func (r * Layer2Relayer ) constructCommitBatchPayloadCodecV7 (batchesToSubmit []* dbBatchWithChunks , firstBatch , lastBatch * orm.Batch ) ([]byte , []* kzg4844.Blob , uint64 , uint64 , error ) {
900
898
var maxBlockHeight uint64
901
899
var totalGasUsed uint64
902
900
blobs := make ([]* kzg4844.Blob , 0 , len (batchesToSubmit ))
@@ -927,7 +925,7 @@ func (r *Layer2Relayer) constructCommitBatchPayloadCodecV7(batchesToSubmit []*db
927
925
928
926
encodingBatch := & encoding.Batch {
929
927
Index : b .Batch .Index ,
930
- ParentBatchHash : common .HexToHash (b .ParentBatch . Hash ),
928
+ ParentBatchHash : common .HexToHash (b .Batch . ParentBatchHash ),
931
929
PrevL1MessageQueueHash : common .HexToHash (b .Batch .PrevL1MessageQueueHash ),
932
930
PostL1MessageQueueHash : common .HexToHash (b .Batch .PostL1MessageQueueHash ),
933
931
Blocks : batchBlocks ,
0 commit comments