-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00cf72e
commit 445c7b3
Showing
2 changed files
with
27 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,34 @@ | ||
## waku canary tool | ||
|
||
TODO: Attempt to dial a node at a given listening address | ||
Attempts to dial a peer and asserts it supports a given set of protocols. | ||
|
||
```console | ||
The following options are available: | ||
|
||
--address Multiaddress of the peer node to attemp to dial. | ||
--timeout Timeout to consider that the connection failed [=chronos.seconds(10)]. | ||
--protocol Protocol required to be supported: store,static,lightpush,filter (can be used | ||
multiple times). | ||
``` | ||
|
||
The tool can be built as: | ||
|
||
```console | ||
$ make wakucanary | ||
``` | ||
|
||
TODO: | ||
And used as follows. A reachable node that supports both `store` and `filter` protocols. | ||
|
||
|
||
```console | ||
$ ./build/wakucanary --address=/ip4/8.210.222.231/tcp/30303/p2p/16Uiu2HAm4v86W3bmT1BiH6oSPzcsSr24iDQpSN5Qa992BCjjwgrD --protocol=store --protocol=filter | ||
$ echo $? | ||
0 | ||
``` | ||
|
||
A node that can't be reached. | ||
```console | ||
./build/wakucanary --staticnode:<multiaddr_to_test> | ||
./build/wakucanary --storenode:<multiaddr_to_test> | ||
$ ./build/wakucanary --address=/ip4/8.210.222.231/tcp/1000/p2p/16Uiu2HAm4v86W3bmT1BiH6oSPzcsSr24iDQpSN5Qa992BCjjwgrD --protocol=store --protocol=filter | ||
$ echo $? | ||
1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters