From ecd3b31c41934796f530c74e72f1632ec8b66da6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 28 Oct 2022 03:27:37 +0000 Subject: [PATCH] [Java] Update ChannelManagerConstructor to latest upstream API --- .../java/org/ldk/batteries/ChannelManagerConstructor.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java index dc1cee48..07994d5f 100644 --- a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java +++ b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java @@ -132,7 +132,7 @@ public class ChannelManagerConstructor { graph_msg_handler.as_RoutingMessageHandler(), ignoring_handler.as_OnionMessageHandler(), ((Result_SecretKeyNoneZ.Result_SecretKeyNoneZ_OK)node_secret).res, - System.currentTimeMillis() / 1000, + (int)(System.currentTimeMillis() / 1000), random_data, logger, ignoring_handler.as_CustomMessageHandler()); } else { this.graph_msg_handler = null; @@ -140,7 +140,7 @@ public class ChannelManagerConstructor { ignoring_handler.as_RoutingMessageHandler(), ignoring_handler.as_OnionMessageHandler(), ((Result_SecretKeyNoneZ.Result_SecretKeyNoneZ_OK)node_secret).res, - System.currentTimeMillis() / 1000, + (int)(System.currentTimeMillis() / 1000), random_data, logger, ignoring_handler.as_CustomMessageHandler()); } NioPeerHandler nio_peer_handler = null; @@ -184,7 +184,7 @@ public class ChannelManagerConstructor { graph_msg_handler.as_RoutingMessageHandler(), ignoring_handler.as_OnionMessageHandler(), ((Result_SecretKeyNoneZ.Result_SecretKeyNoneZ_OK)node_secret).res, - System.currentTimeMillis() / 1000, + (int)(System.currentTimeMillis() / 1000), random_data, logger, ignoring_handler.as_CustomMessageHandler()); } else { this.graph_msg_handler = null; @@ -192,7 +192,7 @@ public class ChannelManagerConstructor { ignoring_handler.as_RoutingMessageHandler(), ignoring_handler.as_OnionMessageHandler(), ((Result_SecretKeyNoneZ.Result_SecretKeyNoneZ_OK)node_secret).res, - System.currentTimeMillis() / 1000, + (int)(System.currentTimeMillis() / 1000), random_data, logger, ignoring_handler.as_CustomMessageHandler()); } NioPeerHandler nio_peer_handler = null; -- 2.39.5