Skip to content

Commit

Permalink
p2psim: Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sonhv0212 committed Dec 26, 2024
1 parent c9753ba commit c260177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/simulations/examples/discovery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ func (s *SimAdapter) NewNode(cfg *NodeConfig) (Node, error) {

## Manual run

Run the p2psim server by `go run main.go`, and in another terminal, we can use `p2psim` cli to start, manage new nodes in the simulation network. Example:
Run the p2psim server by `go run main.go` in `p2p/simulations/examples/discovery`, and in another terminal, we can use `p2psim` cli to start, manage new nodes in the simulation network. Example:

``` bash
$ cd p2p/simulations/examples/discovery
$ go run main.go
INFO [12-24|14:46:39.132] starting simulation server port=8888
```
Expand Down

0 comments on commit c260177

Please sign in to comment.