mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
permute_tx: don't save permutation map.
We no longer need it anywhere. This simplifies things to the point where we might as well just not include dust outputs as we go, rather than explicitly removing them, which gets rid of remove_dust.c as well. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -9,4 +9,8 @@ void remove_dust(struct bitcoin_tx *tx, int *map);
|
||||
/* Less than this is dust. */
|
||||
#define DUST_THRESHOLD 546
|
||||
|
||||
static inline bool is_dust(u64 amount)
|
||||
{
|
||||
return amount < DUST_THRESHOLD;
|
||||
}
|
||||
#endif /* LIGHTNING_REMOVE_DUST_H */
|
||||
|
||||
Reference in New Issue
Block a user