mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 18:26:43 +00:00
Merge pull request #4 from zeroleak/whirlpool-client-0.23.30-early4
upgrade to whirlpool-client 0.23.30-early4 + extlibj 0.0.19-dsk3
This commit is contained in:
commit
71b5778226
2 changed files with 11 additions and 13 deletions
|
@ -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 + "}";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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<Sha256Hash, UtxoMixData> getUtxoMixes() {
|
||||
|
|
Loading…
Reference in a new issue