feat_: added Login request BandwidthStatsEnabled flag (#5369)

This commit is contained in:
Igor Sirotin 2024-06-18 14:36:53 +01:00 committed by GitHub
parent 83955bbc8a
commit 10cf286208
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -644,6 +644,8 @@ func (b *GethStatusBackend) loginAccount(request *requests.Login) error {
b.config.WakuV2Config.Nameserver = request.WakuV2Nameserver
}
b.config.ShhextConfig.BandwidthStatsEnabled = request.BandwidthStatsEnabled
b.overrideNetworks(b.config, request)
err = b.setupLogSettings()

View File

@ -8,9 +8,10 @@ type Login struct {
Password string `json:"password"`
KeyUID string `json:"keyUid"`
KdfIterations int `json:"kdfIterations"`
RuntimeLogLevel string `json:"runtimeLogLevel"`
WakuV2Nameserver string `json:"wakuV2Nameserver"`
KdfIterations int `json:"kdfIterations"`
RuntimeLogLevel string `json:"runtimeLogLevel"`
WakuV2Nameserver string `json:"wakuV2Nameserver"`
BandwidthStatsEnabled bool `json:"bandwidthStatsEnabled"`
WalletSecretsConfig
}