mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
daemons: use amount_msat/amount_sat in all internal wire transfers.
As a side-effect of using amount_msat in gossipd/routing.c, we explicitly handle overflows and don't need to pre-prune ridiculous-fee channels. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "config.h"
|
||||
#include <ccan/short_types/short_types.h>
|
||||
#include <ccan/tal/tal.h>
|
||||
#include <common/amount.h>
|
||||
|
||||
struct pubkey;
|
||||
|
||||
@@ -13,7 +14,8 @@ struct bitcoin_tx *create_close_tx(const tal_t *ctx,
|
||||
const u8 *their_script,
|
||||
const struct bitcoin_txid *anchor_txid,
|
||||
unsigned int anchor_index,
|
||||
u64 anchor_satoshis,
|
||||
uint64_t to_us, uint64_t to_them,
|
||||
uint64_t dust_limit);
|
||||
struct amount_sat funding,
|
||||
struct amount_sat to_us,
|
||||
struct amount_sat to_them,
|
||||
struct amount_sat dust_limit);
|
||||
#endif /* LIGHTNING_COMMON_CLOSE_TX_H */
|
||||
|
||||
Reference in New Issue
Block a user