Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshvanahalli committed Dec 6, 2023
1 parent 5b03014 commit 677f708
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion staker/staker.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func (s *Staker) Start(ctxIn context.Context) {
backoff = time.Minute
log.Error("error acting as staker", "err", err)
} else {
log.Warn("block validation is still pending")
log.Warn("error acting as staker", "err", err)
}
return backoff
})
Expand Down

0 comments on commit 677f708

Please sign in to comment.