24 lines
748 B
Markdown
Raw Normal View History

2024-05-16 19:22:32 -04:00
# Storenode Message Counter
used to compare the number of Status messages across Status nodes to understand the potential discrepancies and odd behaviour of messages being inserted in the past in a given pubsub topic.
# Development
You need to setup a postgres db as such:
1) Create an user with a password
2) Create a db
3) Execute `make build`
Then you can run the program with
```
2024-05-20 10:10:28 -04:00
./build/storemsgcounter --storenode=some_multiaddress --storenode=some_multiaddress --pubsub-topic=some_pubsubtopic --cluster-id=16 --db-url=postgres://user:password@127.0.0.1:5432/telemetry
2024-05-16 19:22:32 -04:00
```
A dockerfile is also available for ease of setup
```
docker build -t wakuorg/storenode-messages:latest .
docker run wakuorg/storenode-messages:latest --help
```