Skip to content

Commit

Permalink
Merge pull request #2002 from OffchainLabs/change-warning-msg
Browse files Browse the repository at this point in the history
Nicer log message when no blocks have been validated yet
  • Loading branch information
PlasmaPower authored Dec 6, 2023
2 parents 6da8981 + 527cf2d commit 602bdd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions staker/l1_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,9 @@ func (v *L1Validator) generateNodeAction(
}
if !wasmRootValid {
if !stakerConfig.Dangerous.IgnoreRollupWasmModuleRoot {
if len(valInfo.WasmRoots) == 0 {
return nil, false, fmt.Errorf("block validation is still pending")
}
return nil, false, fmt.Errorf(
"wasmroot doesn't match rollup : %v, valid: %v",
v.lastWasmModuleRoot, valInfo.WasmRoots,
Expand Down

0 comments on commit 602bdd0

Please sign in to comment.