mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
Update IotaApi.java
* Fixed bundle signature fragment array iteration
This commit is contained in:
parent
fbacc5ae44
commit
9ec8946179
@ -670,8 +670,8 @@ public class IotaAPI extends IotaAPICore {
|
|||||||
sig.getSignatureFragments().add(trx.getSignatureFragments());
|
sig.getSignatureFragments().add(trx.getSignatureFragments());
|
||||||
|
|
||||||
// Find the subsequent txs with the remaining signature fragment
|
// Find the subsequent txs with the remaining signature fragment
|
||||||
for (int y = i; y < bundle.getTransactions().size() - 1; y++) {
|
for (int y = i + 1; y < bundle.getTransactions().size(); y++) {
|
||||||
Transaction newBundleTx = bundle.getTransactions().get(i + 1);
|
Transaction newBundleTx = bundle.getTransactions().get(y);
|
||||||
|
|
||||||
// Check if new tx is part of the signature fragment
|
// Check if new tx is part of the signature fragment
|
||||||
if (newBundleTx.getAddress().equals(address) && newBundleTx.getValue() == 0) {
|
if (newBundleTx.getAddress().equals(address) && newBundleTx.getValue() == 0) {
|
||||||
@ -1115,4 +1115,4 @@ public class IotaAPI extends IotaAPICore {
|
|||||||
return new IotaAPI(this);
|
return new IotaAPI(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user