-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: relay msg size #963
feat: relay msg size #963
Conversation
Jenkins BuildsClick to see older builds (8)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should get this setting down to
go-waku/waku/v2/protocol/relay/waku_relay.go
Line 292 in 0218169
if len(out) > pubsub.DefaultMaxMessageSize { |
I just saw the PR in waku-org/nwaku#2298 , but there bytes instead of kilobytes are being used. @Ivansete-status @chaitanyaprem , do discuss which unit to use :D i'm okay with any tbh, but let's make nwaku and go-waku use the same! EDIT: ah! also the flag is different: max-num-bytes-msg-size |
Good point! |
Considering this comment and a DM chat I had with @richard-ramos , we will only accept the following units: ( cc @fryorcraken ) |
I too agree with this. This would avoid chance of misconfiguring as there are many ways to configure. |
In check |
Alright, found a util in golang that supports all kinds of options like Kib, KB, Mib, MB, B etc. |
@Ivansete-status , maybe we should rename the flag to max-msg-size since we support various sizes now. |
@richard-ramos do note that when this version of go-waku is updated in status-go the argument |
Good point! I'll rename it accordingly in |
@chaitanyaprem - Maybe I'm wrong but, should it be |
Thanks for highlighting it, i have updated the comment now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: richΛrd <info@richardramos.me>
84d91e5
to
ddddd03
Compare
Description
Make relay maxMsgSize configurable and set default as per The waku network rfc https://rfc.vac.dev/spec/64/#message-size.
Follows waku-org/nwaku#2298