]> git.bitcoin.ninja Git - ldk-java/commitdiff
Update API usages after bindings update
authorGalder Zamarreño <galder@redhat.com>
Thu, 18 Mar 2021 07:06:54 +0000 (08:06 +0100)
committerGalder Zamarreño <galder@redhat.com>
Thu, 18 Mar 2021 07:06:54 +0000 (08:06 +0100)
src/main/java/org/ldk/batteries/NioPeerHandler.java
src/test/java/org/ldk/HumanObjectPeerTest.java
src/test/java/org/ldk/PeerTest.java

index a77f1f0f49bb8cb4152d284b09f05c6b0f068116..277405e8c99eb667644bac749d4b864635f8ebf3 100644 (file)
@@ -173,7 +173,7 @@ public class NioPeerHandler {
                     }
                 }
                 if (lastTimerTick < System.currentTimeMillis() - 30 * 1000) {
-                    peer_manager.timer_tick_occured();
+                    peer_manager.timer_tick_occurred();
                     lastTimerTick = System.currentTimeMillis();
                 }
                 peer_manager.process_events();
index a8d439ec69c6d210901df599a686e5c635a80e40..cc67cfe877005cc9f75d7ee87a08293c509e98bf 100644 (file)
@@ -384,7 +384,7 @@ class HumanObjectPeerTestInstance {
         Route get_route(byte[] dest_node, ChannelDetails[] our_chans) {
             try (LockedNetworkGraph netgraph = this.router.read_locked_graph()) {
                 NetworkGraph graph = netgraph.graph();
-                long res = bindings.get_route(this.node_id, graph._test_only_get_ptr(), dest_node, new long[]{our_chans[0]._test_only_get_ptr()},
+                long res = bindings.get_route(this.node_id, graph._test_only_get_ptr(), dest_node, 0L, new long[]{our_chans[0]._test_only_get_ptr()},
                         new long[0], 1000, 42, this.logger._test_only_get_ptr());
                 assert bindings.LDKCResult_RouteLightningErrorZ_result_ok(res);
                 byte[] serialized_route = bindings.Route_write(bindings.LDKCResult_RouteLightningErrorZ_get_ok(res));
index bfb85754fd45330b9b84d535cae1fec9d2281cbf..bc83c95b64cb86cbdff7889c4724f0e3319837d8 100644 (file)
@@ -283,7 +283,7 @@ public class PeerTest {
         for (int i = 0; i < 32; i++) payment_preimage[i] = (byte) (i ^ 0x0f);
         byte[] payment_hash = Sha256Hash.hash(payment_preimage);
         long netgraph = bindings.NetGraphMsgHandler_read_locked_graph(peer1.router);
-        long route = bindings.get_route(peer1.node_id, bindings.LockedNetworkGraph_graph(netgraph), peer2.node_id, peer1_chans,
+        long route = bindings.get_route(peer1.node_id, bindings.LockedNetworkGraph_graph(netgraph), peer2.node_id, 0L, peer1_chans,
                 new long[0], 1000, 42, peer1.logger);
         for (long chan : peer1_chans) bindings.ChannelDetails_free(chan);
         assert bindings.LDKCResult_RouteLightningErrorZ_result_ok(route);