diff options
author | Carl Dong <contact@carldong.me> | 2022-01-13 12:38:23 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2022-02-22 11:56:49 -0500 |
commit | c2a1655799c5d5dab9b14bd2a6b2d2296efd6964 (patch) | |
tree | 86c28418f0d81da9599269cdaaab4de499c9a645 /src | |
parent | dd79dad17545424d145e846026518d70da594380 (diff) |
style-only: Use using instead of typedef for BlockMap
Diffstat (limited to 'src')
-rw-r--r-- | src/node/blockstorage.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/blockstorage.h b/src/node/blockstorage.h index be1ed83064..12224f7a5d 100644 --- a/src/node/blockstorage.h +++ b/src/node/blockstorage.h @@ -56,7 +56,7 @@ extern uint64_t nPruneTarget; // we ever switch to another associative container, we need to either use a // container that has stable addressing (true of all std associative // containers), or make the key a `std::unique_ptr<CBlockIndex>` -typedef std::unordered_map<uint256, CBlockIndex, BlockHasher> BlockMap; +using BlockMap = std::unordered_map<uint256, CBlockIndex, BlockHasher>; struct CBlockIndexWorkComparator { bool operator()(const CBlockIndex* pa, const CBlockIndex* pb) const; |