aboutsummaryrefslogtreecommitdiff
path: root/src/node/blockstorage.h
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2022-01-13 12:38:23 -0500
committerCarl Dong <contact@carldong.me>2022-02-22 11:56:49 -0500
commitc2a1655799c5d5dab9b14bd2a6b2d2296efd6964 (patch)
tree86c28418f0d81da9599269cdaaab4de499c9a645 /src/node/blockstorage.h
parentdd79dad17545424d145e846026518d70da594380 (diff)
downloadbitcoin-c2a1655799c5d5dab9b14bd2a6b2d2296efd6964.tar.xz
style-only: Use using instead of typedef for BlockMap
Diffstat (limited to 'src/node/blockstorage.h')
-rw-r--r--src/node/blockstorage.h2
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;