Search in sources :

Example 1 with MixProgress

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);
            }
        }
    }
}
Also used : MixProgress(com.samourai.whirlpool.client.wallet.beans.MixProgress) Whirlpool(com.sparrowwallet.sparrow.whirlpool.Whirlpool)

Aggregations

MixProgress (com.samourai.whirlpool.client.wallet.beans.MixProgress)1 Whirlpool (com.sparrowwallet.sparrow.whirlpool.Whirlpool)1