@@ -1309,6 +1309,7 @@ Bootstrap.create_wallets = async function (count = 3) {
1309
1309
await Bootstrap . unlock_all_wallets ( ) ;
1310
1310
} ;
1311
1311
Bootstrap . grind = async function ( ) {
1312
+ await Bootstrap . unlock_all_wallets ( ) ;
1312
1313
for ( let i = 0 ; i < 100 ; i ++ ) {
1313
1314
if ( i % 10 === 0 ) {
1314
1315
await Bootstrap . generate_dash_to_all ( ) ;
@@ -1463,7 +1464,6 @@ Bootstrap.dump_private_key = async function (username, address) {
1463
1464
1464
1465
Bootstrap . generate_dash_to_all = async function ( iterations = 1 ) {
1465
1466
for ( let i = 0 ; i < iterations ; i ++ ) {
1466
- await Bootstrap . unlock_all_wallets ( ) ;
1467
1467
const users = await Bootstrap . user_list ( ) ;
1468
1468
for ( const user of users ) {
1469
1469
let address = await mkudb ( user ) . main_address ( ) ;
@@ -1484,7 +1484,6 @@ Bootstrap.generate_dash_to_all = async function (iterations = 1) {
1484
1484
1485
1485
Bootstrap . generate_dash_to = async function ( username ) {
1486
1486
username = Bootstrap . alias_check ( username ) ;
1487
- await Bootstrap . unlock_all_wallets ( ) ;
1488
1487
let address = await mkudb ( username ) . main_address ( ) ;
1489
1488
if ( address === null ) {
1490
1489
address = await Bootstrap . generate_new_addresses ( username , 1 ) ;
@@ -1876,6 +1875,7 @@ Bootstrap.run_cli_program = async function () {
1876
1875
config . generateTo ,
1877
1876
'...' ,
1878
1877
) ;
1878
+ await Bootstrap . unlock_all_wallets ( ) ;
1879
1879
d ( await Bootstrap . generate_dash_to ( config . generateTo ) ) ;
1880
1880
console . log ( '[DONE]' ) ;
1881
1881
process . exit ( 0 ) ;
@@ -1897,6 +1897,7 @@ Bootstrap.run_cli_program = async function () {
1897
1897
process . exit ( 0 ) ;
1898
1898
}
1899
1899
if ( config . dash_for_all ) {
1900
+ await Bootstrap . unlock_all_wallets ( ) ;
1900
1901
d ( await Bootstrap . generate_dash_to_all ( 100 ) ) ;
1901
1902
process . exit ( 0 ) ;
1902
1903
}
0 commit comments