Skip to content

Commit f133d7a

Browse files
authored
fix build for dcli and instructions for new path (#638)
`dcli` got moved and the guide is no longer accurate. Update the paths. Also, relative imports were incorret inside `dcli.nim`, and error when using Nim 2.0 compiler.
1 parent 02c8a12 commit f133d7a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

doc/discv5.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ node, by providing its ENR.
8888
# Make sure you have the latest modules, do NOT trust nimble on this.
8989
nimble install
9090
# Build dcli
91-
nim c -d:chronicles_log_level:trace -d:release --threads:on eth/p2p/discoveryv5/dcli
91+
nim c -d:chronicles_log_level:trace -d:release --threads:on ./tools/dcli
9292
# See all options
93-
./eth/p2p/discoveryv5/dcli --help
93+
./tools/dcli --help
9494
# Ping another node
95-
./eth/p2p/discoveryv5/dcli ping enr:<base64 encoding of ENR>
95+
./tools/dcli ping enr:<base64 encoding of ENR>
9696
# Run discovery node
97-
./eth/p2p/discoveryv5/dcli --log-level:debug --bootnode:enr:<base64 encoding of ENR>
97+
./tools/dcli --log-level:debug --bootnode:enr:<base64 encoding of ENR>
9898
```
9999

100100
### Metrics
101101
To run dcli with metrics enabled provide the `metrics` flag:
102102

103103
```sh
104104
# Run dcli with metrics
105-
./eth/p2p/discoveryv5/dcli --metrics --bootnode:enr:<base64 encoding of ENR>
105+
./tools/dcli --metrics --bootnode:enr:<base64 encoding of ENR>
106106
```
107107

108108
You can now see the metrics at http://localhost:8008/metrics. Or use e.g.

tools/dcli.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import
1212
std/[options, strutils, tables, sets],
1313
confutils, confutils/std/net, chronicles, chronicles/topics_registry,
1414
chronos, metrics, metrics/chronos_httpserver, stew/byteutils, stew/bitops2,
15-
./eth/keys, ./eth/net/nat,
16-
./eth/p2p/discoveryv5/[enr, node],
17-
./eth/p2p/discoveryv5/protocol as discv5_protocol
15+
../eth/keys, ../eth/net/nat,
16+
../eth/p2p/discoveryv5/[enr, node],
17+
../eth/p2p/discoveryv5/protocol as discv5_protocol
1818

1919
type
2020
DiscoveryCmd* = enum

0 commit comments

Comments
 (0)