]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Remove unused fetch in `lightning_invoice` tests.
authorMatt Corallo <git@bluematt.me>
Tue, 13 Dec 2022 01:03:18 +0000 (01:03 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Dec 2022 01:03:18 +0000 (01:03 +0000)
lightning-invoice/src/utils.rs

index da6812d020cebce58975fe7377cded63a83f30ef..1a077f09537b38b10e590033893eccd4419f06c1 100644 (file)
@@ -716,7 +716,6 @@ mod test {
                let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[None, None]);
                let nodes = create_network(2, &node_cfgs, &node_chanmgrs);
                let payment_hash = PaymentHash([0; 32]);
-               let payment_secret = &nodes[1].node.create_inbound_payment_for_hash(payment_hash, Some(10_000), 3600);
                let invoice = crate::utils::create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash(
                        &nodes[1].node, nodes[1].keys_manager, nodes[1].logger, Currency::BitcoinTestnet,
                        Some(10_000), "test".to_string(), Duration::from_secs(1234567), 3600,