Merge pull request #4838
1e4f87fUse memcmp for uint256 equality/inequality (Pieter Wuille)8a41e1eUse boost::unordered_map for mapBlockIndex (Pieter Wuille)145d5beIntroduce BlockMap type for mapBlockIndex (Pieter Wuille)a0dbe43checkpoints.cpp depends on main, it can use mapBlockIndex directly (Pieter Wuille)
This commit is contained in:
@@ -170,7 +170,7 @@ void TransactionRecord::updateStatus(const CWalletTx &wtx)
|
||||
|
||||
// Find the block the tx is in
|
||||
CBlockIndex* pindex = NULL;
|
||||
std::map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(wtx.hashBlock);
|
||||
BlockMap::iterator mi = mapBlockIndex.find(wtx.hashBlock);
|
||||
if (mi != mapBlockIndex.end())
|
||||
pindex = (*mi).second;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user