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
|
||||
public void newBlock(long height) {
|
||||
refresh();
|
||||
refresh(false);
|
||||
BlockchainService.getInstance().setDaemonHeight(wallet.isSynchronized() ? height : 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updated() {
|
||||
refresh();
|
||||
refresh(false);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -115,15 +115,17 @@ public class MoneroHandlerThread extends Thread implements WalletListener {
|
|||
BlockchainService.getInstance().setDaemonHeight(wallet.getDaemonBlockChainHeight());
|
||||
wallet.setSynchronized();
|
||||
wallet.store();
|
||||
refresh();
|
||||
refresh(true);
|
||||
}
|
||||
|
||||
BlockchainService.getInstance().setConnectionStatus(status);
|
||||
}
|
||||
|
||||
private void refresh() {
|
||||
private void refresh(boolean refreshCoins) {
|
||||
wallet.refreshHistory();
|
||||
wallet.refreshCoins();
|
||||
if(refreshCoins) {
|
||||
wallet.refreshCoins();
|
||||
}
|
||||
listener.onRefresh();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue