X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=ldk-sample;a=blobdiff_plain;f=src%2Fsweep.rs;fp=src%2Fsweep.rs;h=87577df752424d59041844ff8080b1c9e8311ec1;hp=01cea9d32bbc7c042d4a7b457015b23a01409d4d;hb=aa1635c16624664ba2fde72c0f58da7437e50b74;hpb=7ef8932dc19e21ba2be0903d7a174d27de3f1989 diff --git a/src/sweep.rs b/src/sweep.rs index 01cea9d..87577df 100644 --- a/src/sweep.rs +++ b/src/sweep.rs @@ -109,8 +109,8 @@ pub(crate) async fn periodic_sweep( } let destination_address = bitcoind_client.get_new_address().await; let output_descriptors = &outputs.iter().map(|a| a).collect::>(); - let tx_feerate = - bitcoind_client.get_est_sat_per_1000_weight(ConfirmationTarget::Background); + let tx_feerate = bitcoind_client + .get_est_sat_per_1000_weight(ConfirmationTarget::ChannelCloseMinimum); // We set nLockTime to the current height to discourage fee sniping. // Occasionally randomly pick a nLockTime even further back, so