From 881f5764d07a9aa07b7a61e838fbe1c18a35375f Mon Sep 17 00:00:00 2001 From: Sam Bukowski Date: Mon, 23 Oct 2023 15:07:58 -0600 Subject: [PATCH] small updates to config setup, added manual sequencer height fetch to faq --- .../1-digital-ocean.md | 12 ++++++++-- .../5-faq-debugging.md | 24 +++++++++++++++++++ 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/docs/dusknet/cloud-rollup-deployment/1-digital-ocean.md b/docs/dusknet/cloud-rollup-deployment/1-digital-ocean.md index a347aa89..6489f325 100644 --- a/docs/dusknet/cloud-rollup-deployment/1-digital-ocean.md +++ b/docs/dusknet/cloud-rollup-deployment/1-digital-ocean.md @@ -93,7 +93,7 @@ git clone git@github.com:astriaorg/dev-cluster.git cd dev-cluster ``` -Within the dev-cluster repo, update the `chart/rollup/values.yaml` file so that +Within the `dev-cluster` repo, update the `chart/rollup/values.yaml` file so that the `ingress.hostname` value is set to your chosen hostname instead of `localdev.me`: @@ -153,7 +153,7 @@ Replace the tags in the commands and env vars below, as follows: | `` | String | The name of your rollup | | `` | u64 | The id of your network | | `` | String | The chosen hostname for your network | -| `` | String | The chosen deployment namespace | +| `` | String | The chosen k8s deployment namespace | | `` | u64 | A balance. We recommend using `100000000000000000000`. | You can use environment variables to set the configuration for the rollup @@ -176,14 +176,22 @@ export ROLLUP_SEQUENCER_RPC=https://rpc.sequencer.dusk-1.devnet.astria.org The initial sequencer block height is automatically fetched and set if not specified when creating the config. If you need to set this value manually you can export the height as an environment variable: + ```bash export ROLLUP_SEQUENCER_INITIAL_BLOCK_HEIGHT= ``` + Or use the following flag when running the `astria-cli rollup config create` command below: + ```bash --sequencer.initial-block-height ``` + +See the [FAQ and +Debugging](5-faq-debugging.md#manually-fetch-sequencer-block-height) docs for +how to manually fetch the sequencer block height. + ::: Then just run the config create command: diff --git a/docs/dusknet/cloud-rollup-deployment/5-faq-debugging.md b/docs/dusknet/cloud-rollup-deployment/5-faq-debugging.md index bb08d732..eadfa3bb 100644 --- a/docs/dusknet/cloud-rollup-deployment/5-faq-debugging.md +++ b/docs/dusknet/cloud-rollup-deployment/5-faq-debugging.md @@ -4,6 +4,30 @@ sidebar_position: 5 # FAQ and Debugging +## Manually Fetch Sequencer Block Height + +### Install the `astria-cli` + +Pull the [Astria repo](https://github.com/astriaorg/astria) and install the `astria-cli` + +```bash +git clone git@github.com:astriaorg/astria.git +cd astria +just install-cli +``` + +### Get Current Sequencer Block Height + +```bash +astria-cli sequencer blockheight get \ + --sequencer-url https://rpc.sequencer.dusk-1.devnet.astria.org/ +``` + +`export` the initial sequencer block height as an environment variable: +```bash +export INITIAL_SEQUENCER_BLOCK_HEIGHT= +``` + ## Debug Ingress If you would like to view the ingress logs you can use the following: