Skip to content

Commit

Permalink
sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkucharczyk committed Nov 28, 2024
1 parent 18ceac8 commit deb5c98
Showing 1 changed file with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -516,16 +516,13 @@ where
.unwrap_or_default();
});

//todo: duplicated code - we need to remove subtree from every view
// let active_views = self.active_views.read();
// let inactive_views = self.inactive_views.read();
// active_views
// .iter()
// .chain(inactive_views.iter())
// .filter(|(_, view)| view.is_imported(&xt_hash))
// .for_each(|(_, view)| {
// view.remove_subtree(xt_hash, replaced_with);
// });
//todo - merge with priorites:
// let removed from_pool = self.view_store.remove_transaction_subtree(
// worst_tx_hash,
// |listener, removed_tx_hash| { &mut Listener<<Block as Block>::Hash, …>, <Block as Block>::Hash
// listener.invalid(&removed_tx_hash, &tx_hash);
// },
// );

remove_from_pool
}
Expand Down

0 comments on commit deb5c98

Please sign in to comment.