Fix chainstate serialized_size computation

This commit is contained in:
Pieter Wuille
2015-10-21 23:23:59 +02:00
parent 8f3b3cdee4
commit 298e040bca
2 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,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");