Fix import syntax error in `les_protocol.nim` added by PR #344

`les_protocol.nim` failed to build, due to very silly Nim bugs
nim-lang/Nim#8792 and nim-lang/Nim#17102.

    import
      ../../[rlp, keys], ../../common/eth_types,
      ../[rlpx, kademlia, blockchain_utils], ../private/p2p_types,

The silly part is `../` has to be quoted if it's before a group of files, but
not before a single file.  Most places in PR #344 / 7624153 use the workaround
`".."/` but it was missed in `les_protocol.nim`:

    nimbus-eth1/vendor/nim-eth/eth/p2p/rlpx_protocols/les_protocol.nim(14, 3)
        Error: cannot open file: ../../[rlp,keys]

Signed-off-by: Jamie Lokier <jamie@shareable.org>
This commit is contained in:
Jamie Lokier 2021-04-07 17:21:18 +01:00
parent a48687d277
commit 0f3bb61678
No known key found for this signature in database
GPG Key ID: CBC25C68435C30A2
1 changed files with 2 additions and 2 deletions

View File

@ -11,8 +11,8 @@
import
std/[times, tables, options, sets, hashes, strutils],
stew/shims/macros, chronicles, chronos, nimcrypto/[keccak, hash],
../../[rlp, keys], ../../common/eth_types,
../[rlpx, kademlia, blockchain_utils], ../private/p2p_types,
".."/../[rlp, keys], ../../common/eth_types,
".."/[rlpx, kademlia, blockchain_utils], ../private/p2p_types,
./les/private/les_types, ./les/flow_control
export