pub enum ChainSource {
Esplora(String),
Electrum(String),
BitcoinRpc(BitcoinRpcConfig),
}Expand description
Source of blockchain data for the Lightning node
Specifies how the node should connect to the Bitcoin network to retrieve blockchain information and broadcast transactions.
Variants§
Esplora(String)
Use an Esplora server for blockchain data
Contains the URL of the Esplora server endpoint
Electrum(String)
Use an Electrum server for blockchain data
Contains the URL of the Electrum server endpoint
BitcoinRpc(BitcoinRpcConfig)
Use Bitcoin Core RPC for blockchain data
Contains the configuration for connecting to Bitcoin Core
Trait Implementations§
Source§impl Clone for ChainSource
impl Clone for ChainSource
Auto Trait Implementations§
impl Freeze for ChainSource
impl RefUnwindSafe for ChainSource
impl Send for ChainSource
impl Sync for ChainSource
impl Unpin for ChainSource
impl UnsafeUnpin for ChainSource
impl UnwindSafe for ChainSource
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