Skip to content

fix: validate node type and drop dead vars in init-bedrock - #93

Open
Alicepoltora wants to merge 1 commit into
inkonchain:mainfrom
Alicepoltora:fix/validate-node-type-init-bedrock
Open

Alicepoltora wants to merge 1 commit into
inkonchain:mainfrom
Alicepoltora:fix/validate-node-type-init-bedrock

Conversation

@Alicepoltora

Copy link
Copy Markdown

Reject unknown NODE_TYPE values early: previously a typo such as NODE_TYPE=ful silently fell through and synced from genesis as a full node instead of failing. Also require BEDROCK_DATADIR to be set with a clear error, remove the unused TORRENTS_DIR and BEDROCK_TMP_PATH variables, and initialize BEDROCK_TAR_DOWNLOAD so the download block never reads an unset variable. Verified with bash -n plus behavioral tests of the validation branches.

- Reject unknown NODE_TYPE values early. Previously a typo such as
  NODE_TYPE=ful silently fell through and synced from genesis as a
  full node instead of failing.
- Require BEDROCK_DATADIR to be set with a clear error instead of
  failing later inside extract with an empty datadir.
- Remove the unused TORRENTS_DIR and BEDROCK_TMP_PATH variables and
  initialize BEDROCK_TAR_DOWNLOAD so the download block never reads
  an unset variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant