logos-messaging-nim/examples/lightpush_mix/lightpush_publisher_mix_config.nim
Prem Chaitanya Prathi 0740812816
feat: mix poc (#3284)
* feat: poc to integrate mix into waku and use lightpush to demonstrate
2025-09-11 20:40:01 +05:30

29 lines
838 B
Nim

import confutils/defs
type LightPushMixConf* = object
destPeerAddr* {.desc: "Destination peer address with peerId.", name: "dp-addr".}:
string
pxAddr* {.desc: "Peer exchange address with peerId.", name: "px-addr".}: string
port* {.desc: "Port to listen on.", defaultValue: 50000, name: "port".}: int
numMsgs* {.desc: "Number of messages to send.", defaultValue: 1, name: "num-msgs".}:
int
msgIntervalMilliseconds* {.
desc: "Interval between messages in milliseconds.",
defaultValue: 1000,
name: "msg-interval"
.}: int
minMixPoolSize* {.
desc: "Number of mix nodes to be discovered before sending lightpush messages.",
defaultValue: 3,
name: "min-mix-pool-size"
.}: int
mixDisabled* {.
desc: "Do not use mix for publishing.", defaultValue: false, name: "without-mix"
.}: bool