Skip to content

Commit

Permalink
start fp after register
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Dec 23, 2024
1 parent 41ccf67 commit 7669020
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions finality-provider/service/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,14 @@ func (app *FinalityProviderApp) CreateFinalityProvider(
return nil, err
}

if err = app.startFinalityProviderInstance(storedFp.GetBIP340BTCPK(), ""); err != nil {
app.logger.Error(
"failed to start fp instance",
zap.String("eots_pk", pkHex),
zap.Error(err),
)
}

return &CreateFinalityProviderResult{
FpInfo: storedFp.ToFinalityProviderInfo(),
TxHash: successResponse.txHash,
Expand Down

0 comments on commit 7669020

Please sign in to comment.