diff --git a/chain/src/txhashset.rs b/chain/src/txhashset.rs index d38d8316..e1bf38db 100644 --- a/chain/src/txhashset.rs +++ b/chain/src/txhashset.rs @@ -1023,11 +1023,11 @@ impl<'a> Extension<'a> { Ok(()) } - // Special handling to make sure the whole kernel set matches each of its - // roots in each block header, without truncation. We go back header by - // header, rewind and check each root. This fixes a potential weakness in - // fast sync where a reorg past the horizon could allow a whole rewrite of - // the kernel set. + /// Special handling to make sure the whole kernel set matches each of its + /// roots in each block header, without truncation. We go back header by + /// header, rewind and check each root. This fixes a potential weakness in + /// fast sync where a reorg past the horizon could allow a whole rewrite of + /// the kernel set. pub fn validate_kernel_history(&mut self, header: &BlockHeader) -> Result<(), Error> { assert!(self.rollback, "verified kernel history on writeable txhashset extension"); diff --git a/wallet/src/client.rs b/wallet/src/client.rs index cc6a098e..8be5433f 100644 --- a/wallet/src/client.rs +++ b/wallet/src/client.rs @@ -173,7 +173,7 @@ impl WalletClient for HTTPWalletClient { Ok(outputs) => for out in outputs { api_outputs.insert(out.commit.commit(), util::to_hex(out.commit.to_vec())); }, - Err(e) => { + Err(_) => { // if we got anything other than 200 back from server, don't attempt to refresh // the wallet data after return Err(libwallet::ErrorKind::ClientCallback("Error from server"))?;