-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(rln_db_inspector): include in wakunode2 binary (#2292)
- Loading branch information
Showing
7 changed files
with
52 additions
and
57 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# rln-db-inspector | ||
|
||
This document describes how to run and use the `rln-db-inspector` tool. | ||
It is meant to be used to debug and fetch the metadata stored in the RLN tree db. | ||
|
||
## Pre-requisites | ||
|
||
1. An existing RLN tree db | ||
|
||
## Usage | ||
|
||
1. First, we compile the binary | ||
|
||
```bash | ||
make -j16 wakunode2 | ||
``` | ||
This command will fetch the rln static library and link it automatically. | ||
|
||
|
||
2. Define the arguments you wish to use | ||
|
||
```bash | ||
export RLN_TREE_DB_PATH="xxx" | ||
``` | ||
|
||
3. Run the db inspector | ||
|
||
```bash | ||
./build/wakunode2 inspectRlnDb \ | ||
--rln-relay-tree-path:$RLN_TREE_DB_PATH | ||
``` | ||
|
||
What this does is - | ||
a. loads the tree db from the path provided | ||
b. Logs out the metadata, including, number of leaves set, past 5 merkle roots, last synced block number | ||
|
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# rln_db_inspector | ||
|
||
Documentation on running the `rln-db-inspector` can be found [here](../../docs/tutorial/rln-db-inspector.md) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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