]> git.bitcoin.ninja Git - ldk-java/commitdiff
[Java] Update ChannelManagerConstructor to latest upstream API
authorMatt Corallo <git@bluematt.me>
Fri, 28 Oct 2022 03:27:37 +0000 (03:27 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 28 Oct 2022 19:34:11 +0000 (19:34 +0000)
src/main/java/org/ldk/batteries/ChannelManagerConstructor.java

index dc1cee48b25bd3e07aaea0658f420804509a0edd..07994d5f98a53fb7866d8037a522442e3e1580e1 100644 (file)
@@ -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;