From 430f2501d467372a8926f0f795d9f97567f01621 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Tue, 18 Jun 2024 15:19:10 +0100 Subject: [PATCH] fix: bandwidth usage (#15231) * feat: added bandwidthStatsEnabled login flag * update status-go --- src/app_service/service/accounts/dto/login_request.nim | 4 +++- src/app_service/service/accounts/service.nim | 1 + vendor/status-go | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/app_service/service/accounts/dto/login_request.nim b/src/app_service/service/accounts/dto/login_request.nim index eb8cb20901..a7978f1be5 100644 --- a/src/app_service/service/accounts/dto/login_request.nim +++ b/src/app_service/service/accounts/dto/login_request.nim @@ -8,6 +8,7 @@ type kdfIterations*: int runtimeLogLevel*: string wakuV2Nameserver*: string + bandwidthStatsEnabled*: bool walletSecretsConfig*: WalletSecretsConfig proc toJson*(self: LoginAccountRequest): JsonNode = @@ -16,7 +17,8 @@ proc toJson*(self: LoginAccountRequest): JsonNode = "keyUid": self.keyUID, "kdfIterations": self.kdfIterations, "runtimeLogLevel": self.runtimeLogLevel, - "wakuV2Nameserver": self.wakuV2Nameserver + "wakuV2Nameserver": self.wakuV2Nameserver, + "bandwidthStatsEnabled": self.bandwidthStatsEnabled, } for key, value in self.walletSecretsConfig.toJson().pairs(): result[key] = value diff --git a/src/app_service/service/accounts/service.nim b/src/app_service/service/accounts/service.nim index 5036b62d76..5e04f84aef 100644 --- a/src/app_service/service/accounts/service.nim +++ b/src/app_service/service/accounts/service.nim @@ -663,6 +663,7 @@ QtObject: kdfIterations: account.kdfIterations, passwordHash: passwordHash, walletSecretsConfig: self.buildWalletSecrets(), + bandwidthStatsEnabled: true, ) if main_constants.runtimeLogLevelSet(): diff --git a/vendor/status-go b/vendor/status-go index 3bb5c9c815..10cf286208 160000 --- a/vendor/status-go +++ b/vendor/status-go @@ -1 +1 @@ -Subproject commit 3bb5c9c815382f978ed614ba2a0a8cec21d1678f +Subproject commit 10cf2862086630625434f8b2239227dee7440858