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.WakuV2Config.Nameserver = request.WakuV2Nameserver
} }
b.config.ShhextConfig.BandwidthStatsEnabled = request.BandwidthStatsEnabled
b.overrideNetworks(b.config, request) b.overrideNetworks(b.config, request)
err = b.setupLogSettings() err = b.setupLogSettings()

View File

@ -11,6 +11,7 @@ type Login struct {
KdfIterations int `json:"kdfIterations"` KdfIterations int `json:"kdfIterations"`
RuntimeLogLevel string `json:"runtimeLogLevel"` RuntimeLogLevel string `json:"runtimeLogLevel"`
WakuV2Nameserver string `json:"wakuV2Nameserver"` WakuV2Nameserver string `json:"wakuV2Nameserver"`
BandwidthStatsEnabled bool `json:"bandwidthStatsEnabled"`
WalletSecretsConfig WalletSecretsConfig
} }