X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fchain%2Fchaininterface.rs;h=ef09cbbaaa0f79eb89942860608a315772ef88f3;hb=ab10b050754e4e51b57cd87da8ff588d36565dd0;hp=7b5e0d0749832a7cf2ffcfcd560156d085fd53f7;hpb=b14baa03ab20911489bee50688785f2631f0d0f1;p=rust-lightning diff --git a/src/chain/chaininterface.rs b/src/chain/chaininterface.rs index 7b5e0d07..ef09cbba 100644 --- a/src/chain/chaininterface.rs +++ b/src/chain/chaininterface.rs @@ -2,7 +2,7 @@ //! blockchain. //! //! Includes traits for monitoring and receiving notifications of new blocks and block -//! disconnections, transactio broadcasting, and feerate information requests. +//! disconnections, transaction broadcasting, and feerate information requests. use bitcoin::blockdata::block::{Block, BlockHeader}; use bitcoin::blockdata::transaction::Transaction; @@ -143,7 +143,7 @@ impl ChainWatchedUtil { } #[cfg(not(test))] { - let _tx_unused = txid; // Its used in cfg(test), though + let _tx_unused = txid; // It's used in cfg(test), though self.watched_txn.insert(script_pub_key.clone()) } } @@ -155,7 +155,7 @@ impl ChainWatchedUtil { self.watched_outpoints.insert(outpoint) } - /// Sets us to match all transactions, returning true if this is a new setting anf false if + /// Sets us to match all transactions, returning true if this is a new setting and false if /// we'd already been set to match everything. pub fn watch_all(&mut self) -> bool { if self.watch_all { return false; }