From 6ed64cdd6f81d4ab65f37755fcaa5325ca61425f Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 9 Mar 2021 23:22:58 -0500 Subject: [PATCH] Add comment noting duplicate load_outputs_to_watch calls --- src/main/java/org/ldk/batteries/ChannelManagerConstructor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java index 4310af1c..0d2055b2 100644 --- a/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java +++ b/src/main/java/org/ldk/batteries/ChannelManagerConstructor.java @@ -40,6 +40,8 @@ public class ChannelManagerConstructor { * Deserializes a channel manager and a set of channel monitors from the given serialized copies and interface implementations * * @param filter If provided, the outputs which were previously registered to be monitored for will be loaded into the filter. + * Note that if the provided Watch is a ChainWatch and has an associated filter, the previously registered + * outputs will be loaded when chain_sync_completed is called. */ public ChannelManagerConstructor(byte[] channel_manager_serialized, byte[][] channel_monitors_serialized, KeysInterface keys_interface, FeeEstimator fee_estimator, Watch chain_watch, @Nullable Filter filter, -- 2.39.5