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

Returns channel state for persistence & backups.

These are channel-specific data generated from channel operations, including client-validated data

Applies state to the channel transaction graph

Implementors

Channel is the extension to itself :) so it receives the same input as any other extension and just forwards it to them