Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 90b6283

Browse files
committed
ci: fix geth accounts script
1 parent d30ce8f commit 90b6283

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

scripts/ci.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ run_geth() {
2222
--dev \
2323
--dev.period 0 \
2424
--allow-insecure-unlock \
25-
js ./scripts/geth-accounts.js \
25+
--preload ./scripts/geth-accounts.js \
26+
console
2627
>/dev/null &
2728
}
2829

scripts/geth-accounts.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,14 @@ function createAccounts() {
1919
function unlockAccounts() {
2020
eth.accounts.forEach(function (account) {
2121
console.log('Unlocking ' + account + '...');
22-
personal.unlockAccount(account, '', 86400);
22+
personal.unlockAccount(account, '', 0);
2323
});
2424
}
2525

2626
function setupDevNode() {
2727
// keep accounts unlocked
28-
while (true) {
29-
unlockAccounts();
30-
}
28+
unlockAccounts();
3129
}
3230

3331
createAccounts();
34-
setupDevNode();
32+
setupDevNode();

0 commit comments

Comments
 (0)