nim-eth-p2p/eth_p2p.nimble
Zahary Karadjov eca93509b4 Support for creating JSON dumps of all P2P network traffic
Enable by compiling with -d:p2pdump. A chronicles log file named
p2p_messages.json will be created in the working directory. This
file will be consumed by the upcoming Chronicles Tail GUI (more
details will be provided on the wiki of this repo).

Other changes:

* Removes the use of package_visible_types (only partially so far)
* Simplifies the new Snappy code a little bit
2018-11-10 02:18:00 +02:00

35 lines
898 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",
"snappy",
"package_visible_types",
"serialization",
"json_serialization"
proc runTest(name: string, defs = "", lang = "c") =
exec "nim " & lang & " " & defs & " -d:testing --experimental:ForLoopMacros -r tests/" & name
task test, "Runs the test suite":
runTest "testenode"
runTest "tdiscovery"
runTest "tserver"
runTest "tserver", "-d:useSnappy"
runTest "all_tests"