Skip to content

Commit

Permalink
fix: reporter ensure bootstrap happens on error (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 authored Jan 28, 2025
1 parent 6ed467d commit 84b2d3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

* [#194](https://github.com/babylonlabs-io/vigilante/pull/194) fix: reduce locks
* [#195](https://github.com/babylonlabs-io/vigilante/pull/195) chore: bump bbn to rc4
* [#196](https://github.com/babylonlabs-io/vigilante/pull/196) fix: reporter ensure bootstrap happens on error

## v0.19.7

Expand Down
3 changes: 2 additions & 1 deletion reporter/block_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,11 @@ func (r *Reporter) processNewBlock(ib *types.IndexedBlock) error {
}

signer := r.babylonClient.MustGetAddr()

// Process headers
if _, err := r.ProcessHeaders(signer, headersToProcess); err != nil {
r.logger.Warnf("Failed to submit headers: %v", err)

return fmt.Errorf("failed to submit headers: %w", err)
}

// Process checkpoints
Expand Down

0 comments on commit 84b2d3c

Please sign in to comment.