Crates.io | listener-radio |
lib.rs | listener-radio |
version | 0.0.4 |
source | src |
created_at | 2023-07-26 02:01:43.243779 |
updated_at | 2024-03-08 12:48:45.707421 |
description | Listener Radio monitors on a Graphcast network and stores messages |
homepage | |
repository | https://github.com/graphops/listener-radio |
max_upload_size | |
id | 926151 |
size | 298,962 |
This radio monitors Graphcast network through subscribing to gossip network topics. The radio will not send messages to the network, but it will record the messages and generate basic metrics for network monitoring.
DATABASE_URL
in .env
cargo run
from source code or build docker imageGraphcast network is a complex system with numerous nodes and connections, and monitoring it is crucial for maintaining its performance, identifying potential issues, and ensuring its robustness and reliability.
Basic functions
Future functions
The tool comes with auto-migration for the database, but requires the user to create a valid DB connection. Make sure the database url passed in is valid.
Incoming message type constraints:
Example message table
id | message |
---|---|
1 | {"nonce": 1686182179, "network": "mainnet", "payload": {"content": "0x3f...", "identifier": "QmVhiE4nax9i86UBnBmQCYDzvjWuwHShYh7aspGPQhU5Sj"}, "signature": "dff1...", "block_hash": "276e...", "identifier": "QmVhiE4nax9i86UBnBmQCYDzvjWuwHShYh7aspGPQhU5Sj", "block_number": 17431860} |
2 | {"nonce": 1686182183, "network": "goerli", "payload": {"content": "0xc0...", "identifier": "QmacQnSgia4iDPWHpeY6aWxesRFdb8o5DKZUx96zZqEWrB"}, "signature": "dbd2...", "block_hash": "0198...", "identifier": "QmacQnSgia4iDPWHpeY6aWxesRFdb8o5DKZUx96zZqEWrB", "block_number": 9140860} |
... | ... |
To run unit tests for the Radio. We recommend using nextest as your test runner. Once you have it installed you can run the tests using the following commands:
cargo nextest run
We welcome and appreciate your contributions! Please see the Contributor Guide, Code Of Conduct and Security Notes for this repository.