Skip to content

Commit

Permalink
Don't allow scroll in mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Nov 7, 2023
1 parent b3464c2 commit c56d512
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions node/cmd/guardiand/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,11 @@ func runNode(cmd *cobra.Command, args []string) {
logger.Fatal("Both --baseContract and --baseRPC must be set together or both unset")
}

// Scroll should not be allowed in mainnet until its finality policy is understood and implemented in the watcher.
if *scrollRPC != "" && !*testnetMode && !*unsafeDevMode {
logger.Fatal("scroll is currently only supported in devnet and testnet")
}

if (*scrollRPC == "") != (*scrollContract == "") {
logger.Fatal("Both --scrollContract and --scrollRPC must be set together or both unset")
}
Expand Down

0 comments on commit c56d512

Please sign in to comment.