rpc-nodes/bor/bor.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

2022-03-03 08:53:57 +01:00
# Bor node
## Requirements for Polygon network
* memory: 64Gb (minimum)
2022-03-03 10:33:37 +01:00
* disk: 3Tb SSD (require periodically prune state) - you can use less if you prune more often, but you still need at least 2TB.
2022-03-03 08:53:57 +01:00
## Installation
Set in the `.env` file:
* `DOMAIN=` - the domain name to be used in traefik;
* `HEIMDALL_ETH_RPC_URL=` - your Ethereum RPC.
You can also set a list of allowed IP addresses there and addresses to treat as local. Rename `example.env` to `.env`:
```
mv example.env .env
```
2022-03-12 07:23:27 +01:00
Start node (If you do not use traefik, specify the compose file with the `-f docker-compose.no-proxy.yml`):
2022-03-03 08:53:57 +01:00
```bash
docker-compose build
docker-compose up -d rabbitmq heimdalld heimdallr bor
```
## Upgrade
2022-03-12 07:23:27 +01:00
Periodically check for new versions. if there is a release, then you need to update the tag (`BOR_TAG`) in the environment file.
2022-03-03 08:53:57 +01:00
```bash
docker-compose build
docker-compose pull
docker-compose up -d rabbitmq heimdalld heimdallr bor
```
## Pruning
Use it if the size is approaching 1.7Tb. At least 150 GB must be free for successful pruning.
```bash
docker-compose stop bor
docker-compose up prune-bor
docker-compose rm prune-bor
docker-compose up -d bor
```