nim-eth-p2p/eth_p2p.nimble
Zahary Karadjov 7828ef0481 Initial implementation of the LES protocol and its flow control.
This also restores the old module structure of having separate
`peer_pool` and `rlpx` modules. This is made possible by the
new Nim package `package_visible_types` (please refer to its
README for an explanation).

Also introduces more error handling in the low-level RLPx routines.
All detected errors will result in immediate disconnection of the
corresponding peer, which may be detected in the protocols though
the `onPeerDisconnected` event handler.
2018-10-16 02:52:11 +03:00

32 lines
763 B
Nim

mode = ScriptMode.Verbose
packageName = "eth_p2p"
version = "1.0.0"
author = "Status Research & Development GmbH"
description = "Ethereum P2P library"
license = "MIT"
skipDirs = @["tests", "Nim"]
requires "nim > 0.18.0",
"rlp >= 1.0.1",
"nimcrypto",
"secp256k1 >= 0.1.0",
"eth_keys",
"ranges",
"stint",
"byteutils",
"chronicles",
"asyncdispatch2",
"eth_common",
"package_visible_types"
proc runTest(name: string, lang = "c") =
exec "nim " & lang & " -d:testing --experimental:ForLoopMacros -r tests/" & name
task test, "Runs the test suite":
runTest "testenode"
runTest "tdiscovery"
runTest "tserver"
runTest "all_tests"