Fix Bloom Option after change in waku_protocol (#477)
This commit is contained in:
parent
5e27236c88
commit
fec5c61dd2
|
@ -77,11 +77,14 @@ proc run(config: WakuNodeConf) =
|
||||||
if not config.bootnodeOnly:
|
if not config.bootnodeOnly:
|
||||||
node.addCapability Waku # Always enable Waku protocol
|
node.addCapability Waku # Always enable Waku protocol
|
||||||
var topicInterest: Option[seq[waku_protocol.Topic]]
|
var topicInterest: Option[seq[waku_protocol.Topic]]
|
||||||
|
var bloom: Option[Bloom]
|
||||||
if config.wakuTopicInterest:
|
if config.wakuTopicInterest:
|
||||||
var topics: seq[waku_protocol.Topic]
|
var topics: seq[waku_protocol.Topic]
|
||||||
topicInterest = some(topics)
|
topicInterest = some(topics)
|
||||||
|
else:
|
||||||
|
bloom = some(fullBloom())
|
||||||
let wakuConfig = WakuConfig(powRequirement: config.wakuPow,
|
let wakuConfig = WakuConfig(powRequirement: config.wakuPow,
|
||||||
bloom: fullBloom(),
|
bloom: bloom,
|
||||||
isLightNode: config.lightNode,
|
isLightNode: config.lightNode,
|
||||||
maxMsgSize: waku_protocol.defaultMaxMsgSize,
|
maxMsgSize: waku_protocol.defaultMaxMsgSize,
|
||||||
topics: topicInterest)
|
topics: topicInterest)
|
||||||
|
|
Loading…
Reference in New Issue