mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-10 18:03:11 +00:00
add some comments
This commit is contained in:
parent
98114bde20
commit
5bd5b72706
@ -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
|
||||
|
||||
|
||||
@ -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]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user