X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning-c-bindings%2Fsrc%2Fbitcoin%2Fnetwork.rs;fp=lightning-c-bindings%2Fsrc%2Fbitcoin%2Fnetwork.rs;h=02052e8213c82cb046ccedbf434e786cc3b76e10;hb=d7aaec88584beeb1cece72259f68382f2a729440;hp=52cb2ce68a26dbdf81cccc50702568a9aa449722;hpb=635edc8b4e0df5526b5cc1c330b83e8df29b75d1;p=ldk-c-bindings diff --git a/lightning-c-bindings/src/bitcoin/network.rs b/lightning-c-bindings/src/bitcoin/network.rs index 52cb2ce..02052e8 100644 --- a/lightning-c-bindings/src/bitcoin/network.rs +++ b/lightning-c-bindings/src/bitcoin/network.rs @@ -1,10 +1,17 @@ +//! A C-mapped version fo bitcoin::network::constants::Network + use bitcoin::network::constants::Network as BitcoinNetwork; #[repr(C)] +/// An enum representing the possible Bitcoin or test networks which we can run on pub enum Network { + /// The main Bitcoin blockchain. Bitcoin, + /// The testnet3 blockchain. Testnet, + /// A local test blockchain. Regtest, + /// A blockchain on which blocks are signed instead of mined. Signet, }