mirror of https://github.com/status-im/nim-eth.git
Small clarification to protocol name length doc
As per conversation in PR
This commit is contained in:
parent
843f9c3916
commit
f3aad8f925
|
@ -583,7 +583,8 @@ proc p2pProtocolBackendImpl*(protocol: P2PProtocol): Backend =
|
|||
isSubprotocol = protocol.version > 0
|
||||
|
||||
if protocol.rlpxName.len == 0: protocol.rlpxName = protocol.name
|
||||
# By convention, all Ethereum protocol names must be abbreviated to 3 letters
|
||||
# By convention, all Ethereum protocol names were abbreviated to 3 letters,
|
||||
# but this informal spec has since been relaxed (e.g. `hive`).
|
||||
doAssert protocol.rlpxName.len > 2
|
||||
|
||||
new result
|
||||
|
|
Loading…
Reference in New Issue