From 3dab242f0808d6edec66f494b7f2b2ad4d5005e0 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 23 Apr 2023 16:54:53 +0000 Subject: [PATCH] Fix unused `Secp256k1` context in monitor_tests --- lightning/src/ln/monitor_tests.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.39.5