]> Git Repo - VerusCoin.git/commit
Make GetSerializeSize a wrapper on top of CSizeComputer
authorPieter Wuille <[email protected]>
Fri, 28 Oct 2016 23:51:33 +0000 (16:51 -0700)
committerJack Grigg <[email protected]>
Mon, 16 Apr 2018 13:38:38 +0000 (07:38 -0600)
commitb8a6579366711127364b807ab62db391eee7d07a
tree16b456a57003b7c2ce526bb43f34e24ac93af9a4
parent7f4acac433e8052ed7f10f93b20042a811f2e7be
Make GetSerializeSize a wrapper on top of CSizeComputer

Given that in default GetSerializeSize implementations created by
ADD_SERIALIZE_METHODS we're already using CSizeComputer(), get rid
of the specialized GetSerializeSize methods everywhere, and just use
CSizeComputer. This removes a lot of code which isn't actually used
anywhere.

For CCompactSize and CVarInt this actually removes a more efficient
size computing algorithm, which is brought back in a later commit.
13 files changed:
src/addrman.h
src/coins.h
src/compressor.h
src/dbwrapper.h
src/main.cpp
src/primitives/transaction.h
src/pubkey.h
src/script/zcashconsensus.cpp
src/serialize.h
src/streams.h
src/test/uint256_tests.cpp
src/uint256.h
src/undo.h
This page took 0.028907 seconds and 4 git commands to generate.