commit dde239f41434369d755a6ab97c8fecbbfd662cd6
parent bdc32365f2f47ba423ae930e5d827157b04690e5
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Fri, 31 Jan 2025 18:42:31 -0800
no need to check wallet's balance if the app is not initialized
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/pkg/actions/actions.go b/pkg/actions/actions.go
@@ -244,6 +244,9 @@ func (f LogFormatter) Format(e *logrus.Entry) ([]byte, error) {
// When the application starts, check that the wallet is balanced
func xmrCheck(db *database.DkfDB) {
+ if config.IsFirstUse.IsTrue() {
+ return
+ }
logrus.Info("start xmr check")
walletClient := config.Xmr()
poker.Refund(db)