fixed replayBundle

This commit is contained in:
pinpong 2017-09-26 00:19:18 +02:00
parent bc37ab7d47
commit fdeb8db51e
4 changed files with 6 additions and 8 deletions

4
node_config.properties Normal file
View File

@ -0,0 +1,4 @@
iota.node.protocol=http
iota.node.host=node.iotawallet.info
iota.node.port=14265

View File

@ -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

View File

@ -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()];

View File

@ -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());
}