From 613230225566902c840950fbd91cf7be605bd674 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Mon, 14 Oct 2024 14:34:30 +0200 Subject: [PATCH 1/2] run activation check in separate go routine after startup --- staker/stakerapp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, From 4940c14379cfe35d9e50ad89626b8c03eae439ad Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Mon, 14 Oct 2024 14:43:15 +0200 Subject: [PATCH 2/2] change log entry --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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