|
|
@ -147,7 +147,10 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const { |
|
|
|
return error("%s: Deserialize or I/O error - %s", __func__, e.what()); |
|
|
|
return error("%s: Deserialize or I/O error - %s", __func__, e.what()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
stats.nHeight = mapBlockIndex.find(GetBestBlock())->second->nHeight; |
|
|
|
{ |
|
|
|
|
|
|
|
LOCK(cs_main); |
|
|
|
|
|
|
|
stats.nHeight = mapBlockIndex.find(stats.hashBlock)->second->nHeight; |
|
|
|
|
|
|
|
} |
|
|
|
stats.hashSerialized = ss.GetHash(); |
|
|
|
stats.hashSerialized = ss.GetHash(); |
|
|
|
stats.nTotalAmount = nTotalAmount; |
|
|
|
stats.nTotalAmount = nTotalAmount; |
|
|
|
return true; |
|
|
|
return true; |
|
|
|