File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,9 @@ pub(crate) const P2WPKH_WITNESS_WEIGHT: u64 = 1 /* num stack items */ +
141
141
pub ( crate ) const P2TR_KEY_PATH_WITNESS_WEIGHT : u64 = 1 /* witness items */
142
142
+ 1 /* schnorr sig len */ + 64 /* schnorr sig */ ;
143
143
144
- /// If a [`KeysManager`] is built with [`KeysManager::new`] with `v2_remote_key_derivation` set,
145
- /// the script which we receive funds to on-chain when our counterparty force-closes a channel is
146
- /// one of this many possible derivation paths.
144
+ /// If a [`KeysManager`] is built with [`KeysManager::new`] with `v2_remote_key_derivation` set
145
+ /// (and for all channels after they've been spliced), the script which we receive funds to on-chain
146
+ /// when our counterparty force-closes a channel is one of this many possible derivation paths.
147
147
///
148
148
/// Keeping this limited allows for scanning the chain to find lost funds if our state is destroyed,
149
149
/// while this being more than a handful provides some privacy by not constantly reusing the same
@@ -1451,6 +1451,8 @@ impl ChannelSigner for InMemorySigner {
1451
1451
fn new_pubkeys (
1452
1452
& self , splice_parent_funding_txid : Option < Txid > , secp_ctx : & Secp256k1 < secp256k1:: All > ,
1453
1453
) -> ChannelPublicKeys {
1454
+ // Because splices always break downgrades, we go ahead and always use the new derivation
1455
+ // here as its just much better.
1454
1456
let use_v2_derivation =
1455
1457
self . v2_remote_key_derivation || splice_parent_funding_txid. is_some ( ) ;
1456
1458
let payment_key =
You can’t perform that action at this time.
0 commit comments