mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
fixed value in trx object
This commit is contained in:
parent
7f09e45c08
commit
fd67bb797e
@ -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]);
|
||||
|
||||
@ -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++) {
|
||||
|
||||
|
||||
@ -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++) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user