Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libotony/synced
Reflect the syncing status of vechain thor node
https://github.com/libotony/synced
Last synced: 13 days ago
JSON representation
Reflect the syncing status of vechain thor node
- Host: GitHub
- URL: https://github.com/libotony/synced
- Owner: libotony
- Created: 2023-02-23T14:22:50.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T20:47:29.000Z (almost 2 years ago)
- Last Synced: 2024-11-07T18:00:31.392Z (2 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Synced
A simple program that reflects the syncing status of [vechain thor node](https://github.com/vechain/thor). Return `HTTP 200` when it's synced `HTTP 503` when it's syncing.
## Get Started
### Build from source
Clone the source:
```shell
git clone https://github.com/libotony/synced.git
cd synced
```Build:
```
make synced
```Start:
```shell
bin/synced --rest http://127.0.0.1:8669
```### Docker
```
docker run -d -p 8000:8000 libotony/synced:latest
```## Run
```
bin/synced -h
NAME:
synced - tells if thor is syncedUSAGE:
synced [global options] command [command options] [arguments...]COMMANDS:
help, h Shows a list of commands or help for one commandGLOBAL OPTIONS:
--thor-rest value, --rest value Thor node API address (default: "http://127.0.0.1:8669")
--port value, -p value Synced API service listening port (default: 8000)
--tolerable-diff value, -t value tolerable left behind block amount (default: 5)
--help, -h
```