Skip to content

Fix compilation errors #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
liblightningjni.so
target
.idea
*.iml
__pycache__
2 changes: 1 addition & 1 deletion src/main/java/org/ldk/batteries/NioPeerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public NioPeerHandler(PeerManager manager) throws IOException {
}
}
if (lastTimerTick < System.currentTimeMillis() - 30 * 1000) {
peer_manager.timer_tick_occured();
peer_manager.timer_tick_occurred();
lastTimerTick = System.currentTimeMillis();
}
peer_manager.process_events();
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/ldk/HumanObjectPeerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ Event[] get_monitor_events() {
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));
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/ldk/PeerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public long send_data(byte[] data, boolean resume_read) {
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);
Expand Down