bips icon indicating copy to clipboard operation
bips copied to clipboard

BIP 114: Add DROP after CLTV/CSV opcodes in flattened branches

Open afk11 opened this issue 6 years ago • 6 comments

In the HTLC example https://github.com/bitcoin/bips/blob/master/bip-0114.mediawiki#hashed-time-lock-contract I think there DROP is required after the CSV / CLTV opcodes

There was branch by the same author @jl2012 to make CSV/CLTV actually pop from the stack in MAST, but the behavior is not described or referred to in BIP114 at the moment.

afk11 avatar Jun 03 '18 17:06 afk11

@jl2012

luke-jr avatar Jul 05 '18 05:07 luke-jr

Hi @jl2012 - have you time to consider this PR?

afk11 avatar Jan 06 '19 18:01 afk11

The bip states that the reference implementation is https://github.com/jl2012/bitcoin/tree/bip114v2 , which does have :

https://github.com/jl2012/bitcoin/blob/371928dbf2d924c7f55db882b7764209cd1e1543/src/script/interpreter.cpp#L463-L464 and https://github.com/jl2012/bitcoin/blob/371928dbf2d924c7f55db882b7764209cd1e1543/src/script/interpreter.cpp#L423-L424

Isn't it better to /add/ a note about these opcodes popping the value instead of adding a DROP to the scripts?

fivepiece avatar Jan 06 '19 19:01 fivepiece

@fivepiece

Isn't it better to /add/ a note about these opcodes popping the value instead of adding a DROP to the scripts?

Either's good to be honest - I was unsure if that branch was meant to the just the BIP, or included nice-to-haves as well.

afk11 avatar Jan 06 '19 21:01 afk11

yes, please add this comment

andreaskern avatar Mar 01 '22 15:03 andreaskern

Pinging @jl2012. Considering this pull has been open since 2018 and the author hasn't responded to the preceding pings and doesn't appear to have any GitHub activity in the past year, I propose to close this pull on June 1st, 2024, if no response in the interim.

Also, the last update to the reference implementation was 8 years ago: https://github.com/jl2012/bitcoin/tree/bip114v2.

jonatack avatar May 06 '24 16:05 jonatack

Should there be a policy against opening PRs for rejected proposals?

TheCharlatan avatar May 12 '24 18:05 TheCharlatan

Closing this PR, because the BIP was moved to the Rejected status since this PR was opened.

murchandamus avatar May 13 '24 16:05 murchandamus