Skip to content

Commit 548c5c6

Browse files
committed
Fix test vectors.
1 parent 832ced6 commit 548c5c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7990,7 +7990,7 @@ mod tests {
79907990
let counterparty_node_id = PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&[42; 32]).unwrap());
79917991
let mut config = UserConfig::default();
79927992
config.channel_handshake_config.announced_channel = false;
7993-
let mut chan = OutboundV1Channel::<InMemorySigner>::new(&LowerBoundedFeeEstimator::new(&feeest), &&keys_provider, &&keys_provider, counterparty_node_id, &channelmanager::provided_init_features(&config), 10_000_000, 0, 42, &config, 0, 42).unwrap(); // Nothing uses their network key in this test
7993+
let mut chan = OutboundV1Channel::<&Keys>::new(&LowerBoundedFeeEstimator::new(&feeest), &&keys_provider, &&keys_provider, counterparty_node_id, &channelmanager::provided_init_features(&config), 10_000_000, 0, 42, &config, 0, 42).unwrap(); // Nothing uses their network key in this test
79947994
chan.context.holder_dust_limit_satoshis = 546;
79957995
chan.context.counterparty_selected_channel_reserve_satoshis = Some(0); // Filled in in accept_channel
79967996

@@ -8023,10 +8023,10 @@ mod tests {
80238023
// We can't just use build_holder_transaction_keys here as the per_commitment_secret is not
80248024
// derived from a commitment_seed, so instead we copy it here and call
80258025
// build_commitment_transaction.
8026-
let delayed_payment_base = &chan.context.holder_signer.pubkeys().delayed_payment_basepoint;
8026+
let delayed_payment_base = &chan.context.holder_signer.as_ref().pubkeys().delayed_payment_basepoint;
80278027
let per_commitment_secret = SecretKey::from_slice(&hex::decode("1f1e1d1c1b1a191817161514131211100f0e0d0c0b0a09080706050403020100").unwrap()[..]).unwrap();
80288028
let per_commitment_point = PublicKey::from_secret_key(&secp_ctx, &per_commitment_secret);
8029-
let htlc_basepoint = &chan.context.holder_signer.pubkeys().htlc_basepoint;
8029+
let htlc_basepoint = &chan.context.holder_signer.as_ref().pubkeys().htlc_basepoint;
80308030
let keys = TxCreationKeys::derive_new(&secp_ctx, &per_commitment_point, delayed_payment_base, htlc_basepoint, &counterparty_pubkeys.revocation_basepoint, &counterparty_pubkeys.htlc_basepoint);
80318031

80328032
macro_rules! test_commitment {
@@ -8078,7 +8078,7 @@ mod tests {
80788078
commitment_tx.clone(),
80798079
counterparty_signature,
80808080
counterparty_htlc_sigs,
8081-
&chan.context.holder_signer.pubkeys().funding_pubkey,
8081+
&chan.context.holder_signer.as_ref().pubkeys().funding_pubkey,
80828082
chan.context.counterparty_funding_pubkey()
80838083
);
80848084
let (holder_sig, htlc_sigs) = signer.sign_holder_commitment_and_htlcs(&holder_commitment_tx, &secp_ctx).unwrap();

0 commit comments

Comments
 (0)