Skip to content

Commit

Permalink
other improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
perekopskiy committed Sep 12, 2024
1 parent 0aeb2cf commit 1634e02
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
14 changes: 9 additions & 5 deletions core/tests/upgrade-test/tests/upgrade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,29 @@ describe('Upgrade test', function () {
alice = tester.emptyWallet();

if (fileConfig.loadFromFile) {
let walletConfig = loadConfig({ pathToHome, chain: fileConfig.chain, config: 'wallets.yaml' });
const chainWalletConfig = loadConfig({ pathToHome, chain: fileConfig.chain, config: 'wallets.yaml' });

adminGovWallet = new ethers.Wallet(walletConfig.governor.private_key, alice._providerL1());
adminGovWallet = new ethers.Wallet(chainWalletConfig.governor.private_key, alice._providerL1());

walletConfig = loadConfig({
const ecosystemWalletConfig = loadConfig({
pathToHome,
chain: fileConfig.chain,
configsFolder: '../../configs/',
config: 'wallets.yaml'
});

ecosystemGovWallet = new ethers.Wallet(walletConfig.governor.private_key, alice._providerL1());
if (ecosystemWalletConfig.governor.private_key == chainWalletConfig.governor.private_key) {
ecosystemGovWallet = adminGovWallet;
} else {
ecosystemGovWallet = new ethers.Wallet(ecosystemWalletConfig.governor.private_key, alice._providerL1());
}
} else {
let govMnemonic = ethers.Mnemonic.fromPhrase(
require('../../../../etc/test_config/constant/eth.json').mnemonic
);
let govWalletHD = ethers.HDNodeWallet.fromMnemonic(govMnemonic, "m/44'/60'/0'/0/1");
adminGovWallet = new ethers.Wallet(govWalletHD.privateKey, alice._providerL1());
ecosystemGovWallet = new ethers.Wallet(govWalletHD.privateKey, alice._providerL1());
ecosystemGovWallet = adminGovWallet;
}

logs = fs.createWriteStream('upgrade.log', { flags: 'a' });
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-cpu-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
source: ./etc/reth/chaindata
target: /chaindata

command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 300ms --chain /chaindata/reth_config
command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 600ms --chain /chaindata/reth_config
ports:
- 127.0.0.1:8545:8545

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-gpu-runner-cuda-12-0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
source: ./etc/reth/chaindata
target: /chaindata

command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 300ms --chain /chaindata/reth_config
command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 600ms --chain /chaindata/reth_config
ports:
- 127.0.0.1:8545:8545

Expand Down
2 changes: 1 addition & 1 deletion docker-compose-gpu-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
source: ./etc/reth/chaindata
target: /chaindata

command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 300ms --chain /chaindata/reth_config
command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 600ms --chain /chaindata/reth_config
ports:
- 127.0.0.1:8545:8545

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
source: ./etc/reth/chaindata
target: /chaindata

command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 300ms --chain /chaindata/reth_config
command: node --dev --datadir /rethdata --http --http.addr 0.0.0.0 --http.port 8545 --http.corsdomain "*" --dev.block-time 600ms --chain /chaindata/reth_config


postgres:
Expand Down

0 comments on commit 1634e02

Please sign in to comment.