Add comment noting duplicate load_outputs_to_watch calls
authorMatt Corallo <git@bluematt.me>
Wed, 10 Mar 2021 04:22:58 +0000 (23:22 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 10 Mar 2021 04:56:33 +0000 (23:56 -0500)
src/main/java/org/ldk/batteries/ChannelManagerConstructor.java

index 4310af1cdc314f7c038def6befabca92d5b5a5a5..0d2055b21a860c478ee4fee2f93a150aeb0bb6b7 100644 (file)
@@ -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,