Skip to content

chore(testnet): default data dir for testnet#12696

Merged
Maddiaa0 merged 4 commits intomasterfrom
md/default-data-dir-for-testnet
Mar 13, 2025
Merged

chore(testnet): default data dir for testnet#12696
Maddiaa0 merged 4 commits intomasterfrom
md/default-data-dir-for-testnet

Conversation

@Maddiaa0
Copy link
Member

Overview

As part of #12452

When combined with #12589 (awaiting clarification from phil)

We should be able to have people join testnet with only these 3 config values:

  • l1 consensus host
  • l1 host
  • validator private key

Everything else is now a default

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

enrichVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
enrichVar('DATA_DIR', path.join(process.env.HOME || '~', '.aztec', networkName, 'data'));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's DATA_DIRECTORY.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these all have a satisfies EnvVar after them so that relation is checked?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed, great idea.

@Maddiaa0 Maddiaa0 merged commit d81b9b0 into master Mar 13, 2025
7 checks passed
@Maddiaa0 Maddiaa0 deleted the md/default-data-dir-for-testnet branch March 13, 2025 10:07
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.

3 participants