Skip to content

Commit

Permalink
Merge branch 'gprusak-consensus-config-again' of http://github.com/ma…
Browse files Browse the repository at this point in the history
…tter-labs/zksync-era into gprusak-consensus-config-again
  • Loading branch information
pompon0 committed Jan 23, 2024
2 parents 4a34541 + 858bdfa commit 2dd6bee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 0 additions & 14 deletions infrastructure/zk/src/hyperchain_wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ export interface BasePromptOptions {
skip?: ((state: object) => boolean | Promise<boolean>) | boolean;
}

// PLA:681
let isLocalhost = false;

// An init command that allows configuring and spinning up a new hyperchain network.
async function initHyperchain() {
await announced('Initializing hyperchain creation', setupConfiguration());
Expand All @@ -72,15 +69,6 @@ async function initHyperchain() {

await init(initArgs);

// if we used matterlabs/geth network, we need custom ENV file for hyperchain compose parts
// This breaks `zk status prover` command, but neccessary for working in isolated docker-network
// TODO: Think about better implementation
// PLA:681
if (isLocalhost) {
wrapEnvModify('ETH_CLIENT_WEB3_URL', 'http://geth:8545');
wrapEnvModify('DATABASE_URL', 'postgres://postgres:notsecurepassword@postgres:5432/zksync_local');
}

env.mergeInitToEnv();

console.log(announce(`\nYour hyperchain configuration is available at ${process.env.ENV_FILE}\n`));
Expand Down Expand Up @@ -262,8 +250,6 @@ async function setHyperchainMetadata() {
feeReceiverAddress = keyResults.feeReceiver;
}
} else {
// PLA:681
isLocalhost = true;
l1Rpc = 'http://localhost:8545';
l1Id = 9;
databaseUrl = 'postgres://postgres:notsecurepassword@localhost:5432/zksync_local';
Expand Down
6 changes: 3 additions & 3 deletions prover/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2dd6bee

Please sign in to comment.