Add more logging

This commit is contained in:
Manfred Karrer 2016-01-01 15:28:50 +01:00
parent 4bd3a8cb3f
commit 8716a506e8
2 changed files with 9 additions and 3 deletions

View file

@ -21,6 +21,7 @@ import com.google.common.collect.ImmutableList;
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.Service;
import io.bitsquare.app.Log;
import io.bitsquare.btc.listeners.AddressConfidenceListener;
import io.bitsquare.btc.listeners.BalanceListener;
import io.bitsquare.btc.listeners.TxConfidenceListener;
@ -538,12 +539,14 @@ public class WalletService {
@Override
protected void progress(double percentage, int blocksLeft, Date date) {
Log.traceCall("percentage=" + percentage);
super.progress(percentage, blocksLeft, date);
UserThread.execute(() -> this.percentage.set(percentage / 100d));
}
@Override
protected void doneDownload() {
Log.traceCall();
super.doneDownload();
UserThread.execute(() -> this.percentage.set(1d));
}