Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

txscript: Introduce constant for max CLTV bytes. #1650

Merged
merged 1 commit into from
Mar 12, 2019

Conversation

davecgh
Copy link
Member

@davecgh davecgh commented Mar 9, 2019

As is already well commented in the code, the locktime parameter of the CHECKLOCKTIMEVERIFY opcode requires 5 bytes instead of the standard 4 bytes allowed by math opcodes. This introduces a constant for the value instead of hardcoding 5 to increase readability and potentially allow the value to be exported in the future.

@davecgh davecgh added this to the 1.5.0 milestone Mar 9, 2019
As is already well commented in the code, the locktime parameter of the
CHECKLOCKTIMEVERIFY opcode requires 5 bytes instead of the standard 4
bytes allowed by math opcodes.  This introduces a constant for the value
instead of hardcoding 5 to increase readability and potentially allow
the value to be exported in the future.
@davecgh davecgh force-pushed the txscript_max_cltv_constant branch from 043239a to b19842a Compare March 12, 2019 15:13
@davecgh davecgh merged commit b19842a into decred:master Mar 12, 2019
@davecgh davecgh deleted the txscript_max_cltv_constant branch March 12, 2019 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants