aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ark/alice.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ark/alice.js')
-rw-r--r--tools/ark/alice.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/ark/alice.js b/tools/ark/alice.js
index 9c33661..b270edd 100644
--- a/tools/ark/alice.js
+++ b/tools/ark/alice.js
@@ -27,7 +27,10 @@ const expiredCoins = () => {
export async function aliceReady() {
if (expiredCoins().length) {
console.log(' … refreshing alice\'s expired coins first');
- sh(`${ALICE} -q refresh --all >/dev/null`);
+ // maintain = refresh what's expiring + resume any action a killed run left
+ // half-done (those hold their coins locked); errors surface below as a
+ // balance that never comes back
+ try { sh(`${ALICE} -q maintain >/dev/null 2>&1`); } catch {}
// the round's output turns spendable once its funding tx confirms and the
// indexer has seen it — keep mining until bark agrees
for (let i = 0; i < 20 && (expiredCoins().length || !aliceBalance()); i++) { mine(1); await sleep(1500); }