HomePhabricator

Refactor ParseScript logic to remove `else` conditions

Description

Refactor ParseScript logic to remove else conditions

Summary:
This makes the code easier to understand by unclumping the logic of the parsing and using C++11 style loops.

Depends on D1290

Test Plan:

make check

Reviewers: #bitcoin_abc, schancel

Reviewed By: #bitcoin_abc, schancel

Subscribers: teamcity

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

Details

Provenance
deadalnixAuthored on Apr 16 2018, 20:53
deadalnixPushed on Apr 17 2018, 00:54
Reviewer
Restricted Project
Differential Revision
D1292: Refactor ParseScript logic to remove `else` conditions
Parents
rABC16c4d349cdde: Give more descriptive error when parsing partial-byte hex values
Branches
Unknown
Tags
Unknown