Merge pull request #65 from iotaledger/paulhandy-patch-1

Fix getBundle signature array creation
This commit is contained in:
Paul Handy
2017-11-21 19:47:27 -08:00
committed by GitHub
+3 -3
View File
@@ -670,8 +670,8 @@ public class IotaAPI extends IotaAPICore {
sig.getSignatureFragments().add(trx.getSignatureFragments());
// Find the subsequent txs with the remaining signature fragment
for (int y = i; y < bundle.getTransactions().size() - 1; y++) {
Transaction newBundleTx = bundle.getTransactions().get(i + 1);
for (int y = i + 1; y < bundle.getTransactions().size(); y++) {
Transaction newBundleTx = bundle.getTransactions().get(y);
// Check if new tx is part of the signature fragment
if (newBundleTx.getAddress().equals(address) && newBundleTx.getValue() == 0) {
@@ -1115,4 +1115,4 @@ public class IotaAPI extends IotaAPICore {
return new IotaAPI(this);
}
}
}
}