https://github.com/mandrigin/near-deer
simple utility to compare the node's latest block with the source of truth
https://github.com/mandrigin/near-deer
Last synced: 3 months ago
JSON representation
simple utility to compare the node's latest block with the source of truth
- Host: GitHub
- URL: https://github.com/mandrigin/near-deer
- Owner: mandrigin
- License: mit
- Created: 2021-12-10T20:38:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-21T17:54:16.000Z (about 4 years ago)
- Last Synced: 2025-03-11T12:11:37.095Z (over 1 year ago)
- Language: Go
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Near Deer
A simple utility to compare the node's latest block with the source of truth (checks against https://rpc..near.org/status)
It provides an HTTP endpoint `/health` that returns either 200OK is the node is in sync, and 500 if it is not.
Example usage:
all custom params
```
go run ./cmd/deer -network=testnet -node=http://localhost:3030 -port 30303 -host 0.0.0.0 -threshold 10
```
checking mainnet for a local node with rpc on 3030 and hosting the app on 8080 of localhost, at most 3 blocks behind (all defaults)
```
go run ./cmd/deer
```