mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
fixed getTransactionsToApprove (#12)
* updated GetNodeInfo * fixed getTransactionsToApprove * fixed getTransactionsToApprove
This commit is contained in:
parent
bbe837975e
commit
bee2aa3302
@ -324,7 +324,7 @@ public class IotaAPIProxy {
|
||||
final GetTransactionsToApproveResponse txs = getTransactionsToApprove(minWeightMagnitude);
|
||||
|
||||
// attach to tangle - do pow
|
||||
final GetAttachToTangleResponse res = attachToTangle(txs.getTrunkTransaction(), txs.getBranchTransactionToApprove(), minWeightMagnitude, trytes);
|
||||
final GetAttachToTangleResponse res = attachToTangle(txs.getTrunkTransaction(), txs.getBranchTransaction(), minWeightMagnitude, trytes);
|
||||
|
||||
try {
|
||||
broadcastAndStore(res.getTrytes());
|
||||
|
||||
@ -4,6 +4,7 @@ public class GetNodeInfoResponse extends AbstractResponse {
|
||||
|
||||
private String appName;
|
||||
private String appVersion;
|
||||
private String jreVersion;
|
||||
private int jreAvailableProcessors;
|
||||
private long jreFreeMemory;
|
||||
private long jreMaxMemory;
|
||||
@ -26,6 +27,10 @@ public class GetNodeInfoResponse extends AbstractResponse {
|
||||
return appVersion;
|
||||
}
|
||||
|
||||
public String getJreVersion() {
|
||||
return jreVersion;
|
||||
}
|
||||
|
||||
public Integer getJreAvailableProcessors() {
|
||||
return jreAvailableProcessors;
|
||||
}
|
||||
|
||||
@ -3,13 +3,13 @@ package jota.dto.response;
|
||||
public class GetTransactionsToApproveResponse extends AbstractResponse {
|
||||
|
||||
private String trunkTransaction;
|
||||
private String branchTransactionToApprove;
|
||||
|
||||
public String getBranchTransactionToApprove() {
|
||||
return branchTransactionToApprove;
|
||||
}
|
||||
private String branchTransaction;
|
||||
|
||||
public String getTrunkTransaction() {
|
||||
return trunkTransaction;
|
||||
}
|
||||
}
|
||||
|
||||
public String getBranchTransaction() {
|
||||
return branchTransaction;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user