nim-eth/eth/p2p
Jamie Lokier 9a28ed7ef5 RLPx: Protocol names have never been limited to 3 characters
Don't treat 3 characters as special in `cmp`.  `cmp` for `ProtocolInfo` was
wrong because it ignored all characters after the first 3.

In the wild we have seen protocol names longer than 3 characters.  `snap`,
`hive`, `istanbul`, `bzzeth`, `bzz-stream`, `bzz-retrieve`, `dbix`, `opera`,
`pchain`, `pchain_child_0`, `sero`, `smilobft`, `spock`.

There was never a 3 character limit in the [specification]
(https://github.com/ethereum/devp2p/blob/master/rlpx.md).

It always said "short ASCII name", until recently on 2021-02-25 it was changed
to an 8 characters limit.

Also `pi.nameStr` can be removed.  Nothing uses it, and it has the same actual
effect as just copying the string `pi.name`.

Signed-off-by: Jamie Lokier <jamie@shareable.org>
2021-08-10 14:08:35 +03:00
..
discoveryv5 Let talkreq directly return the seq[byte] for easier API (#384) 2021-07-30 16:04:14 +02:00
private Add/update bunch of license headers 2021-05-11 09:37:33 +02:00
rlpx_protocols Remove `{.rlpInline.}` which was never really implemented 2021-08-10 14:08:35 +03:00
auth.nim Push raises Defect to rlpx and accompanying changes (#373) 2021-07-14 10:35:35 +02:00
blockchain_sync.nim Remove inline pragmas 2021-05-11 09:59:58 +02:00
blockchain_utils.nim Fix raw Exceptions in hexary caused by forward declarations (#349) 2021-05-11 17:32:47 +02:00
bootnodes.nim add goerli bootnodes 2020-06-19 12:15:05 +03:00
discovery.nim Move push raises to top and add/update license info where needed 2021-04-28 16:20:05 +02:00
ecies.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
enode.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
kademlia.nim Move push raises to top and add/update license info where needed 2021-04-28 16:20:05 +02:00
mock_peers.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
p2p_backends_helpers.nim Adjust for chronosStrictException usage in rest of eth/p2p 2021-05-06 17:20:54 +02:00
p2p_protocol_dsl.nim Add top level push raises Defect to p2p code (#374) 2021-07-16 21:44:30 +02:00
p2p_tracing.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
p2p_tracing_ctail_plugin.nim Moved eth-p2p to eth 2019-02-05 17:40:29 +02:00
peer_pool.nim Add top level push raises Defect to p2p code (#374) 2021-07-16 21:44:30 +02:00
rlpx.nim RLPx: Protocol names have never been limited to 3 characters 2021-08-10 14:08:35 +03:00
rlpxcrypt.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
sync.nim Add build_dcli target and add it to CI (#344) 2021-04-06 13:33:24 +02:00
whispernodes.nim Add Status test nodes (#216) 2020-04-08 15:21:48 +02:00