Detect and handle corrupted SPV state allowing user-initiated resync.

This commit is contained in:
yonson2023 2023-12-09 10:50:04 -06:00
parent bba7327115
commit b9fcbd4ee8
No known key found for this signature in database
GPG Key ID: 653F31AF4087E2F2

View File

@ -191,6 +191,8 @@ public class WalletAppSetup {
exception -> {
if (exception instanceof InvalidHostException && showPopupIfInvalidBtcConfigHandler != null) {
showPopupIfInvalidBtcConfigHandler.run();
} else if (exception instanceof IllegalStateException && spvFileCorruptedHandler != null) {
spvFileCorruptedHandler.accept(Res.get("error.spvFileCorrupted", exception.getMessage()));
} else {
walletServiceException.set(exception);
}