mirror of
https://github.com/tornadocash/rpc-nodes
synced 2024-02-02 14:53:56 +01:00
37 lines
915 B
Markdown
37 lines
915 B
Markdown
# BSC node
|
|
|
|
## Requirements for Ethereum network
|
|
* memory: 48Gb
|
|
* disk: 3Tb SSD (require periodically prune state)
|
|
|
|
## Installation
|
|
Set in the `.env` file:
|
|
* `DOMAIN=` - the domain name to be used in traefik;
|
|
* `BSC_TAG=` - Use latest stable version from https://github.com/bnb-chain/bsc/tags.
|
|
|
|
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
|
|
```
|
|
|
|
Start node:
|
|
```bash
|
|
docker-compose build
|
|
docker-compose up -d bsc
|
|
```
|
|
|
|
## Upgrade
|
|
Periodically check for new versions. if there is a release, then you need to update the tag in the environment file.
|
|
```bash
|
|
docker-compose build
|
|
docker-compose up -d bsc
|
|
```
|
|
|
|
## Pruning
|
|
Use it if the size is approaching 800 GB. At least 150 GB must be free for successful pruning.
|
|
```bash
|
|
docker-compose down
|
|
docker-compose up bsc-pruning
|
|
docker-compose down
|
|
docker-compose up -d bsc
|
|
``` |