pub struct NodeStatus {
pub is_running: bool,
pub is_listening: bool,
pub current_best_block: BestBlock,
pub latest_lightning_wallet_sync_timestamp: Option<u64>,
pub latest_onchain_wallet_sync_timestamp: Option<u64>,
pub latest_fee_rate_cache_update_timestamp: Option<u64>,
pub latest_rgs_snapshot_timestamp: Option<u64>,
pub latest_node_announcement_broadcast_timestamp: Option<u64>,
pub latest_channel_monitor_archival_height: Option<u32>,
}Expand description
Represents the status of the Node.
Fields§
§is_running: boolIndicates whether the Node is running.
is_listening: boolIndicates whether the Node is listening for incoming connections on the addresses
configured via Config::listening_addresses.
current_best_block: BestBlockThe best block to which our Lightning wallet is currently synced.
latest_lightning_wallet_sync_timestamp: Option<u64>The timestamp, in seconds since start of the UNIX epoch, when we last successfully synced our Lightning wallet to the chain tip.
Will be None if the wallet hasn’t been synced yet.
latest_onchain_wallet_sync_timestamp: Option<u64>The timestamp, in seconds since start of the UNIX epoch, when we last successfully synced our on-chain wallet to the chain tip.
Will be None if the wallet hasn’t been synced yet.
latest_fee_rate_cache_update_timestamp: Option<u64>The timestamp, in seconds since start of the UNIX epoch, when we last successfully update our fee rate cache.
Will be None if the cache hasn’t been updated yet.
latest_rgs_snapshot_timestamp: Option<u64>The timestamp, in seconds since start of the UNIX epoch, when the last rapid gossip sync (RGS) snapshot we successfully applied was generated.
Will be None if RGS isn’t configured or the snapshot hasn’t been updated yet.
latest_node_announcement_broadcast_timestamp: Option<u64>The timestamp, in seconds since start of the UNIX epoch, when we last broadcasted a node announcement.
Will be None if we have no public channels or we haven’t broadcasted yet.
latest_channel_monitor_archival_height: Option<u32>The block height when we last archived closed channel monitor data.
Will be None if we haven’t archived any monitors of closed channels yet.
Trait Implementations§
Source§impl Clone for NodeStatus
impl Clone for NodeStatus
Source§fn clone(&self) -> NodeStatus
fn clone(&self) -> NodeStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodeStatus
impl Debug for NodeStatus
Source§impl PartialEq for NodeStatus
impl PartialEq for NodeStatus
impl Eq for NodeStatus
impl StructuralPartialEq for NodeStatus
Auto Trait Implementations§
impl Freeze for NodeStatus
impl RefUnwindSafe for NodeStatus
impl Send for NodeStatus
impl Sync for NodeStatus
impl Unpin for NodeStatus
impl UnwindSafe for NodeStatus
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more