fix: bandwidth usage (#15231)

* feat: added bandwidthStatsEnabled login flag

* update status-go
This commit is contained in:
Igor Sirotin 2024-06-18 15:19:10 +01:00 committed by GitHub
parent 1c5aad7733
commit 430f2501d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -663,6 +663,7 @@ QtObject:
kdfIterations: account.kdfIterations,
passwordHash: passwordHash,
walletSecretsConfig: self.buildWalletSecrets(),
bandwidthStatsEnabled: true,
)
if main_constants.runtimeLogLevelSet():

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 3bb5c9c815382f978ed614ba2a0a8cec21d1678f
Subproject commit 10cf2862086630625434f8b2239227dee7440858