Skip to content

Commit

Permalink
Merge pull request #6961 from yonson2023/spv_detect_corrupt_wallet
Browse files Browse the repository at this point in the history
Detect and handle corrupted SPV state allowing user-initiated resync.
  • Loading branch information
alejandrogarcia83 committed Dec 10, 2023
2 parents 4a7356c + b9fcbd4 commit 3f8fedd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/bisq/core/app/WalletAppSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ void init(@Nullable Consumer<String> chainFileLockedExceptionHandler,
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);
}
Expand Down

0 comments on commit 3f8fedd

Please sign in to comment.