X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Fchain%2Ftransaction.rs;h=ce449a4102c31498232874498c3e6cced2da8c20;hb=c7a4949a25aed0e10bf0d65e9a5918eea5e22615;hp=502eb895b2683e4ad3b7fa5bc34f367111781ede;hpb=3c93967cd203a4656f92d9272a0e30fd7b7c18bf;p=rust-lightning diff --git a/lightning/src/chain/transaction.rs b/lightning/src/chain/transaction.rs index 502eb895..ce449a41 100644 --- a/lightning/src/chain/transaction.rs +++ b/lightning/src/chain/transaction.rs @@ -66,7 +66,9 @@ impl OutPoint { } /// Converts this OutPoint into the OutPoint field as used by rust-bitcoin - /// (C-not exported) as the same type is used universally in the C bindings for all outpoints + /// + /// This is not exported to bindings users as the same type is used universally in the C bindings + /// for all outpoints pub fn into_bitcoin_outpoint(self) -> BitcoinOutPoint { BitcoinOutPoint { txid: self.txid, @@ -75,11 +77,11 @@ impl OutPoint { } } -impl_writeable!(OutPoint, 0, { txid, index }); +impl_writeable!(OutPoint, { txid, index }); #[cfg(test)] mod tests { - use chain::transaction::OutPoint; + use crate::chain::transaction::OutPoint; use bitcoin::blockdata::transaction::Transaction; use bitcoin::consensus::encode;