HomePhabricator

Pull minimal check out of CScriptNum constr. into IsMinimalArray

Description

Pull minimal check out of CScriptNum constr. into IsMinimalArray

Summary:
Move the check for minimal encoded arrays out of CScriptNum's
constructor and into a free function. This enables it to be used
elsewhere, and avoid hitting exceptions.

Test Plan: make check

Reviewers: movrcx, jasonbcox, matiu, deadalnix, #bitcoin_abc

Reviewed By: jasonbcox, #bitcoin_abc

Subscribers: shadders, teamcity

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

Details

Provenance
schancelAuthored on Mar 18 2018, 08:52
schancelPushed on Mar 18 2018, 20:26
Reviewer
Restricted Project
Differential Revision
D1214: Pull minimal check out of CScriptNum constr. into IsMinimalArray
Parents
rSTAGINGcb05fb4c2d8c: Add helper function for disabled opcodes
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/3297