-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BSQ blocks resync from resources on Windows & Linux
Prevent a "URI is not hierarchical" IllegalArgumentException from the expression, 'new File(dirUrl.toURI())', which occurs on Linux & Windows when listing the resource directory of BSQ blocks. Adapt a solution from StackOverflow which uses two separate code paths depending on the environment, into the new method 'FileUtil::listResourceDirectory'. The issue is caused by the resource URL taking one of the two forms: file:/Users/[USER]/Java/bisq/bisq/p2p/out/production/resources/BsqBlocks_BTC_MAINNET jar:file:...p2p.jar!/BsqBlocks_BTC_MAINNET depending on whether the system is OSX or not.
- Loading branch information
Showing
2 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters