mirror of https://github.com/status-im/nim-eth.git
9a28ed7ef5
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> |
||
---|---|---|
.. | ||
common | ||
db | ||
keyfile | ||
net | ||
p2p | ||
rlp | ||
ssz | ||
trie | ||
async_utils.nim | ||
bloom.nim | ||
common.nim | ||
keyfile.nim | ||
keys.nim | ||
p2p.nim | ||
rlp.nim | ||
trie.nim |