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

bip199 bytecode optimization #738

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@mattBlackDesign

mattBlackDesign commented Nov 14, 2018

This PR optimizes the bytecode script for your typical HTLC. Seeing as OP_DUP OP_HASH160 are both repeated in both the OP_IF and OP_ELSE branches of the script, this optimization proposes extracting that outside the if statements, in order to reduce the number of bytes required for the script by 1.

@mattBlackDesign mattBlackDesign changed the title from Add bip199 bytecode optimization to bip199 bytecode optimization Nov 14, 2018

@jabbfun007

This comment has been minimized.

jabbfun007 commented Nov 22, 2018

Good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment