You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Give a better validation/compile error, and add to docs that this is a requirement
Notes
I didn't debug or try to fix this further, but seems like a bug in the P2P DSL.
Additionally, and separately, I noticed that p2p/docs.md says subprotocols should be 3 letters. In devp2p/rlpx.md it just says "short ASCII name" as far as I can tell. I can't tell if this a spec constraint and I'm looking in the wrong place, or what's going on there. Didn't look into it too much. Some validation there might be useful too.
The text was updated successfully, but these errors were encountered:
Problem
If I set
wakuVersion
(orwhisperVersion
) to 0 like this: https://github.com/oskarth/nim-eth/blob/waku-zero/eth/p2p/rlpx_protocols/waku_protocol.nim#L56-L57I get the following crash:
Solution
I can't find in
docs/p2p.md
or https://github.com/ethereum/devp2p/blob/master/rlpx.md that suggest that this should be invalid. Either:Make version 0 valid, or:
Give a better validation/compile error, and add to docs that this is a requirement
Notes
I didn't debug or try to fix this further, but seems like a bug in the P2P DSL.
Additionally, and separately, I noticed that
p2p/docs.md
says subprotocols should be 3 letters. Indevp2p/rlpx.md
it just says "short ASCII name" as far as I can tell. I can't tell if this a spec constraint and I'm looking in the wrong place, or what's going on there. Didn't look into it too much. Some validation there might be useful too.The text was updated successfully, but these errors were encountered: