diff options
| author | Pieter Wuille <[email protected]> | 2014-09-04 23:48:01 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-09-04 23:49:35 +0200 |
| commit | af9c3b0cffa4449f1254da3073aef77bafddf9cd (patch) | |
| tree | 7f76c41b2a5556b9836bde8691ee4af9c3030dae /src/init.cpp | |
| parent | Merge pull request #4783 (diff) | |
| parent | Use memcmp for uint256 equality/inequality (diff) | |
| download | discoin-af9c3b0cffa4449f1254da3073aef77bafddf9cd.tar.xz discoin-af9c3b0cffa4449f1254da3073aef77bafddf9cd.zip | |
Merge pull request #4838
1e4f87f Use memcmp for uint256 equality/inequality (Pieter Wuille)
8a41e1e Use boost::unordered_map for mapBlockIndex (Pieter Wuille)
145d5be Introduce BlockMap type for mapBlockIndex (Pieter Wuille)
a0dbe43 checkpoints.cpp depends on main, it can use mapBlockIndex directly (Pieter Wuille)
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
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)) |