From cb103c5d205596c13f8fd1621cf54ed32a99b6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Tue, 26 Nov 2024 19:59:49 +0100 Subject: [PATCH] Use unordered_map --- nano/node/bounded_backlog.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nano/node/bounded_backlog.hpp b/nano/node/bounded_backlog.hpp index 2d6981c190..4eb0cc16bf 100644 --- a/nano/node/bounded_backlog.hpp +++ b/nano/node/bounded_backlog.hpp @@ -17,6 +17,8 @@ #include #include +#include + namespace mi = boost::multi_index; namespace nano @@ -87,7 +89,7 @@ class backlog_index ordered_blocks blocks; // Keep track of the size of the backlog in number of unconfirmed blocks per bucket - std::map size_by_bucket; + std::unordered_map size_by_bucket; }; class bounded_backlog_config