fix: reclaim orphaned proofs automatically on app startup

This commit is contained in:
Forte11Cuba
2026-04-15 16:06:29 -06:00
parent 9a14af33a2
commit f01fc66dcf
+7
View File
@@ -1733,6 +1733,13 @@ class WalletProvider extends ChangeNotifier {
debugPrint('Check pending failed: $e');
}
try {
// Recuperar proofs huérfanas (melts fallidos, sends no completados)
await wallet.reclaimPendingProofs();
} catch (e) {
debugPrint('Reclaim pending proofs failed: $e');
}
} catch (e) {
debugPrint('Error getting wallet ${entry.key}:$unit: $e');
}