Skip to content

Commit

Permalink
Add timestamp limit to validium
Browse files Browse the repository at this point in the history
This fixes bug where timestamp limit is always 0 in validium recovery mode
  • Loading branch information
cffls committed Jun 18, 2024
1 parent 91f0f69 commit 0993187
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions zk/l1_data/l1_decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ func DecodeL1BatchData(txData []byte, daUrl string) ([][]byte, common.Address, u
return nil, common.Address{}, 0, fmt.Errorf("expected position 3 in the l1 call data to be address")
}
coinbase = cb
ts, ok := data[1].(uint64)
if !ok {
return nil, common.Address{}, 0, fmt.Errorf("expected position 1 in the l1 call data to be the limit timestamp")
}
limitTimstamp = ts
default:
return nil, common.Address{}, 0, fmt.Errorf("unknown l1 call data")
}
Expand Down

0 comments on commit 0993187

Please sign in to comment.