mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-25 08:52:28 +00:00
Fix syncing issue upon send
This commit is contained in:
parent
a147faef70
commit
8daa08bd6b
1 changed files with 7 additions and 5 deletions
|
@ -92,13 +92,13 @@ public class MoneroHandlerThread extends Thread implements WalletListener {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void newBlock(long height) {
|
public void newBlock(long height) {
|
||||||
refresh();
|
refresh(false);
|
||||||
BlockchainService.getInstance().setDaemonHeight(wallet.isSynchronized() ? height : 0);
|
BlockchainService.getInstance().setDaemonHeight(wallet.isSynchronized() ? height : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updated() {
|
public void updated() {
|
||||||
refresh();
|
refresh(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -115,15 +115,17 @@ public class MoneroHandlerThread extends Thread implements WalletListener {
|
||||||
BlockchainService.getInstance().setDaemonHeight(wallet.getDaemonBlockChainHeight());
|
BlockchainService.getInstance().setDaemonHeight(wallet.getDaemonBlockChainHeight());
|
||||||
wallet.setSynchronized();
|
wallet.setSynchronized();
|
||||||
wallet.store();
|
wallet.store();
|
||||||
refresh();
|
refresh(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockchainService.getInstance().setConnectionStatus(status);
|
BlockchainService.getInstance().setConnectionStatus(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refresh() {
|
private void refresh(boolean refreshCoins) {
|
||||||
wallet.refreshHistory();
|
wallet.refreshHistory();
|
||||||
|
if(refreshCoins) {
|
||||||
wallet.refreshCoins();
|
wallet.refreshCoins();
|
||||||
|
}
|
||||||
listener.onRefresh();
|
listener.onRefresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue