Fix transaction count after squash

This commit is contained in:
Sathish Ambley 2019-02-27 22:31:47 -08:00 committed by Grimes
parent dad1511484
commit 0f2226901d
1 changed files with 1 additions and 3 deletions

View File

@ -624,9 +624,7 @@ impl AccountsDB {
fn remove_parents(&self, fork: Fork) -> Vec<Fork> {
let mut info = self.fork_info.write().unwrap();
let fork_info = info.get_mut(&fork).unwrap();
let parents = fork_info.parents.split_off(0);
info.retain(|&f, _| !parents.contains(&f));
parents
fork_info.parents.split_off(0)
}
fn is_squashed(&self, fork: Fork) -> bool {