From a5d6bcb825c7b494b5e86602e3a63d46bc367538 Mon Sep 17 00:00:00 2001 From: Vladislav Dobromyslov Date: Fri, 28 Jan 2022 02:58:20 -0400 Subject: [PATCH] #267 Use set (sorted by std::greater) instead of unordered_set for new_ids --- libraries/db/include/graphene/db/undo_database.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/db/include/graphene/db/undo_database.hpp b/libraries/db/include/graphene/db/undo_database.hpp index 4b727372..25040087 100644 --- a/libraries/db/include/graphene/db/undo_database.hpp +++ b/libraries/db/include/graphene/db/undo_database.hpp @@ -29,15 +29,15 @@ namespace graphene { namespace db { using std::unordered_map; - using fc::flat_set; + using fc::flat_set; class object_database; struct undo_state { - unordered_map > old_values; - unordered_map old_index_next_ids; - std::unordered_set new_ids; - unordered_map > removed; + unordered_map > old_values; + unordered_map old_index_next_ids; + std::set > new_ids; + unordered_map > removed; };