Skip to content

Commit 3dab242

Browse files
committed
Fix unused Secp256k1 context in monitor_tests
1 parent bc54441 commit 3dab242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/monitor_tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,6 @@ fn do_test_monitor_rebroadcast_pending_claims(anchors: bool) {
17841784
if anchors {
17851785
assert!(cfg!(anchors));
17861786
}
1787-
let secp = Secp256k1::new();
17881787
let mut chanmon_cfgs = create_chanmon_cfgs(2);
17891788
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
17901789
let mut config = test_default_channel_config();
@@ -1838,6 +1837,7 @@ fn do_test_monitor_rebroadcast_pending_claims(anchors: bool) {
18381837
feerate = if let Event::BumpTransaction(BumpTransactionEvent::HTLCResolution {
18391838
target_feerate_sat_per_1000_weight, mut htlc_descriptors, tx_lock_time,
18401839
}) = events.pop().unwrap() {
1840+
let secp = Secp256k1::new();
18411841
assert_eq!(htlc_descriptors.len(), 1);
18421842
let descriptor = htlc_descriptors.pop().unwrap();
18431843
assert_eq!(descriptor.commitment_txid, commitment_txn[0].txid());

0 commit comments

Comments
 (0)