mirror of https://github.com/status-im/nim-eth.git
Allow longer rlpx protocol names (for compatability with swarm)
This commit is contained in:
parent
9fb79d0d88
commit
5dc8117a07
|
@ -581,7 +581,7 @@ proc p2pProtocolBackendImpl*(protocol: P2PProtocol): Backend =
|
||||||
|
|
||||||
if protocol.rlpxName.len == 0: protocol.rlpxName = protocol.name
|
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 must be abbreviated to 3 letters
|
||||||
doAssert protocol.rlpxName.len == 3
|
doAssert protocol.rlpxName.len > 2
|
||||||
|
|
||||||
new result
|
new result
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue