Skip to content

Commit

Permalink
chore: Remove fp manager (#182)
Browse files Browse the repository at this point in the history
Closes #112. This PR also did some cleanup:
- move all the loops to `event_loops.go`
- remove legacy code
  • Loading branch information
gitferry authored Dec 4, 2024
1 parent 6565301 commit 807263a
Show file tree
Hide file tree
Showing 14 changed files with 651 additions and 847 deletions.
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/)

* [#175](https://github.com/babylonlabs-io/finality-provider/pull/175) adds: `eotsd version` command
* [#179](https://github.com/babylonlabs-io/finality-provider/pull/179) Change `btc_pk` text to `eots_pk` in CLI
* [#182](https://github.com/babylonlabs-io/finality-provider/pull/182) Remove fp manager

### Bug Fixes

Expand Down
8 changes: 1 addition & 7 deletions finality-provider/cmd/fpd/daemon/start.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package daemon

import (
"errors"
"fmt"
"net"
"path/filepath"
Expand Down Expand Up @@ -138,12 +137,7 @@ func startApp(
return fmt.Errorf("invalid finality provider public key %s: %w", fpPkStr, err)
}

if err := fpApp.StartHandlingFinalityProvider(fpPk, passphrase); err != nil {
if errors.Is(err, service.ErrFinalityProviderJailed) {
fpApp.Logger().Error("failed to start finality provider", zap.Error(err))
// do not return error as we still want the service to start
return nil
}
if err := fpApp.StartFinalityProvider(fpPk, passphrase); err != nil {
return fmt.Errorf("failed to start the finality-provider instance %s: %w", fpPkStr, err)
}

Expand Down
Loading

0 comments on commit 807263a

Please sign in to comment.