block-producer

by O(1) Labs

Helm chartv1.0.10App 1.16.0Verified publisher

A Helm chart for Mina Protocol's block producing network nodes

About this chart

Introduction

This chart bootstraps a Mina protocol Testnet block producer.

Add Mina Helm chart repository:

helm repo add mina https://coda-charts.storage.googleapis.com
helm repo update

Configuration

The following table lists the configurable parameters of the block-producer chart and its default values.

Required Settings

ParameterDescription
testnetNameMina protocol testnet name to deploy to
coda.seedPeerspeers to bootstrap the archive node's Mina daemon

Optional Settings

ParameterDescriptionDefault
userAgent.imageContainer image to use for a Mina protocol user-agent sidecar""
bots.imageContainer image to use for a Mina protocol faucet and echo service sidecars""
coda.imagecontainer image to use for operating the archive node's Mina daemoncodaprotocol/coda-daemon:0.0.12-beta-new-genesis-01eca9b
blockProducerConfigslist of Mina protocol block producer config and provisioning settingssee [default] values.yaml
blockProducerConfigs[].nameName of block producer configuration and deployment object<item-data>
blockProducerConfigs[].classTestnet block producer class based on account balance (e.g. fish or whale)<item-data>
blockProducerConfigs[].runWithBotsWhether to run with certain Mina protocol testnet bots<item-data>
blockProducerConfigs[].runWithUserAgentWhether to run with a user-agent which periodically sends transactions<item-data>
blockProducerConfigs[].enableGossipFloodingWhether to enable gossip flooding<item-data>
blockProducerConfigs[].privateKeySecretaccount wallet private key secret associated with Mina test account/wallet<item-data>
blockProducerConfigs[].externalPortPort Mina clients use for connecting to the external network<item-data>
coda.logLevellog level to set for Mina daemonTRACE
coda.logSnarkWorkGossipwhether the Mina daemon should log SNARK work gossipfalse
coda.runtimeConfigMina daemon configuration to use at runtimeundefined
coda.privKeyPasspublic-private key-pair associated with Mina daemon accountsee [default] values.yaml
userAgent.minFeeMinimum fee to accept for sending network transactions""
userAgent.maxFeeMaximum fee to accept for sending network transactions""
userAgent.minTxMinimum transaction amount to send by the user-agent""
userAgent.maxTxMaxiumum transaction amount to send by the user-agent""
bots.faucet.amountAmount to send in response to request for faucet funds"10000000000"
bots.faucet.feeFee to charge for sending faucet funds"100000000"

block-producer launch examples

helm install block-producer \
    --set testnetName=pickles \
    --set coda.seedPeers=['/dns4/coda-testnet-seed-one.pickles.o1test.net/tcp/10002/p2p/12D3KooWP7fTKbyiUcYJGajQDpCFo2rDexgTHFJTxCH8jvcL1eAH]

Deploy block-producer with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has block-producer on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartblock-producer is pinned at v1.0.10 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply