From cf89ae86f7b8cb6eeb62b5f12923f0dfe5a5de43 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Mon, 14 Oct 2024 14:57:24 +0200 Subject: [PATCH] run activation check in separate go routine after startup (#57) * run activation check in separate go routine after startup * change log entry --- CHANGELOG.md | 7 ++++++- staker/stakerapp.go | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a52519b..9af22a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,7 +39,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) * [51](https://github.com/babylonlabs-io/btc-staker/pull/51) Use int64 for satoshi amount related values. - + +### Bug fix + +* [#57](https://github.com/babylonlabs-io/btc-staker/pull/57) Use separate go +routine to check for activation after startup + ## v0.7.1 ### Bug fix diff --git a/staker/stakerapp.go b/staker/stakerapp.go index ccdb03b..b3ff426 100644 --- a/staker/stakerapp.go +++ b/staker/stakerapp.go @@ -621,7 +621,7 @@ func (app *StakerApp) checkTransactionsStatus() error { // resume pre-approval flow if alreadyDelegated { app.wg.Add(1) - app.activateVerifiedDelegation( + go app.activateVerifiedDelegation( tx.StakingTx, tx.StakingOutputIndex, txHashCopy,