Page MenuHomePhabricator

[64-bit ints] Refactor `CScriptNum` to require setting `nMaxNumSize`
DraftPublic

Authored by tobias_ruck on Fri, Oct 25, 00:21.
This is a draft revision that has not yet been submitted for review.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Summary

Currently, CScriptNum's constructor and IsMinimallyEncoded have a default for nMaxNumSize, which defaults to 4 (eCash's maximum integer size).

For upgrading Script integers from 32-bit to 64-bit, having to make the integer size explicit allows us to upgrade them based on a script flag.

This has no change in behavior.

Depends on D16996.

Test Plan

ninja check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
interpreter-refactor-script-num-size
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30835
Build 61183: Build Diffbuild-without-wallet · lint-circular-dependencies · build-clang-tidy · build-clang · build-debug · build-diff
Build 61182: arc lint + arc unit