Skip to content

Commit e01daac

Browse files
authored
Don't log VTXO renewal errors for zero items and below dust (#350)
1 parent ce30a2e commit e01daac

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/wallet/vtxo-manager.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,17 @@ export class VtxoManager implements AsyncDisposable {
863863
}
864864

865865
this.renewVtxos().catch((e) => {
866+
if (e instanceof Error) {
867+
if (e.message.includes("No VTXOs available to renew")) {
868+
// Not an error, just no VTXO eligible for renewal.
869+
return;
870+
}
871+
if (e.message.includes("is below dust threshold")) {
872+
// Not an error, just below dust threshold.
873+
// As more VTXOs are received, the threshold will be raised.
874+
return;
875+
}
876+
}
866877
console.error("Error renewing VTXOs:", e);
867878
});
868879
delegatorManager

0 commit comments

Comments
 (0)