mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2026-08-18 15:20:18 +00:00
fixed replayBundle
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
iota.node.protocol=http
|
||||
iota.node.host=node.iotawallet.info
|
||||
iota.node.port=14265
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
iota.node.protocol=http
|
||||
iota.node.host=node.iotawallet.info
|
||||
#iota.node.host=138.68.90.186
|
||||
#iota.node.host=192.168.11.2
|
||||
#iota.node.host=138.68.90.186
|
||||
iota.node.port=14265
|
||||
|
||||
@@ -765,6 +765,7 @@ public class IotaAPI extends IotaAPICore {
|
||||
bundleTrytes.add(trx.toTrytes());
|
||||
}
|
||||
|
||||
Collections.reverse(bundleTrytes);
|
||||
List<Transaction> trxs = sendTrytes(bundleTrytes.toArray(new String[bundleTrytes.size()]), depth, minWeightMagnitude);
|
||||
|
||||
Boolean[] successful = new Boolean[trxs.size()];
|
||||
|
||||
@@ -198,7 +198,7 @@ public class IotaAPITest {
|
||||
@Ignore
|
||||
@Test
|
||||
public void shouldReplayBundle() throws InvalidTrytesException, InvalidBundleException, InvalidSignatureException, ArgumentException {
|
||||
ReplayBundleResponse rbr = iotaClient.replayBundle(TEST_TRYTES, 9, MWM);
|
||||
ReplayBundleResponse rbr = iotaClient.replayBundle(TEST_HASH, 9, MWM);
|
||||
assertThat(rbr, IsNull.notNullValue());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user