pub struct CommitDiff {
pub version: u8,
pub channel_id: Hash256,
pub local_commitment_number_at_send: u64,
pub remote_commitment_number_at_send: u64,
pub commit_tx: Transaction,
pub replay_updates: Vec<TlcReplayUpdate>,
pub commitment_signed_template: Option<CommitmentSignedTemplate>,
pub replay_order_hint: Option<ReplayOrderHint>,
pub created_at_ms: u64,
}Expand description
Everything needed to resend a pending CommitmentSigned after reconnect.
Fields§
§version: u8Structure version for backward/forward compatibility.
channel_id: Hash256Channel that owns this diff.
local_commitment_number_at_send: u64Local/remote commitment numbers when this commitment was sent.
remote_commitment_number_at_send: u64§commit_tx: TransactionThe commitment transaction (used for resign, not rebuilt).
replay_updates: Vec<TlcReplayUpdate>TLC updates included in this commitment (for resending).
commitment_signed_template: Option<CommitmentSignedTemplate>Optional template fields for CommitmentSigned replay.
replay_order_hint: Option<ReplayOrderHint>Optional replay ordering hint when both revoke+commit are owed.
created_at_ms: u64Creation timestamp.
Trait Implementations§
Source§impl Clone for CommitDiff
impl Clone for CommitDiff
Source§fn clone(&self) -> CommitDiff
fn clone(&self) -> CommitDiff
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommitDiff
impl Debug for CommitDiff
Source§impl<'de> Deserialize<'de> for CommitDiff
impl<'de> Deserialize<'de> for CommitDiff
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
Auto Trait Implementations§
impl !Freeze for CommitDiff
impl RefUnwindSafe for CommitDiff
impl Send for CommitDiff
impl Sync for CommitDiff
impl Unpin for CommitDiff
impl UnsafeUnpin for CommitDiff
impl UnwindSafe for CommitDiff
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
Mutably borrows from an owned value. Read more