Skip to content

Commit f99fa81

Browse files
author
Antoine Riard
committed
Recommend funding_tx to apply anti-fee sniping
1 parent 8bc31f1 commit f99fa81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channelmanager.rs

+5
Original file line numberDiff line numberDiff line change
@@ -2801,6 +2801,11 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
28012801
/// not currently support replacing a funding transaction on an existing channel. Instead,
28022802
/// create a new channel with a conflicting funding transaction.
28032803
///
2804+
/// Note to keep the miner incentives aligned in moving the blockchain forward, we recommend
2805+
/// the wallet software generating the funding transaction to apply anti-fee sniping as
2806+
/// implemented by Bitcoin Core wallet. See <https://bitcoinops.org/en/topics/fee-sniping/>
2807+
/// for more details.
2808+
///
28042809
/// [`Event::FundingGenerationReady`]: crate::util::events::Event::FundingGenerationReady
28052810
/// [`Event::ChannelClosed`]: crate::util::events::Event::ChannelClosed
28062811
pub fn funding_transaction_generated(&self, temporary_channel_id: &[u8; 32], counterparty_node_id: &PublicKey, funding_transaction: Transaction) -> Result<(), APIError> {

0 commit comments

Comments
 (0)