fix: enable lightclient mode

This commit is contained in:
Richard Ramos 2022-11-09 09:15:25 -04:00 committed by RichΛrd
parent eda2fcabc0
commit bdded864f2
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ proc getWakuV2LightClientEnabled*(self: Controller): bool =
return self.nodeConfigurationService.getV2LightMode()
proc setWakuV2LightClientEnabled*(self: Controller, enabled: bool) =
if (self.nodeConfigurationService.setV2LightMode(enabled)):
if (not self.nodeConfigurationService.setV2LightMode(enabled)):
# in the future we may do a call from here to show a popup about this error
error "an error occurred, we couldn't set WakuV2 light client"
return