HomePhabricator

Get rid of nType and nVersion
528472111b49Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

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
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING657e05ab2e87: Make GetSerializeSize a wrapper on top of CSizeComputer
Branches
Unknown
Tags
Unknown

Event Timeline

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