Struct lightning_signer::node::Heartbeat
source · pub struct Heartbeat {
pub chain_tip: BlockHash,
pub chain_height: u32,
pub chain_timestamp: u32,
pub current_timestamp: u32,
}
Expand description
A signer heartbeat message.
This includes information that determines if we think our view of the blockchain is stale or not.
Fields§
§chain_tip: BlockHash
the block hash of the blockchain tip
chain_height: u32
the height of the blockchain tip
chain_timestamp: u32
the block timestamp of the tip of the blockchain
current_timestamp: u32
the current time
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Heartbeat
impl<'de> Deserialize<'de> for Heartbeat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more