From e7e43cf9a5ba130ae76c6ab00e70eb569f3a21ad Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 29 Aug 2017 01:30:01 +0930 Subject: [PATCH] remove_dust: remove. Signed-off-by: Rusty Russell --- Makefile | 3 +-- remove_dust.h | 23 ----------------------- 2 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 remove_dust.h diff --git a/Makefile b/Makefile index 6c941c659..06d254263 100644 --- a/Makefile +++ b/Makefile @@ -174,8 +174,7 @@ BITCOIN_HEADERS := bitcoin/address.h \ bitcoin/varint.h CORE_TX_HEADERS := close_tx.h \ - permute_tx.h \ - remove_dust.h + permute_tx.h CORE_HEADERS := \ opt_bits.h \ diff --git a/remove_dust.h b/remove_dust.h deleted file mode 100644 index 47ada12e8..000000000 --- a/remove_dust.h +++ /dev/null @@ -1,23 +0,0 @@ -#ifndef LIGHTNING_REMOVE_DUST_H -#define LIGHTNING_REMOVE_DUST_H -#include "config.h" -#include "bitcoin/tx.h" - -/* Remove all dust outputs from tx */ -void remove_dust(struct bitcoin_tx *tx, int *map); - -/* Less than this is dust. */ -#define DUST_THRESHOLD 546 - -/** - * is_dust: is an output of this value considered dust? - * @satoshis: number of satoshis. - * - * Transactions with dust outputs will not be relayed by the bitcoin - * network. It's not an exact definition, unfortunately. - */ -static inline bool is_dust(u64 satoshis) -{ - return satoshis < DUST_THRESHOLD; -} -#endif /* LIGHTNING_REMOVE_DUST_H */