]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Recommend funding_tx to apply anti-fee sniping
authorAntoine Riard <dev@ariard.me>
Thu, 9 Jun 2022 21:40:42 +0000 (17:40 -0400)
committerAntoine Riard <dev@ariard.me>
Tue, 14 Jun 2022 19:57:21 +0000 (15:57 -0400)
lightning/src/ln/channelmanager.rs

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