From: Matt Corallo Date: Sun, 23 Apr 2023 16:54:53 +0000 (+0000) Subject: Fix unused `Secp256k1` context in monitor_tests X-Git-Tag: v0.0.115~3^2~2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=3dab242f0808d6edec66f494b7f2b2ad4d5005e0;p=rust-lightning Fix unused `Secp256k1` context in monitor_tests --- diff --git a/lightning/src/ln/monitor_tests.rs b/lightning/src/ln/monitor_tests.rs index b3f827716..b20a2e575 100644 --- a/lightning/src/ln/monitor_tests.rs +++ b/lightning/src/ln/monitor_tests.rs @@ -1784,7 +1784,6 @@ fn do_test_monitor_rebroadcast_pending_claims(anchors: bool) { if anchors { assert!(cfg!(anchors)); } - let secp = Secp256k1::new(); let mut chanmon_cfgs = create_chanmon_cfgs(2); let node_cfgs = create_node_cfgs(2, &chanmon_cfgs); let mut config = test_default_channel_config(); @@ -1838,6 +1837,7 @@ fn do_test_monitor_rebroadcast_pending_claims(anchors: bool) { feerate = if let Event::BumpTransaction(BumpTransactionEvent::HTLCResolution { target_feerate_sat_per_1000_weight, mut htlc_descriptors, tx_lock_time, }) = events.pop().unwrap() { + let secp = Secp256k1::new(); assert_eq!(htlc_descriptors.len(), 1); let descriptor = htlc_descriptors.pop().unwrap(); assert_eq!(descriptor.commitment_txid, commitment_txn[0].txid());