Permalink
Browse files

Merge pull request #6865

298e040 Fix chainstate serialized_size computation (Pieter Wuille)
  • Loading branch information...
gmaxwell committed Oct 28, 2015
2 parents 8f3b3cd + 298e040 commit d0badb916e511da158c3626142745dfb14bd68e0
Showing with 2 additions and 2 deletions.
  1. +1 −1 qa/rpc-tests/blockchain.py
  2. +1 −1 src/txdb.cpp
@@ -43,7 +43,7 @@ def run_test(self):
assert_equal(res[u'transactions'], 200)
assert_equal(res[u'height'], 200)
assert_equal(res[u'txouts'], 200)
- assert_equal(res[u'bytes_serialized'], 13000),
+ assert_equal(res[u'bytes_serialized'], 13924),
assert_equal(len(res[u'bestblock']), 64)
assert_equal(len(res[u'hash_serialized']), 64)
View
@@ -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");

0 comments on commit d0badb9

Please sign in to comment.