Fix chainstate serialized_size computation

This commit is contained in:
Pieter Wuille
2018-04-03 20:40:54 +01:00
committed by Jack Grigg
parent 79272bfaf9
commit f95bf4c417
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const {
nTotalAmount += out.nValue;
}
}
stats.nSerializedSize += 32 + pcursor->GetKeySize();
stats.nSerializedSize += 32 + pcursor->GetValueSize();
ss << VARINT(0);
} else {
return error("CCoinsViewDB::GetStats() : unable to read value");