mirror of
https://github.com/gosticks/iota.lib.java.git
synced 2025-10-16 11:45:37 +00:00
fixed replayBundle
This commit is contained in:
parent
bc37ab7d47
commit
fdeb8db51e
4
node_config.properties
Normal file
4
node_config.properties
Normal file
@ -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());
|
bundleTrytes.add(trx.toTrytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Collections.reverse(bundleTrytes);
|
||||||
List<Transaction> trxs = sendTrytes(bundleTrytes.toArray(new String[bundleTrytes.size()]), depth, minWeightMagnitude);
|
List<Transaction> trxs = sendTrytes(bundleTrytes.toArray(new String[bundleTrytes.size()]), depth, minWeightMagnitude);
|
||||||
|
|
||||||
Boolean[] successful = new Boolean[trxs.size()];
|
Boolean[] successful = new Boolean[trxs.size()];
|
||||||
|
|||||||
@ -198,7 +198,7 @@ public class IotaAPITest {
|
|||||||
@Ignore
|
@Ignore
|
||||||
@Test
|
@Test
|
||||||
public void shouldReplayBundle() throws InvalidTrytesException, InvalidBundleException, InvalidSignatureException, ArgumentException {
|
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());
|
assertThat(rbr, IsNull.notNullValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user