fix(@node): set bloom filter to normal

fixes #6221
This commit is contained in:
Anthony Laibe 2022-06-24 10:19:33 +02:00 committed by Anthony Laibe
parent 45448db90a
commit 5d4aba62e3
1 changed files with 5 additions and 2 deletions

View File

@ -153,12 +153,15 @@ proc setBloomLevel*(self: Service, bloomLevel: string): bool =
# default is BLOOM_LEVEL_NORMAL
var bloomFilterMode = false
var fullNode = true
if (bloomLevel == BLOOM_LEVEL_LIGHT):
if bloomLevel == BLOOM_LEVEL_LIGHT:
bloomFilterMode = false
fullNode = false
elif (bloomLevel == BLOOM_LEVEL_FULL):
elif bloomLevel == BLOOM_LEVEL_FULL:
bloomFilterMode = true
fullNode = true
elif bloomLevel == BLOOM_LEVEL_NORMAL:
bloomFilterMode = true
fullNode = false
if(not self.settingsService.saveWakuBloomFilterMode(bloomFilterMode)):
error "error saving waku bloom filter mode ", procName="setBloomLevel"