Skip to content

Commit 1634e02

Browse files
committed
other improvements
1 parent 0aeb2cf commit 1634e02

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

core/tests/upgrade-test/tests/upgrade.test.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,25 +89,29 @@ describe('Upgrade test', function () {
8989
alice = tester.emptyWallet();
9090

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

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

96-
walletConfig = loadConfig({
96+
const ecosystemWalletConfig = loadConfig({
9797
pathToHome,
9898
chain: fileConfig.chain,
9999
configsFolder: '../../configs/',
100100
config: 'wallets.yaml'
101101
});
102102

103-
ecosystemGovWallet = new ethers.Wallet(walletConfig.governor.private_key, alice._providerL1());
103+
if (ecosystemWalletConfig.governor.private_key == chainWalletConfig.governor.private_key) {
104+
ecosystemGovWallet = adminGovWallet;
105+
} else {
106+
ecosystemGovWallet = new ethers.Wallet(ecosystemWalletConfig.governor.private_key, alice._providerL1());
107+
}
104108
} else {
105109
let govMnemonic = ethers.Mnemonic.fromPhrase(
106110
require('../../../../etc/test_config/constant/eth.json').mnemonic
107111
);
108112
let govWalletHD = ethers.HDNodeWallet.fromMnemonic(govMnemonic, "m/44'/60'/0'/0/1");
109113
adminGovWallet = new ethers.Wallet(govWalletHD.privateKey, alice._providerL1());
110-
ecosystemGovWallet = new ethers.Wallet(govWalletHD.privateKey, alice._providerL1());
114+
ecosystemGovWallet = adminGovWallet;
111115
}
112116

113117
logs = fs.createWriteStream('upgrade.log', { flags: 'a' });

docker-compose-cpu-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
source: ./etc/reth/chaindata
1212
target: /chaindata
1313

14-
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
14+
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
1515
ports:
1616
- 127.0.0.1:8545:8545
1717

docker-compose-gpu-runner-cuda-12-0.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
source: ./etc/reth/chaindata
1212
target: /chaindata
1313

14-
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
14+
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
1515
ports:
1616
- 127.0.0.1:8545:8545
1717

docker-compose-gpu-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
source: ./etc/reth/chaindata
1212
target: /chaindata
1313

14-
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
14+
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
1515
ports:
1616
- 127.0.0.1:8545:8545
1717

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
source: ./etc/reth/chaindata
1414
target: /chaindata
1515

16-
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
16+
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
1717

1818

1919
postgres:

0 commit comments

Comments
 (0)