+ /**
+ * Sends a timestamp filter for inbound gossip. This should be sent on each new connection to
+ * enable receiving gossip messages from the peer.
+ */
+ public final static class SendGossipTimestampFilter extends MessageSendEvent {
+ /**
+ * The node_id of this message recipient
+ */
+ public final byte[] node_id;
+ /**
+ * The gossip_timestamp_filter which should be sent.
+ */
+ public final org.ldk.structs.GossipTimestampFilter msg;
+ private SendGossipTimestampFilter(long ptr, bindings.LDKMessageSendEvent.SendGossipTimestampFilter obj) {
+ super(null, ptr);
+ this.node_id = obj.node_id;
+ long msg = obj.msg;
+ org.ldk.structs.GossipTimestampFilter msg_hu_conv = null; if (msg < 0 || msg > 4096) { msg_hu_conv = new org.ldk.structs.GossipTimestampFilter(null, msg); }
+ if (msg_hu_conv != null) { msg_hu_conv.ptrs_to.add(this); };
+ this.msg = msg_hu_conv;
+ }
+ }
+ long clone_ptr() {
+ long ret = bindings.MessageSendEvent_clone_ptr(this.ptr);
+ Reference.reachabilityFence(this);
+ return ret;
+ }
+