fix_: add missing message verification flag when creating an account (#5570)

This commit is contained in:
richΛrd 2024-07-26 15:19:19 -04:00 committed by GitHub
parent 72baaebe39
commit 3792d37df4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -141,6 +141,7 @@ func SetFleet(fleet string, nodeConfig *params.NodeConfig) error {
// mobile may need override following options
LightClient: specifiedWakuV2Config.LightClient,
EnableStoreConfirmationForMessagesSent: specifiedWakuV2Config.EnableStoreConfirmationForMessagesSent,
EnableMissingMessageVerification: specifiedWakuV2Config.EnableMissingMessageVerification,
Nameserver: specifiedWakuV2Config.Nameserver,
}
@ -303,6 +304,10 @@ func defaultNodeConfig(installationID string, request *requests.CreateAccount, o
nodeConfig.WakuV2Config.LightClient = true
}
if request.WakuV2EnableMissingMessageVerification {
nodeConfig.WakuV2Config.EnableMissingMessageVerification = true
}
if request.WakuV2EnableStoreConfirmationForMessagesSent {
nodeConfig.WakuV2Config.EnableStoreConfirmationForMessagesSent = true
}

View File

@ -52,6 +52,7 @@ type CreateAccount struct {
WakuV2Nameserver *string `json:"wakuV2Nameserver"`
WakuV2LightClient bool `json:"wakuV2LightClient"`
WakuV2EnableStoreConfirmationForMessagesSent bool `json:"wakuV2EnableStoreConfirmationForMessagesSent"`
WakuV2EnableMissingMessageVerification bool `json:"wakuV2EnableMissingMessageVerification"`
WakuV2Fleet string `json:"wakuV2Fleet"`
LogLevel *string `json:"logLevel"`