HomePhabricator

Get rid of nType and nVersion

Description

Get rid of nType and nVersion

Remove the nType and nVersion as parameters to all serialization methods
and functions. There is only one place where it's read and has an impact
(in CAddress), and even there it does not impact any of the recursively
invoked serializers.

Instead, the few places that need nType or nVersion are changed to read
it directly from the stream object, through GetType() and GetVersion()
methods which are added to all stream classes.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Oct 28 2016, 23:29
deadalnixPushed on May 14 2017, 22:04
Parents
rABC657e05ab2e87: Make GetSerializeSize a wrapper on top of CSizeComputer
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rABC528472111b49: Get rid of nType and nVersion (authored by Pieter Wuille <pieter.wuille@gmail.com>).Nov 7 2016, 21:56