use of com.samourai.whirlpool.client.wallet.beans.MixProgress in project sparrow by sparrowwallet.
the class WalletUtxosEntry method updateMixProgress.
public void updateMixProgress() {
Whirlpool whirlpool = AppServices.getWhirlpoolServices().getWhirlpool(getWallet());
if (whirlpool != null) {
for (Entry entry : getChildren()) {
UtxoEntry utxoEntry = (UtxoEntry) entry;
MixProgress mixProgress = whirlpool.getMixProgress(utxoEntry.getHashIndex());
if (mixProgress != null || utxoEntry.getMixStatus() == null || (utxoEntry.getMixStatus().getMixFailReason() == null && utxoEntry.getMixStatus().getNextMixUtxo() == null)) {
utxoEntry.setMixProgress(mixProgress);
}
}
}
}
Aggregations