Skip to content

Commit 663a7f3

Browse files
committed
ref: lift Bootstrap.unlock_all_wallets() to avoid excessive alias check logging
1 parent 65f983f commit 663a7f3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bootstrap/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,6 +1309,7 @@ Bootstrap.create_wallets = async function (count = 3) {
13091309
await Bootstrap.unlock_all_wallets();
13101310
};
13111311
Bootstrap.grind = async function () {
1312+
await Bootstrap.unlock_all_wallets();
13121313
for (let i = 0; i < 100; i++) {
13131314
if (i % 10 === 0) {
13141315
await Bootstrap.generate_dash_to_all();
@@ -1463,7 +1464,6 @@ Bootstrap.dump_private_key = async function (username, address) {
14631464

14641465
Bootstrap.generate_dash_to_all = async function (iterations = 1) {
14651466
for (let i = 0; i < iterations; i++) {
1466-
await Bootstrap.unlock_all_wallets();
14671467
const users = await Bootstrap.user_list();
14681468
for (const user of users) {
14691469
let address = await mkudb(user).main_address();
@@ -1484,7 +1484,6 @@ Bootstrap.generate_dash_to_all = async function (iterations = 1) {
14841484

14851485
Bootstrap.generate_dash_to = async function (username) {
14861486
username = Bootstrap.alias_check(username);
1487-
await Bootstrap.unlock_all_wallets();
14881487
let address = await mkudb(username).main_address();
14891488
if (address === null) {
14901489
address = await Bootstrap.generate_new_addresses(username, 1);
@@ -1876,6 +1875,7 @@ Bootstrap.run_cli_program = async function () {
18761875
config.generateTo,
18771876
'...',
18781877
);
1878+
await Bootstrap.unlock_all_wallets();
18791879
d(await Bootstrap.generate_dash_to(config.generateTo));
18801880
console.log('[DONE]');
18811881
process.exit(0);
@@ -1897,6 +1897,7 @@ Bootstrap.run_cli_program = async function () {
18971897
process.exit(0);
18981898
}
18991899
if (config.dash_for_all) {
1900+
await Bootstrap.unlock_all_wallets();
19001901
d(await Bootstrap.generate_dash_to_all(100));
19011902
process.exit(0);
19021903
}

0 commit comments

Comments
 (0)