From 57a196d3ed39d6c5d309c02ffd949fcbc6203039 Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Thu, 16 Jan 2025 17:12:14 +0100 Subject: [PATCH] Remove the revokation output --- src/silentpayments.rs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/silentpayments.rs b/src/silentpayments.rs index c338bf6..8442578 100644 --- a/src/silentpayments.rs +++ b/src/silentpayments.rs @@ -30,15 +30,6 @@ pub fn create_transaction( .filter(|(outpoint, _)| !freezed_utxos.contains(outpoint)) .collect(); - // if we have a payload, it means we are notifying, so let's add a revokation output - if payload.is_some() { - recipients.push(Recipient { - address: sp_wallet.get_client().get_receiving_address(), - amount: DUST_THRESHOLD, - nb_outputs: 1, - }) - } - let sum_outputs = recipients .iter() .fold(Amount::from_sat(0), |acc, x| acc + x.amount);