mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-05-22 00:11:19 -04:00
update to monero-java 0.8.29 to fix #995
This commit is contained in:
parent
31a587861a
commit
99f41e0feb
3 changed files with 16 additions and 16 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue