mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Update docs to use the new deserialization requirements
This commit is contained in:
parent
7c8e740b6e
commit
8550bd43d3
2 changed files with 3 additions and 3 deletions
|
@ -620,7 +620,7 @@ impl Readable for ChannelMonitorUpdateStep {
|
|||
/// reloaded at deserialize-time. Thus, you must ensure that, when handling events, all events
|
||||
/// gotten are fully handled before re-serializing the new state.
|
||||
///
|
||||
/// Note that the deserializer is only implemented for (Sha256dHash, ChannelMonitor), which
|
||||
/// Note that the deserializer is only implemented for (Option<BlockHash>, ChannelMonitor), which
|
||||
/// tells you the last block hash which was block_connect()ed. You MUST rescan any blocks along
|
||||
/// the "reorg path" (ie disconnecting blocks until you find a common ancestor from both the
|
||||
/// returned block hash and the the current chain and then reconnecting blocks to get to the
|
||||
|
|
|
@ -380,7 +380,7 @@ pub type SimpleRefChannelManager<'a, 'b, 'c, 'd, 'e, M, T, F, L> = ChannelManage
|
|||
/// ChannelMonitors passed by reference to read(), those channels will be force-closed based on the
|
||||
/// ChannelMonitor state and no funds will be lost (mod on-chain transaction fees).
|
||||
///
|
||||
/// Note that the deserializer is only implemented for (Sha256dHash, ChannelManager), which
|
||||
/// Note that the deserializer is only implemented for (Option<BlockHash>, ChannelManager), which
|
||||
/// tells you the last block hash which was block_connect()ed. You MUST rescan any blocks along
|
||||
/// the "reorg path" (ie call block_disconnected() until you get to a common block and then call
|
||||
/// block_connected() to step towards your best block) upon deserialization before using the
|
||||
|
@ -3925,7 +3925,7 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> Writeable f
|
|||
/// At a high-level, the process for deserializing a ChannelManager and resuming normal operation
|
||||
/// is:
|
||||
/// 1) Deserialize all stored ChannelMonitors.
|
||||
/// 2) Deserialize the ChannelManager by filling in this struct and calling <(Sha256dHash,
|
||||
/// 2) Deserialize the ChannelManager by filling in this struct and calling <(Option<BlockHash>,
|
||||
/// ChannelManager)>::read(reader, args).
|
||||
/// This may result in closing some Channels if the ChannelMonitor is newer than the stored
|
||||
/// ChannelManager state to ensure no loss of funds. Thus, transactions may be broadcasted.
|
||||
|
|
Loading…
Add table
Reference in a new issue