Skip to content

Commit d0badb9

Browse files
committed
Merge pull request #6865
298e040 Fix chainstate serialized_size computation (Pieter Wuille)
2 parents 8f3b3cd + 298e040 commit d0badb9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

qa/rpc-tests/blockchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run_test(self):
4343
assert_equal(res[u'transactions'], 200)
4444
assert_equal(res[u'height'], 200)
4545
assert_equal(res[u'txouts'], 200)
46-
assert_equal(res[u'bytes_serialized'], 13000),
46+
assert_equal(res[u'bytes_serialized'], 13924),
4747
assert_equal(len(res[u'bestblock']), 64)
4848
assert_equal(len(res[u'hash_serialized']), 64)
4949

src/txdb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ bool CCoinsViewDB::GetStats(CCoinsStats &stats) const {
121121
nTotalAmount += out.nValue;
122122
}
123123
}
124-
stats.nSerializedSize += 32 + pcursor->GetKeySize();
124+
stats.nSerializedSize += 32 + pcursor->GetValueSize();
125125
ss << VARINT(0);
126126
} else {
127127
return error("CCoinsViewDB::GetStats() : unable to read value");

0 commit comments

Comments
 (0)