@arkade-os/sdk 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -582,6 +582,17 @@ class VtxoManager {
|
|
|
582
582
|
return;
|
|
583
583
|
}
|
|
584
584
|
this.renewVtxos().catch((e) => {
|
|
585
|
+
if (e instanceof Error) {
|
|
586
|
+
if (e.message.includes("No VTXOs available to renew")) {
|
|
587
|
+
// Not an error, just no VTXO eligible for renewal.
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
if (e.message.includes("is below dust threshold")) {
|
|
591
|
+
// Not an error, just below dust threshold.
|
|
592
|
+
// As more VTXOs are received, the threshold will be raised.
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
585
596
|
console.error("Error renewing VTXOs:", e);
|
|
586
597
|
});
|
|
587
598
|
delegatorManager
|
|
@@ -577,6 +577,17 @@ export class VtxoManager {
|
|
|
577
577
|
return;
|
|
578
578
|
}
|
|
579
579
|
this.renewVtxos().catch((e) => {
|
|
580
|
+
if (e instanceof Error) {
|
|
581
|
+
if (e.message.includes("No VTXOs available to renew")) {
|
|
582
|
+
// Not an error, just no VTXO eligible for renewal.
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
if (e.message.includes("is below dust threshold")) {
|
|
586
|
+
// Not an error, just below dust threshold.
|
|
587
|
+
// As more VTXOs are received, the threshold will be raised.
|
|
588
|
+
return;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
580
591
|
console.error("Error renewing VTXOs:", e);
|
|
581
592
|
});
|
|
582
593
|
delegatorManager
|