[Java] Correctly set `gossip_sync` in `ChannelManagerConstructor`
authorMatt Corallo <git@bluematt.me>
Wed, 31 May 2023 23:44:31 +0000 (23:44 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 1 Jun 2023 20:23:10 +0000 (20:23 +0000)
commit32f9a53661edef495b11b2be5dce7115bb2b34d8
treeb7fb5f18ec24af1cab604b723e460a52f16e690f
parent0e1f0fbe3972a97b304ab19fdc7a644bf2aa5f44
[Java] Correctly set `gossip_sync` in `ChannelManagerConstructor`

If `use_p2p_graph_sync` is set, we need to set the `gossip_sync`
given to the `BackgroundProcessor` to `P2P`, rather than `None`.

We also add a regression test for this.
src/main/java/org/ldk/batteries/ChannelManagerConstructor.java
src/test/java/org/ldk/HumanObjectPeerTest.java