Skip to content

Commit

Permalink
If running validator, require archive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacolvin0 authored and hkalodner committed Sep 19, 2022
1 parent 18ebe16 commit 0c15fb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/nitro/nitro.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ func main() {
}

if nodeConfig.Node.Validator.Enable {
if !nodeConfig.Node.Archive {
panic("validator requires --node.archive")
}
if !nodeConfig.Node.L1Reader.Enable {
flag.Usage()
panic("validator must read from L1")
Expand Down

0 comments on commit 0c15fb7

Please sign in to comment.