add(Docker): Enable miners to set their address for mining rewards. (#7178)

* Enable RPC port in general scenarios

* Add `mining.miner_address` to runtime entrypoint
This commit is contained in:
Marek 2023-07-10 12:46:52 +02:00 committed by GitHub
parent 0d332646bf
commit 32dd6180de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,13 @@ use_color = false
EOF
fi
fi
if [[ -n "$MINER_ADDRESS" ]]; then
cat <<EOF >> "$ZEBRA_CONF_PATH"
[mining]
miner_address = "${MINER_ADDRESS}"
EOF
fi
fi
echo "Using zebrad.toml:"