Skip to content

Commit

Permalink
Merge pull request #154 from orbitalturtle/intro-announced-peers
Browse files Browse the repository at this point in the history
offers: don't include unadvertised nodes as introduction node candidates
  • Loading branch information
orbitalturtle authored Aug 28, 2024
2 parents 210cfdf + 5acb051 commit 83e1c90
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 45 deletions.
9 changes: 6 additions & 3 deletions src/lnd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ use std::fmt::Display;
use std::path::PathBuf;
use std::{fmt, fs};
use tonic_lnd::lnrpc::{
GetInfoResponse, HtlcAttempt, LightningNode, ListPeersResponse, Payment, QueryRoutesResponse,
Route,
GetInfoResponse, HtlcAttempt, ListPeersResponse, NodeInfo, Payment, QueryRoutesResponse, Route,
};
use tonic_lnd::signrpc::{KeyDescriptor, KeyLocator};
use tonic_lnd::tonic::Status;
Expand Down Expand Up @@ -404,7 +403,11 @@ pub trait MessageSigner {
pub trait PeerConnector {
async fn list_peers(&mut self) -> Result<ListPeersResponse, Status>;
async fn connect_peer(&mut self, node_id: String, addr: String) -> Result<(), Status>;
async fn get_node_info(&mut self, pub_key: String) -> Result<Option<LightningNode>, Status>;
async fn get_node_info(
&mut self,
pub_key: String,
include_channels: bool,
) -> Result<NodeInfo, Status>;
}

/// InvoicePayer provides a layer of abstraction over the LND API for paying for a BOLT 12 invoice.
Expand Down
Loading

0 comments on commit 83e1c90

Please sign in to comment.