fixed value in trx object

This commit is contained in:
AZ 2016-12-29 09:17:54 +01:00
parent 7f09e45c08
commit fd67bb797e
3 changed files with 3 additions and 4 deletions

View File

@ -763,6 +763,7 @@ public class IotaAPIProxy {
// Check if new tx is part of the signature fragment
if (newBundleTx.getAddress().equals(address) && Long.parseLong(newBundleTx.getValue()) == 0) {
if(sig.getSignatureFragments().indexOf(newBundleTx.getSignatureFragments()) == -1)
sig.getSignatureFragments().add(newBundleTx.getSignatureFragments());
}
}
@ -855,8 +856,6 @@ public class IotaAPIProxy {
**/
public Bundle traverseBundle(String trunkTx, String bundleHash, Bundle bundle) throws ArgumentException {
GetTrytesResponse gtr = getTrytes(trunkTx);
System.out.println("GetTrytesRequest "+trunkTx);
System.out.println("GetTrytesResponse "+gtr.getTrytes()[0]);
if (gtr != null && gtr.getTrytes().length != 0) {
Transaction trx = Converter.transactionObject(gtr.getTrytes()[0]);

View File

@ -106,7 +106,7 @@ public class Bundle {
}
public int[] normalizedBundle(String bundleHash) {
int[] normalizedBundle = new int[33 * 27 + 27];
int[] normalizedBundle = new int[81];
for (int i = 0; i < 3; i++) {

View File

@ -151,7 +151,7 @@ public class Signing {
}
// Get digests
int[] digests = new int[signatureFragments.length * 243 + 243];
int[] digests = new int[signatureFragments.length * 243];
for (int i = 0; i < signatureFragments.length; i++) {