Trait lnp::extension::ChannelExtension [−][src]
pub trait ChannelExtension: Extension {
fn channel_state(&self) -> Box<dyn State>;
fn apply(&mut self, tx_graph: &mut TxGraph) -> Result<(), Error>;
}
Required methods
fn channel_state(&self) -> Box<dyn State>
fn channel_state(&self) -> Box<dyn State>
Returns channel state for persistence & backups.
These are channel-specific data generated from channel operations, including client-validated data
Implementors
Channel is the extension to itself :) so it receives the same input as any other extension and just forwards it to them