Skip to content

Commit ef46417

Browse files
authored
eth/catalyst: change warning to error for 'too many bad block attempts' (#31940)
This situation was failing quietly for me recently when I had a partial data corruption issue. Changing the log level to Error would increase visibility for me.
1 parent 91900e7 commit ef46417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/catalyst/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ func (api *ConsensusAPI) checkInvalidAncestor(check common.Hash, head common.Has
742742

743743
api.invalidBlocksHits[badHash]++
744744
if api.invalidBlocksHits[badHash] >= invalidBlockHitEviction {
745-
log.Warn("Too many bad block import attempt, trying", "number", invalid.Number, "hash", badHash)
745+
log.Error("Too many bad block import attempt, trying", "number", invalid.Number, "hash", badHash)
746746
delete(api.invalidBlocksHits, badHash)
747747

748748
for descendant, badHeader := range api.invalidTipsets {

0 commit comments

Comments
 (0)