Skip to content

Commit

Permalink
Use tags for boost multiindex
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiySW committed Dec 21, 2019
1 parent 570cdc5 commit 59e277d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nano/node/active_transactions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1128,10 +1128,10 @@ nano::gap_information nano::active_transactions::find_inactive_votes_cache (nano

void nano::active_transactions::erase_inactive_votes_cache (nano::block_hash const & hash_a)
{
auto existing (inactive_votes_cache.get<1> ().find (hash_a));
if (existing != inactive_votes_cache.get<1> ().end ())
auto existing (inactive_votes_cache.get<nano::gap_cache::tag_hash> ().find (hash_a));
if (existing != inactive_votes_cache.get<nano::gap_cache::tag_hash> ().end ())
{
inactive_votes_cache.get<1> ().erase (existing);
inactive_votes_cache.get<nano::gap_cache::tag_hash> ().erase (existing);
}
}

Expand Down

0 comments on commit 59e277d

Please sign in to comment.