We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef990fa commit 971c224Copy full SHA for 971c224
src/event.rs
@@ -270,6 +270,7 @@ where
270
// channel.
271
let confirmation_target = ConfirmationTarget::Normal;
272
273
+ // We set nLockTime to the current height to discourage fee sniping.
274
let cur_height = self.channel_manager.current_best_block().height();
275
let locktime = LockTime::from_height(cur_height).unwrap_or(LockTime::ZERO);
276
@@ -574,6 +575,7 @@ where
574
575
Some(locktime),
576
&Secp256k1::new(),
577
);
578
+
579
match res {
580
Ok(Some(spending_tx)) => self.wallet.broadcast_transactions(&[&spending_tx]),
581
Ok(None) => {
0 commit comments