diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-10-21 23:23:59 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-10-28 01:05:32 +0100 |
commit | 298e040bca0aad62b616a1d3e66e1e44d2b9bd3a (patch) | |
tree | 4057b56ca2f37870d9897beb978fc127bf236d13 /src/txdb.cpp | |
parent | 8f3b3cdee497b8a1d7c6a7279e7bb13435527b60 (diff) |
Fix chainstate serialized_size computation
Diffstat (limited to 'src/txdb.cpp')
-rw-r--r-- | src/txdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txdb.cpp b/src/txdb.cpp index f0868a1ebf..cd76c0155c 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -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"); |