Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johanmodin/easy-mina-block-producer-docker
A very summarized setup of a Mina protocol block producer node in Docker
https://github.com/johanmodin/easy-mina-block-producer-docker
Last synced: 16 days ago
JSON representation
A very summarized setup of a Mina protocol block producer node in Docker
- Host: GitHub
- URL: https://github.com/johanmodin/easy-mina-block-producer-docker
- Owner: johanmodin
- Created: 2021-03-28T21:40:36.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-28T22:53:39.000Z (almost 4 years ago)
- Last Synced: 2024-10-11T11:21:08.922Z (3 months ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# easy-mina-block-producer-docker
A very summarized setup of a Mina protocol block producer node in DockerNote: This is just to easily get your node up and running. For a setup with any serious amount of tokens, you should consider doing [something more secure](https://minaprotocol.com/docs/advanced/hot-cold-block-production).
### Requirements:
* Docker### Steps (Linux or WSL)
1. Create a directory for your Mina related files:
```sh
mkdir -p ~/mina && cd ~/mina
```2. *If you have no keys created already*, create a keypair in a new directory called `keys` and put some restrictive permissions on them:
```sh
docker run --interactive --tty --rm --volume $(pwd)/keys:/keys minaprotocol/generate-keypair:0.2.12-718eba4 -privkey-path keys/my-wallet
chmod 700 keys
```3. To add your newly created account to the public ledger, which is needed for it to be practically usable, you need to get a transaction of >= 1 Mina to your public address (`keys/my-wallet.pub`). 1 Mina of this first transaction will be burned as a fee for account synchronization.
4. Now you can fire up your block producer node. The probability of you getting a block will be proportional to the balance of your account. Substitute YOUR_PRIVATE_KEY_PASSWORD for your private key password you entered in step 2:
```sh
docker run --name mina_node -d \
-p 8302:8302 \
-p 8303:8303 \
--restart=always \
--mount "type=bind,source=`pwd`/keys,dst=/keys,readonly" \
--mount "type=bind,source=`pwd`/.mina-config,dst=/root/.mina-config" \
-e CODA_PRIVKEY_PASS="YOUR_PRIVATE_KEY_PASSWORD" \
minaprotocol/mina-daemon-baked:1.1.4-a8893ab \
daemon \
--block-producer-key /keys/my-wallet \
--insecure-rest-server \
--file-log-level Debug \
--log-level Info \
--peer-list-url https://storage.googleapis.com/mina-seed-lists/mainnet_seeds.txt
```5. Optionally, if you want to run a SNARK worker (for which the current rates can be seen at [MinaExplorer](https://minaexplorer.com/snarketplace), you can append the following lines to the daemon's command:
```sh
--run-snark-worker \
--snark-worker-fee \
```6. View your node's progress (or failures) by running:
```sh
docker logs -f mina_node
```