mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 09:34:24 +01:00
initial_commit_tx, commit_tx: add anchor outputs if needed.
This also means we subtract 660 satoshis more everywhere we subtract the base fee (except for mutual close, where the base fee is still used). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -132,4 +132,8 @@ u8 *to_self_wscript(const tal_t *ctx,
|
||||
|
||||
/* To-other is simply: scriptpubkey_p2wpkh(tx, keyset->other_payment_key) */
|
||||
|
||||
/* If we determine we need one, append this anchor output */
|
||||
void tx_add_anchor_output(struct bitcoin_tx *tx,
|
||||
const struct pubkey *funding_key);
|
||||
|
||||
#endif /* LIGHTNING_COMMON_INITIAL_COMMIT_TX_H */
|
||||
|
||||
Reference in New Issue
Block a user