Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix compilation
  • Loading branch information
svyatonik committed Jun 30, 2018
commit a2b08fd5e7f6ce21ccb0766f40fac9f764d32d9b
2 changes: 1 addition & 1 deletion substrate/client/db/src/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ impl<Block> LightBlockchainStorage<Block> for LightStorage<Block>
// prune authorities from 'ancient' blocks
let mut update_best_authorities = best_authorities.is_some();
if let Some(ancient_number) = number.checked_sub(AUTHORITIES_ENTRIES_TO_KEEP) {
let (_, clear_best_entry) = self.cache.authorities_at_cache().prune_entries(&mut transaction, As::sa(ancient_number))?.1;
let (_, clear_best_entry) = self.cache.authorities_at_cache().prune_entries(&mut transaction, As::sa(ancient_number))?;
if clear_best_entry {
update_best_authorities = true;
best_authorities = None;
Expand Down