update to monero-java 0.8.29 to fix #995

This commit is contained in:
woodser 2024-06-06 12:24:45 -04:00
parent 31a587861a
commit 99f41e0feb
3 changed files with 16 additions and 16 deletions

View file

@ -1268,6 +1268,18 @@ public class XmrWalletService {
private void initialize() {
// try to load native monero library
if (useNativeXmrWallet && !MoneroUtils.isNativeLibraryLoaded()) {
try {
MoneroUtils.loadNativeLibrary();
} catch (Exception | UnsatisfiedLinkError e) {
log.warn("Failed to load Monero native libraries: " + e.getMessage());
}
}
String appliedMsg = "Monero native libraries applied: " + isNativeLibraryApplied();
if (useNativeXmrWallet && !isNativeLibraryApplied()) log.warn(appliedMsg);
else log.info(appliedMsg);
// listen for connection changes
xmrConnectionService.addConnectionListener(connection -> {
@ -1290,18 +1302,6 @@ public class XmrWalletService {
walletInitListener = (obs, oldVal, newVal) -> initMainWalletIfConnected();
xmrConnectionService.downloadPercentageProperty().addListener(walletInitListener);
initMainWalletIfConnected();
// try to load native monero library
if (useNativeXmrWallet && !MoneroUtils.isNativeLibraryLoaded()) {
try {
MoneroUtils.loadNativeLibrary();
} catch (Exception | UnsatisfiedLinkError e) {
log.warn("Failed to load Monero native libraries: " + e.getMessage());
}
}
String appliedMsg = "Monero native libraries applied: " + isNativeLibraryApplied();
if (useNativeXmrWallet && !isNativeLibraryApplied()) log.warn(appliedMsg);
else log.info(appliedMsg);
}
private void initMainWalletIfConnected() {