Skip to content

Commit a8d80c6

Browse files
committed
Update tests to latest upstream
1 parent 36e18c1 commit a8d80c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/org/ldk/batteries/ChannelManagerConstructor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ public ChannelManagerConstructor(LDKNetwork network, UserConfig config, byte[] c
7171
channel_monitors = new TwoTuple[0];
7272
channel_manager_latest_block_hash = null;
7373
this.chain_watch = chain_watch;
74-
// Note that current_blockchain_tip_hash will be required in a future version but is currently unused.
75-
channel_manager = ChannelManager.constructor_new(network, fee_estimator, chain_watch, tx_broadcaster, logger, keys_interface, config, current_blockchain_tip_height);
74+
channel_manager = ChannelManager.constructor_new(fee_estimator, chain_watch, tx_broadcaster, logger, keys_interface, config, network, current_blockchain_tip_hash, current_blockchain_tip_height);
7675
}
7776

7877
/**

src/test/java/org/ldk/HumanObjectPeerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ private void bind_nio() {
249249
}
250250
Peer(byte seed) {
251251
this(null, seed);
252-
this.chan_manager = ChannelManager.constructor_new(LDKNetwork.LDKNetwork_Bitcoin, FeeEstimator.new_impl(confirmation_target -> 0), chain_watch, tx_broadcaster, logger, this.keys_interface, UserConfig.constructor_default(), 1);
252+
this.chan_manager = ChannelManager.constructor_new(FeeEstimator.new_impl(confirmation_target -> 0), chain_watch, tx_broadcaster, logger, this.keys_interface, UserConfig.constructor_default(), LDKNetwork.LDKNetwork_Bitcoin, new byte[32], 1);
253253
this.node_id = chan_manager.get_our_node_id();
254254
this.chan_manager_events = chan_manager.as_EventsProvider();
255255

src/test/java/org/ldk/PeerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ public long[] release_pending_monitor_events() {
9393
this.keys = bindings.KeysManager_new(key_seed, System.currentTimeMillis() / 1000, (int)(System.currentTimeMillis() * 1000) & 0xffffffff);
9494
this.keys_interface = bindings.KeysManager_as_KeysInterface(keys);
9595
this.config = bindings.UserConfig_default();
96-
this.chan_manager = bindings.ChannelManager_new(LDKNetwork.LDKNetwork_Bitcoin, fee_estimator, chain_monitor, tx_broadcaster, logger, keys_interface, config, 1);
96+
long params = bindings.ChainParameters_new(LDKNetwork.LDKNetwork_Bitcoin, new byte[32], 1);
97+
this.chan_manager = bindings.ChannelManager_new(fee_estimator, chain_monitor, tx_broadcaster, logger, keys_interface, config, params);
9798
this.node_id = bindings.ChannelManager_get_our_node_id(chan_manager);
9899
this.chan_manager_events = bindings.ChannelManager_as_EventsProvider(chan_manager);
99100

0 commit comments

Comments
 (0)