mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Add txId to BondedReputationDto
Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
parent
444aa0dd96
commit
b6a308f646
2 changed files with 7 additions and 4 deletions
|
@ -35,16 +35,18 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
@Schema(title = "BondedReputation")
|
@Schema(title = "BondedReputation")
|
||||||
public class BondedReputationDto {
|
public class BondedReputationDto {
|
||||||
private final long amount;
|
private final long amount;
|
||||||
private final long time;
|
private final long blockTime;
|
||||||
private final String hash;
|
private final String hash;
|
||||||
private final int blockHeight;
|
private final int blockHeight;
|
||||||
private final int lockTime;
|
private final int lockTime;
|
||||||
|
private final String txId;
|
||||||
|
|
||||||
public BondedReputationDto(long amount, long time, String hash, int blockHeight, int lockTime) {
|
public BondedReputationDto(long amount, long blockTime, String hash, int blockHeight, int lockTime, String txId) {
|
||||||
this.amount = amount;
|
this.amount = amount;
|
||||||
this.time = time;
|
this.blockTime = blockTime;
|
||||||
this.hash = hash;
|
this.hash = hash;
|
||||||
this.blockHeight = blockHeight;
|
this.blockHeight = blockHeight;
|
||||||
this.lockTime = lockTime;
|
this.lockTime = lockTime;
|
||||||
|
this.txId = txId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -96,7 +96,8 @@ public class BondedReputationApi {
|
||||||
tx.getTime(),
|
tx.getTime(),
|
||||||
Hex.encode(bondedReputation.getBondedAsset().getHash()),
|
Hex.encode(bondedReputation.getBondedAsset().getHash()),
|
||||||
blockHeight,
|
blockHeight,
|
||||||
bondedReputation.getLockTime()
|
bondedReputation.getLockTime(),
|
||||||
|
tx.getId()
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue