Skip to content

Commit

Permalink
Merge branch 'develop' into feat-gas-oracle-exchange-rate
Browse files Browse the repository at this point in the history
  • Loading branch information
yiweichi authored Oct 14, 2024
2 parents 98dcb74 + d6b9176 commit 198fc30
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rollup/internal/controller/watcher/bundle_proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package watcher

import (
"context"
"errors"
"time"

"github.com/prometheus/client_golang/prometheus"
Expand Down Expand Up @@ -146,6 +147,12 @@ func (p *BundleProposer) proposeBundle() error {
if err != nil {
return err
}

if firstChunk == nil {
log.Error("first chunk not found", "start chunk index", batches[0].StartChunkIndex, "start batch index", batches[0].Index, "firstUnbundledBatchIndex", firstUnbundledBatchIndex)
return errors.New("first chunk not found in proposeBundle")
}

hardforkName := forks.GetHardforkName(p.chainCfg, firstChunk.StartBlockNumber, firstChunk.StartBlockTime)
codecVersion := encoding.CodecVersion(batches[0].CodecVersion)
for i := 1; i < len(batches); i++ {
Expand Down

0 comments on commit 198fc30

Please sign in to comment.