diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/UtxoMixData.java b/src/main/java/com/sparrowwallet/drongo/wallet/UtxoMixData.java index 07eaf10..1bf8764 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/UtxoMixData.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/UtxoMixData.java @@ -1,30 +1,24 @@ package com.sparrowwallet.drongo.wallet; public class UtxoMixData extends Persistable { - private final String poolId; private final int mixesDone; - private final Long forwarding; + private final Long expired; - public UtxoMixData(String poolId, int mixesDone, Long forwarding) { - this.poolId = poolId; + public UtxoMixData(int mixesDone, Long expired) { this.mixesDone = mixesDone; - this.forwarding = forwarding; - } - - public String getPoolId() { - return poolId; + this.expired = expired; } public int getMixesDone() { return mixesDone; } - public Long getForwarding() { - return forwarding; + public Long getExpired() { + return expired; } @Override public String toString() { - return "{poolId:" + poolId + ", mixesDone:" + mixesDone + ", forwarding:" + forwarding + "}"; + return "{mixesDone:" + mixesDone + ", expired: " + expired + "}"; } } diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java index 2b137c3..a443a39 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java @@ -231,7 +231,11 @@ public class Wallet extends Persistable { } public UtxoMixData getUtxoMixData(BlockTransactionHashIndex utxo) { - return utxoMixes.get(Sha256Hash.of(utxo.toString().getBytes(StandardCharsets.UTF_8))); + return getUtxoMixData(Sha256Hash.of(utxo.toString().getBytes(StandardCharsets.UTF_8))); + } + + public UtxoMixData getUtxoMixData(Sha256Hash utxoKey) { + return utxoMixes.get(utxoKey); } public Map getUtxoMixes() {