Skip to content

Commit 84363be

Browse files
committed
Fix other warnings.
1 parent 1896d3f commit 84363be

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

lightning/src/chain/keysinterface.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,6 @@ impl ReadableArgs<SecretKey> for InMemorySigner {
982982
pub struct KeysManager {
983983
secp_ctx: Secp256k1<secp256k1::All>,
984984
node_secret: SecretKey,
985-
node_id: PublicKey,
986985
inbound_payment_key: KeyMaterial,
987986
destination_script: Script,
988987
shutdown_pubkey: PublicKey,
@@ -1050,7 +1049,6 @@ impl KeysManager {
10501049
let mut res = KeysManager {
10511050
secp_ctx,
10521051
node_secret,
1053-
node_id,
10541052
inbound_payment_key: KeyMaterial(inbound_pmt_key_bytes),
10551053

10561054
destination_script,
@@ -1338,8 +1336,7 @@ impl KeysInterface for KeysManager {
13381336
pub struct PhantomKeysManager {
13391337
inner: KeysManager,
13401338
inbound_payment_key: KeyMaterial,
1341-
phantom_secret: SecretKey,
1342-
phantom_node_id: PublicKey,
1339+
phantom_secret: SecretKey
13431340
}
13441341

13451342
impl EntropySource for PhantomKeysManager {
@@ -1414,8 +1411,7 @@ impl PhantomKeysManager {
14141411
Self {
14151412
inner,
14161413
inbound_payment_key: KeyMaterial(inbound_key),
1417-
phantom_secret,
1418-
phantom_node_id,
1414+
phantom_secret
14191415
}
14201416
}
14211417

lightning/src/util/test_utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ use bitcoin::blockdata::block::Block;
3535
use bitcoin::network::constants::Network;
3636
use bitcoin::hash_types::{BlockHash, Txid};
3737

38-
use bitcoin::secp256k1::{SecretKey, PublicKey, Secp256k1, ecdsa::Signature, Scalar, Signing};
39-
use bitcoin::secp256k1::ecdh::SharedSecret;
38+
use bitcoin::secp256k1::{SecretKey, PublicKey, Secp256k1, ecdsa::Signature, Signing};
4039
use bitcoin::secp256k1::ecdsa::RecoverableSignature;
4140

4241
use regex;
@@ -53,7 +52,6 @@ use crate::chain::keysinterface::{InMemorySigner, Recipient, KeyMaterial, Entrop
5352
#[cfg(feature = "std")]
5453
use std::time::{SystemTime, UNIX_EPOCH};
5554
use bitcoin::Sequence;
56-
use crate::ln::msgs::DecodeError;
5755

5856
pub struct TestVecWriter(pub Vec<u8>);
5957
impl Writer for TestVecWriter {

0 commit comments

Comments
 (0)