Skip to content

Commit 5356f5b

Browse files
Use unordered map for modifier checkpoints
1 parent 86901e0 commit 5356f5b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/kernel.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
#include <util/system.h>
1919
#include <validation.h>
2020

21+
#include <unordered_map>
22+
2123
// Hard checkpoints of stake modifiers to ensure they are deterministic
22-
static const std::map<int, unsigned int> mapStakeModifierCheckpoints = {
24+
static const std::unordered_map<int, unsigned int> mapStakeModifierCheckpoints = {
2325
{ 0, 0x0e00670bu },
2426
{ 50000, 0xcbe5a9b4u },
2527
{ 100000, 0xbd074053u },
@@ -32,7 +34,7 @@ static const std::map<int, unsigned int> mapStakeModifierCheckpoints = {
3234
{ 450000, 0xc85e93eau },
3335
};
3436

35-
static const std::map<int, unsigned int> mapStakeModifierTestnetCheckpoints = {
37+
static const std::unordered_map<int, unsigned int> mapStakeModifierTestnetCheckpoints = {
3638
{ 0, 0x0e00670bu },
3739
{ 50000, 0x4af2e306u },
3840
{ 100000, 0xd9e06043u },

0 commit comments

Comments
 (0)