@@ -43,7 +43,8 @@ KeysInterface manual_keysif(KeysInterface underlying_if) {
4343 @ Override
4444 public Sign get_channel_signer (boolean inbound , long channel_value_satoshis ) {
4545 Sign underlying_ck = underlying_if .get_channel_signer (inbound , channel_value_satoshis );
46- Sign .SignInterface si = new Sign .SignInterface () {
46+ // TODO: Expose the underlying signer from a Sign
47+ /*BaseSign.BaseSignInterface si = new BaseSign.BaseSignInterface() {
4748 @Override
4849 public byte[] get_per_commitment_point(long idx) {
4950 return underlying_ck.get_per_commitment_point(idx);
@@ -98,12 +99,13 @@ public void ready_channel(ChannelTransactionParameters params) {
9899 public byte[] write() {
99100 return underlying_ck.write();
100101 }
101- };
102- Sign resp = Sign .new_impl (si , underlying_ck .get_pubkeys ());
103- must_free_objs .add (new WeakReference <>(si ));
104- must_free_objs .add (new WeakReference <>(resp ));
102+ };*/
103+ // Sign resp = Sign.new_impl(si, underlying_ck.get_pubkeys());
104+ // must_free_objs.add(new WeakReference<>(si));
105+ // must_free_objs.add(new WeakReference<>(resp));
105106 must_free_objs .add (new WeakReference <>(underlying_ck ));
106- return resp ;
107+ //return resp;
108+ return underlying_ck ;
107109 }
108110
109111 @ Override
@@ -270,7 +272,7 @@ private void bind_nio() {
270272 }
271273 Peer (byte seed ) {
272274 this (null , seed );
273- 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 ], 0 );
275+ 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 , BestBlock . constructor_new ( new byte [32 ], 0 ) );
274276 this .node_id = chan_manager .get_our_node_id ();
275277 this .chan_manager_events = chan_manager .as_EventsProvider ();
276278
@@ -522,7 +524,7 @@ TestState do_test_message_handler() throws InterruptedException {
522524 funding .getInputs ().get (0 ).setWitness (new TransactionWitness (2 )); // Make sure we don't complain about lack of witness
523525 funding .getInput (0 ).getWitness ().setPush (0 , new byte []{0x1 });
524526 funding .addOutput (Coin .SATOSHI .multiply (10000 ), new Script (funding_spk ));
525- Result_NoneAPIErrorZ funding_res = peer1 .chan_manager .funding_transaction_generated (chan_id , funding .bitcoinSerialize (), ( short ) 0 );
527+ Result_NoneAPIErrorZ funding_res = peer1 .chan_manager .funding_transaction_generated (chan_id , funding .bitcoinSerialize ());
526528 assert funding_res instanceof Result_NoneAPIErrorZ .Result_NoneAPIErrorZ_OK ;
527529 wait_events_processed (peer1 , peer2 );
528530
0 commit comments