Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Panic instead of logging error of failing header validation
  • Loading branch information
Manav-Aggarwal committed Apr 30, 2025
commit 87fa35e69d404513f3352d911a0e06ce50104ec6
3 changes: 1 addition & 2 deletions block/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,8 +581,7 @@ func (m *Manager) publishBlockInternal(ctx context.Context) error {
header.Signature = signature

if err := header.ValidateBasic(); err != nil {
// TODO(tzdybal): I think this is could be even a panic, because if this happens, header is FUBAR
m.logger.Error("header validation error", "error", err)
panic(fmt.Errorf("critical: newly produced header failed validation: %w", err))
}

// append metadata to Data before validating and saving
Expand Down