X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain.rs;h=9e82f8aa76f079235c8ca4ac87700bab4f77798f;hb=2bd0d81d407506d05901c3ac204fcbe3f8da34e9;hp=0229873380b6f06dfde5885dca4b4915ac2a6975;hpb=46c606e969b96dba83d65d607157feff272f8ee7;p=ldk-sample diff --git a/src/main.rs b/src/main.rs index 0229873..9e82f8a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -129,8 +129,6 @@ async fn handle_ldk_events( // Have your wallet put the inputs into the transaction such that the output is // satisfied. let funded_tx = bitcoind_client.fund_raw_transaction(raw_tx).await; - let change_output_position = funded_tx.changepos; - assert!(change_output_position == 0 || change_output_position == 1); // Sign the final funding transaction and broadcast it. let signed_tx = bitcoind_client.sign_raw_transaction_with_wallet(funded_tx.hex).await;