Skip to content

Commit

Permalink
dont request span proof where l2Start gte l2End
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Sep 7, 2024
1 parent 401be35 commit 8755139
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proposer/op/proposer/prove.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ type ProofResponse struct {

// Request a span proof for the range [l2Start, l2End].
func (l *L2OutputSubmitter) RequestSpanProof(l2Start, l2End uint64) (string, error) {
if l2Start >= l2End {
return "", fmt.Errorf("l2Start must be greater than l2End")
}

l.Log.Info("requesting span proof", "start", l2Start, "end", l2End)
requestBody := SpanProofRequest{
Start: l2Start,
Expand Down

0 comments on commit 8755139

Please sign in to comment.