|
|
@ -57,7 +57,7 @@ bool CCoinsViewDB::SetBestBlock(CBlockIndex *pindex) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool CCoinsViewDB::BatchWrite(const std::map<uint256, CCoins> &mapCoins, CBlockIndex *pindex) { |
|
|
|
bool CCoinsViewDB::BatchWrite(const std::map<uint256, CCoins> &mapCoins, CBlockIndex *pindex) { |
|
|
|
printf("Committing %u changed transactions to coin database...\n", (unsigned int)mapCoins.size()); |
|
|
|
//printf("Committing %u changed transactions to coin database...\n", (unsigned int)mapCoins.size());
|
|
|
|
|
|
|
|
|
|
|
|
CLevelDBBatch batch; |
|
|
|
CLevelDBBatch batch; |
|
|
|
for (std::map<uint256, CCoins>::const_iterator it = mapCoins.begin(); it != mapCoins.end(); it++) |
|
|
|
for (std::map<uint256, CCoins>::const_iterator it = mapCoins.begin(); it != mapCoins.end(); it++) |
|
|
|