From: valentinewallace Date: Wed, 18 Aug 2021 15:50:53 +0000 (-0400) Subject: Merge pull request #32 from lightningdevkit/2021-08-skip-change-check X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-sample;a=commitdiff_plain;h=18904eda1501a06d70af4c7f13d6f7a7dec4b581;hp=4acaa7ac8af7bc40bcddf38c9c471e65efb749c5 Merge pull request #32 from lightningdevkit/2021-08-skip-change-check Drop unused change output calculation --- 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;