mirror of
https://github.com/mimblewimble/grin.git
synced 2025-04-30 14:21:14 +03:00
clean some build warnings (#1288)
* clean some build warnings * undo the warning suppress for aggsig
This commit is contained in:
parent
a053790ee6
commit
61506a8064
2 changed files with 6 additions and 6 deletions
|
@ -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");
|
||||
|
||||
|
|
|
@ -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"))?;
|
||||
|
|
Loading…
Add table
Reference in a new issue