From b22fde542efa5e114bf2c91e7cb70cf4ab9eb9fb 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 | 10 ++++++++++ staker/stakerapp.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7600f2..dbeb99d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## Unreleased +### Misc Improvements + +* [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 618e069..bffaaca 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,