diff --git a/src/chainstate/stacks/index/storage.rs b/src/chainstate/stacks/index/storage.rs index 0787b4213..3f86b3902 100644 --- a/src/chainstate/stacks/index/storage.rs +++ b/src/chainstate/stacks/index/storage.rs @@ -1324,6 +1324,8 @@ impl TrieFileStorage { tx.commit()?; debug!("Flush: identifier of {} is {}", flush_options, block_id); + + self.cur_block_id = None; } Ok(()) @@ -1358,6 +1360,8 @@ impl TrieFileStorage { .expect("Corruption: Failed to drop the extended trie"); } self.last_extended = None; + self.cur_block_id = None; + self.trie_ancestor_hash_bytes_cache = None; } } @@ -1373,6 +1377,8 @@ impl TrieFileStorage { tx.commit() .expect("Corruption: Failed to drop the extended trie"); self.last_extended = None; + self.cur_block_id = None; + self.trie_ancestor_hash_bytes_cache = None; } }