mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Introduce BlockMap type for mapBlockIndex
This commit is contained in:
parent
a0dbe433bd
commit
145d5be896
9 changed files with 27 additions and 26 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue