mirror of
https://github.com/boldsuck/haveno.git
synced 2024-12-22 20:19:21 +00: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
|
@ -49,7 +49,7 @@ configure(subprojects) {
|
||||||
gsonVersion = '2.8.5'
|
gsonVersion = '2.8.5'
|
||||||
guavaVersion = '32.1.1-jre'
|
guavaVersion = '32.1.1-jre'
|
||||||
guiceVersion = '7.0.0'
|
guiceVersion = '7.0.0'
|
||||||
moneroJavaVersion = '0.8.27'
|
moneroJavaVersion = '0.8.29'
|
||||||
httpclient5Version = '5.0'
|
httpclient5Version = '5.0'
|
||||||
hamcrestVersion = '2.2'
|
hamcrestVersion = '2.2'
|
||||||
httpclientVersion = '4.5.12'
|
httpclientVersion = '4.5.12'
|
||||||
|
|
|
@ -1268,6 +1268,18 @@ public class XmrWalletService {
|
||||||
|
|
||||||
private void initialize() {
|
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
|
// listen for connection changes
|
||||||
xmrConnectionService.addConnectionListener(connection -> {
|
xmrConnectionService.addConnectionListener(connection -> {
|
||||||
|
|
||||||
|
@ -1290,18 +1302,6 @@ public class XmrWalletService {
|
||||||
walletInitListener = (obs, oldVal, newVal) -> initMainWalletIfConnected();
|
walletInitListener = (obs, oldVal, newVal) -> initMainWalletIfConnected();
|
||||||
xmrConnectionService.downloadPercentageProperty().addListener(walletInitListener);
|
xmrConnectionService.downloadPercentageProperty().addListener(walletInitListener);
|
||||||
initMainWalletIfConnected();
|
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() {
|
private void initMainWalletIfConnected() {
|
||||||
|
|
|
@ -886,9 +886,9 @@
|
||||||
<sha256 value="c92e2ca40a3f2474d61e56831aeb379cf8ae3dddeea61b4a828cee2d99f71f38" origin="Generated by Gradle"/>
|
<sha256 value="c92e2ca40a3f2474d61e56831aeb379cf8ae3dddeea61b4a828cee2d99f71f38" origin="Generated by Gradle"/>
|
||||||
</artifact>
|
</artifact>
|
||||||
</component>
|
</component>
|
||||||
<component group="io.github.woodser" name="monero-java" version="0.8.27">
|
<component group="io.github.woodser" name="monero-java" version="0.8.29">
|
||||||
<artifact name="monero-java-0.8.27.jar">
|
<artifact name="monero-java-0.8.29.jar">
|
||||||
<sha256 value="8bb6c4288b9490247b60d8d4955175bffc83124bf5e7ad4cdb17e19c4479d378" origin="Generated by Gradle"/>
|
<sha256 value="41eba8c84a1b1c99f209628fdc8302b493b629cedadc790774cb215da2f08b4d" origin="Generated by Gradle"/>
|
||||||
</artifact>
|
</artifact>
|
||||||
</component>
|
</component>
|
||||||
<component group="io.grpc" name="grpc-api" version="1.42.1">
|
<component group="io.grpc" name="grpc-api" version="1.42.1">
|
||||||
|
|
Loading…
Reference in a new issue