Skip to content

Commit

Permalink
batch 4 of fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Nov 13, 2024
1 parent 9a089a5 commit 806c665
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion babylonclient/babyloncontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@ func (bc *BabylonController) QueryBtcLightClientTip() (*btclctypes.BTCHeaderInfo
}

func (bc *BabylonController) ActivateDelegation(
_ context.Context,
stakingTxHash chainhash.Hash,
proof *btcctypes.BTCSpvProof) (*pv.RelayerTxResponse, error) {
msg := &btcstypes.MsgAddBTCDelegationInclusionProof{
Expand Down
1 change: 0 additions & 1 deletion itest/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1313,7 +1313,6 @@ func TestSendingStakingTransactionWithPreApproval(t *testing.T) {
tm.mineNEmptyBlocks(t, params.ConfirmationTimeBlocks, true)

_, err = tm.BabylonClient.ActivateDelegation(
context.Background(),
*txHash,
proof,
)
Expand Down
7 changes: 2 additions & 5 deletions staker/stakerapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ func (app *App) Start() error {
// although staker without node is not very useful

app.logger.Infof("Connecting to node backend: %s", app.config.BtcNodeBackendConfig.Nodetype)
err := app.notifier.Start()
if err != nil {
if err := app.notifier.Start(); err != nil {
startErr = err
return
}
Expand All @@ -276,9 +275,7 @@ func (app *App) Start() error {
return
}

err = app.feeEstimator.Start()

if err != nil {
if err = app.feeEstimator.Start(); err != nil {
startErr = err
return
}
Expand Down
4 changes: 2 additions & 2 deletions stakerservice/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,8 @@ func (s *StakerService) RunUntilShutdown(ctx context.Context) error {
return fmt.Errorf(format, args...)
}

err := s.staker.Start()
if err != nil {
//nolint:contextcheck
if err := s.staker.Start(); err != nil {
return mkErr("error starting staker: %w", err)
}

Expand Down

0 comments on commit 806c665

Please sign in to comment.