HomePhabricator

Support bypassing range check in ReadCompactSize

Description

Support bypassing range check in ReadCompactSize

Summary:

This is needed when we want to encode an arbitrary number as CompactSize
like node service flags, which is a bitmask and could be bigger than the
usual size of an object.

Partial backport (1/4) of core PR19954:
https://github.com/bitcoin/bitcoin/pull/19954/commits/1d3ec2a1fda7446323786a52da1fd109c01aa6fb

Test Plan:

ninja all check

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D9198

Details

Provenance
Pieter Wuille <pieter@wuille.net>Authored on Oct 9 2020, 03:27
FabienCommitted on Feb 11 2021, 08:21
FabienPushed on Feb 11 2021, 08:23
Reviewer
Restricted Project
Differential Revision
D9198: Support bypassing range check in ReadCompactSize
Parents
rABCd736b4acd4f7: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown