aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-09-04 02:02:44 +0200
committerPieter Wuille <[email protected]>2014-09-04 02:04:51 +0200
commit145d5be896db4e8fda17039bed26100e38fae2f0 (patch)
tree82c0a250144990617038c84d10e71b6fa905ecc5 /src/init.cpp
parentcheckpoints.cpp depends on main, it can use mapBlockIndex directly (diff)
downloaddiscoin-145d5be896db4e8fda17039bed26100e38fae2f0.tar.xz
discoin-145d5be896db4e8fda17039bed26100e38fae2f0.zip
Introduce BlockMap type for mapBlockIndex
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index b8988f8b7..31f64878f 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1031,7 +1031,7 @@ bool AppInit2(boost::thread_group& threadGroup)
{
string strMatch = mapArgs["-printblock"];
int nFound = 0;
- for (map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi)
+ for (BlockMap::iterator mi = mapBlockIndex.begin(); mi != mapBlockIndex.end(); ++mi)
{
uint256 hash = (*mi).first;
if (boost::algorithm::starts_with(hash.ToString(), strMatch))