mirror of https://github.com/waku-org/nwaku.git
11 lines
342 B
Nim
11 lines
342 B
Nim
|
|
import
|
|
../../common/utils/parse_size_units
|
|
|
|
const
|
|
## https://rfc.vac.dev/spec/64/#message-size
|
|
DefaultMaxWakuMessageSizeStr* = "150KiB" # Remember that 1 MiB is the PubSub default
|
|
MaxWakuMessageSize* = parseCorrectMsgSize(DefaultMaxWakuMessageSizeStr)
|
|
|
|
DefaultSafetyBufferProtocolOverhead* = 64 * 1024 # overhead measured in bytes
|