Struct breez_sdk_core::lightning::ln::functional_test_utils::Node
pub struct Node<'chan_man, 'node_cfg, 'chan_mon_cfg>where
'node_cfg: 'chan_man,
'chan_mon_cfg: 'node_cfg,{Show 18 fields
pub chain_source: &'chan_mon_cfg TestChainSource,
pub tx_broadcaster: &'chan_mon_cfg TestBroadcaster,
pub fee_estimator: &'chan_mon_cfg TestFeeEstimator,
pub router: &'node_cfg TestRouter<'chan_mon_cfg>,
pub chain_monitor: &'node_cfg TestChainMonitor<'chan_mon_cfg>,
pub keys_manager: &'chan_mon_cfg TestKeysInterface,
pub node: &'chan_man ChannelManager<&'node_cfg TestChainMonitor<'chan_mon_cfg>, &'chan_mon_cfg TestBroadcaster, &'node_cfg TestKeysInterface, &'node_cfg TestKeysInterface, &'node_cfg TestKeysInterface, &'chan_mon_cfg TestFeeEstimator, &'node_cfg TestRouter<'chan_mon_cfg>, &'chan_mon_cfg TestLogger>,
pub network_graph: &'node_cfg NetworkGraph<&'chan_mon_cfg TestLogger>,
pub gossip_sync: P2PGossipSync<&'node_cfg NetworkGraph<&'chan_mon_cfg TestLogger>, &'chan_mon_cfg TestChainSource, &'chan_mon_cfg TestLogger>,
pub node_seed: [u8; 32],
pub network_payment_count: Rc<RefCell<u8>>,
pub network_chan_count: Rc<RefCell<u32>>,
pub logger: &'chan_mon_cfg TestLogger,
pub blocks: Arc<Mutex<Vec<(Block, u32)>>>,
pub connect_style: Rc<RefCell<ConnectStyle>>,
pub override_init_features: Rc<RefCell<Option<Features<InitContext>>>>,
pub wallet_source: Arc<TestWalletSource>,
pub bump_tx_handler: BumpTransactionEventHandler<&'chan_mon_cfg TestBroadcaster, Arc<Wallet<Arc<TestWalletSource>, &'chan_mon_cfg TestLogger>>, &'chan_mon_cfg TestKeysInterface, &'chan_mon_cfg TestLogger>,
}
Fields§
§chain_source: &'chan_mon_cfg TestChainSource
§tx_broadcaster: &'chan_mon_cfg TestBroadcaster
§fee_estimator: &'chan_mon_cfg TestFeeEstimator
§router: &'node_cfg TestRouter<'chan_mon_cfg>
§chain_monitor: &'node_cfg TestChainMonitor<'chan_mon_cfg>
§keys_manager: &'chan_mon_cfg TestKeysInterface
§node: &'chan_man ChannelManager<&'node_cfg TestChainMonitor<'chan_mon_cfg>, &'chan_mon_cfg TestBroadcaster, &'node_cfg TestKeysInterface, &'node_cfg TestKeysInterface, &'node_cfg TestKeysInterface, &'chan_mon_cfg TestFeeEstimator, &'node_cfg TestRouter<'chan_mon_cfg>, &'chan_mon_cfg TestLogger>
§network_graph: &'node_cfg NetworkGraph<&'chan_mon_cfg TestLogger>
§gossip_sync: P2PGossipSync<&'node_cfg NetworkGraph<&'chan_mon_cfg TestLogger>, &'chan_mon_cfg TestChainSource, &'chan_mon_cfg TestLogger>
§node_seed: [u8; 32]
§network_payment_count: Rc<RefCell<u8>>
§network_chan_count: Rc<RefCell<u32>>
§logger: &'chan_mon_cfg TestLogger
§blocks: Arc<Mutex<Vec<(Block, u32)>>>
§connect_style: Rc<RefCell<ConnectStyle>>
§override_init_features: Rc<RefCell<Option<Features<InitContext>>>>
§wallet_source: Arc<TestWalletSource>
§bump_tx_handler: BumpTransactionEventHandler<&'chan_mon_cfg TestBroadcaster, Arc<Wallet<Arc<TestWalletSource>, &'chan_mon_cfg TestLogger>>, &'chan_mon_cfg TestKeysInterface, &'chan_mon_cfg TestLogger>
Implementations§
§impl<'a, 'b, 'c> Node<'a, 'b, 'c>
impl<'a, 'b, 'c> Node<'a, 'b, 'c>
pub fn best_block_hash(&self) -> BlockHash
pub fn best_block_info(&self) -> (BlockHash, u32)
pub fn get_block_header(&self, height: u32) -> BlockHeader
Trait Implementations§
§impl<'a, 'b, 'c> NodeHolder for Node<'a, 'b, 'c>where
'b: 'a,
'c: 'b,
impl<'a, 'b, 'c> NodeHolder for Node<'a, 'b, 'c>where
'b: 'a,
'c: 'b,
type CM = ChannelManager<&'b TestChainMonitor<'c>, &'c TestBroadcaster, &'b TestKeysInterface, &'b TestKeysInterface, &'b TestKeysInterface, &'c TestFeeEstimator, &'b TestRouter<'c>, &'c TestLogger>
fn node( &self, ) -> &ChannelManager<&'b TestChainMonitor<'c>, &'c TestBroadcaster, &'b TestKeysInterface, &'b TestKeysInterface, &'b TestKeysInterface, &'c TestFeeEstimator, &'b TestRouter<'c>, &'c TestLogger>
fn chain_monitor(&self) -> Option<&TestChainMonitor<'_>>
impl<'a, 'b, 'c> RefUnwindSafe for Node<'a, 'b, 'c>
impl<'a, 'b, 'c> UnwindSafe for Node<'a, 'b, 'c>
Auto Trait Implementations§
impl<'chan_man, 'node_cfg, 'chan_mon_cfg> !Freeze for Node<'chan_man, 'node_cfg, 'chan_mon_cfg>
impl<'chan_man, 'node_cfg, 'chan_mon_cfg> !Send for Node<'chan_man, 'node_cfg, 'chan_mon_cfg>
impl<'chan_man, 'node_cfg, 'chan_mon_cfg> !Sync for Node<'chan_man, 'node_cfg, 'chan_mon_cfg>
impl<'chan_man, 'node_cfg, 'chan_mon_cfg> Unpin for Node<'chan_man, 'node_cfg, 'chan_mon_cfg>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request