mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-11-17 00:07:49 +00:00
show sync progress before sync starts on startup
This commit is contained in:
parent
b86e916dcb
commit
f7ac9ae37a
1 changed files with 5 additions and 3 deletions
|
@ -999,7 +999,10 @@ public class XmrWalletService {
|
||||||
|
|
||||||
private void syncWalletWithProgress() {
|
private void syncWalletWithProgress() {
|
||||||
|
|
||||||
// update sync progress in realtime with native wallet
|
// show sync progress
|
||||||
|
updateSyncProgress();
|
||||||
|
|
||||||
|
// get sync notifications from native wallet
|
||||||
if (wallet instanceof MoneroWalletFull) {
|
if (wallet instanceof MoneroWalletFull) {
|
||||||
wallet.sync(new MoneroWalletListener() {
|
wallet.sync(new MoneroWalletListener() {
|
||||||
@Override
|
@Override
|
||||||
|
@ -1011,8 +1014,7 @@ public class XmrWalletService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// poll wallet for progress
|
// poll monero-wallet-rpc for progress
|
||||||
updateSyncProgress();
|
|
||||||
wallet.startSyncing(xmrConnectionService.getRefreshPeriodMs());
|
wallet.startSyncing(xmrConnectionService.getRefreshPeriodMs());
|
||||||
CountDownLatch latch = new CountDownLatch(1);
|
CountDownLatch latch = new CountDownLatch(1);
|
||||||
syncLooper = new TaskLooper(() -> {
|
syncLooper = new TaskLooper(() -> {
|
||||||
|
|
Loading…
Reference in a new issue