Skip to content

Commit 1890e80

Browse files
authored
Merge pull request #3058 from benthecarman/deref-empty-nod-id-lookup
impl Deref for EmptyNodeIdLookUp
2 parents d3cd080 + bfff6fd commit 1890e80

File tree

1 file changed

+6
-0
lines changed
  • lightning/src/blinded_path

1 file changed

+6
-0
lines changed

lightning/src/blinded_path/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ pub(crate) mod message;
1414
pub(crate) mod utils;
1515

1616
use bitcoin::secp256k1::{self, PublicKey, Secp256k1, SecretKey};
17+
use core::ops::Deref;
1718

1819
use crate::ln::msgs::DecodeError;
1920
use crate::offers::invoice::BlindedPayInfo;
@@ -100,6 +101,11 @@ impl NodeIdLookUp for EmptyNodeIdLookUp {
100101
}
101102
}
102103

104+
impl Deref for EmptyNodeIdLookUp {
105+
type Target = EmptyNodeIdLookUp;
106+
fn deref(&self) -> &Self { self }
107+
}
108+
103109
/// An encrypted payload and node id corresponding to a hop in a payment or onion message path, to
104110
/// be encoded in the sender's onion packet. These hops cannot be identified by outside observers
105111
/// and thus can be used to hide the identity of the recipient.

0 commit comments

Comments
 (0)