mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 16:44:22 +01:00
remove_dust: don't ever create dust outputs.
This behavior will be specified in BOLT #3. Closes: #14 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
12
remove_dust.h
Normal file
12
remove_dust.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#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
|
||||
|
||||
#endif /* LIGHTNING_REMOVE_DUST_H */
|
||||
Reference in New Issue
Block a user