modulepackage
3.2.0+incompatible
Repository: https://github.com/validatorcenter/prs3r.git
Documentation: pkg.go.dev
# README
PRS3R - Parser the Minter in DB:ClickHouse/Redis
About
Actual for Minter Blockchain version 1.0.x.
Installing in Ubuntu
Yandex ClickHouse
To install official packages add the Yandex repository in /etc/apt/sources.list
or in a separate /etc/apt/sources.list.d/clickhouse.list
file:
deb http://repo.yandex.ru/clickhouse/deb/stable/ main/
If you want to use the most recent version, replace stable
with testing
(this is not recommended for production environments).
Then run these commands to actually install packages:
sudo apt-get install dirmngr # optional
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4 # optional
sudo apt-get update
sudo apt-get install clickhouse-client clickhouse-server
Instructions from the official site.
Redis
sudo apt-get install redis-server
Commands
Creating and/or cleaning tables in databases:
prs3rd del
Downloading preliminary data (if needed) from the start.json
file:
prs3rd json
Running the daemon:
prs3rd
Key benefits from PostgreSQL:
- Size of base on disk
- Request execution speed
Control
curl localhost:8018/status
- parser statuscurl localhost:8018/start
- starting parsercurl localhost:8018/stop
- stoping parsercurl localhost:8018/exit
- exit
# Packages
No description provided by the author
# Functions
Yandex.ClickHouse (SQL).
Redis.
получение "текущей" стоимости монеты: покупки, продажи (TODO: относительно другой монеты).
получение сколько всего блоков в блокчейне.
# Structs
Структура расширяющая функционал структуры из SDK - BlockValidatorsResponse.
Структура для файла "start.json".
Доп.информация о ноде (для визуализации).
Структура расширяющая функционал структуры из SDK - ms.TransResponse.