HomePhabricator

refactor: Use proper MAX_SCRIPT_ELEMENT_SIZE const

Description

refactor: Use proper MAX_SCRIPT_ELEMENT_SIZE const

Summary:
This PR replaces well-known "magic" numbers with proper MAX_SCRIPT_ELEMENT_SIZE constants.

Backport of Bitcoin Core PR17439

Test Plan: ninja && ninja check

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Nov 11 2019, 09:51
PiRKCommitted on Sep 25 2020, 10:29
PiRKPushed on Sep 25 2020, 10:29
Reviewer
Restricted Owners Package
Differential Revision
D7564: refactor: Use proper MAX_SCRIPT_ELEMENT_SIZE const
Parents
rABC9b0a206751a1: refactor: Remove addrdb.h dependency from node.h
Branches
Unknown
Tags
Unknown

Event Timeline