add some comments

This commit is contained in:
fryorcraken 2025-04-07 15:45:52 +10:00
parent 98114bde20
commit 5bd5b72706
2 changed files with 8 additions and 3 deletions

View File

@ -32,6 +32,10 @@ type RlnRelayConf* = ref object
userMessageLimit*: uint64
ethClientAddress*: EthRpcUrl
## `WakuConf` is a valid configuration for a Waku node
## All information needed by a waku node should be contained
## In this object. A convenient `validate` method enables doing
## sanity checks beyond type enforcement.
type WakuConf* = ref object
nodeKey*: PrivateKey

View File

@ -158,9 +158,10 @@ proc build(builder: Discv5ConfBuilder): Result[Option[Discv5Conf], string] =
return ok(some(Discv5Conf(bootstrapNodes: bootstrapNodes, udpPort: udpPort)))
#########################
## Waku Config Builder ##
#########################
## `WakuConfBuilder` is a convenient tool to accumulate
## Config parameters to build a `WakuConfig`.
## It provides some type conversion, as well as applying
## defaults in an agnostic manner (for any usage of Waku node)
type WakuConfBuilder* = ref object
nodeKey*: Option[PrivateKey]