clean some build warnings ()

* clean some build warnings

* undo the warning suppress for aggsig
This commit is contained in:
Gary Yu 2018-07-27 22:16:14 +08:00 committed by Yeastplume
parent a053790ee6
commit 61506a8064
2 changed files with 6 additions and 6 deletions
chain/src
wallet/src

View file

@ -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");

View file

@ -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"))?;