Remove the revokation output
This commit is contained in:
parent
b8a3042131
commit
57a196d3ed
@ -30,15 +30,6 @@ pub fn create_transaction(
|
|||||||
.filter(|(outpoint, _)| !freezed_utxos.contains(outpoint))
|
.filter(|(outpoint, _)| !freezed_utxos.contains(outpoint))
|
||||||
.collect();
|
.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
|
let sum_outputs = recipients
|
||||||
.iter()
|
.iter()
|
||||||
.fold(Amount::from_sat(0), |acc, x| acc + x.amount);
|
.fold(Amount::from_sat(0), |acc, x| acc + x.amount);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user