Skip to content

Clarify the interaction between BIP62 rule 6 (clean stack) and P2SH - #115

Closed
sipa wants to merge 2 commits into
bitcoin:masterfrom
sipa:bip62up4
Closed

Clarify the interaction between BIP62 rule 6 (clean stack) and P2SH#115
sipa wants to merge 2 commits into
bitcoin:masterfrom
sipa:bip62up4

Conversation

@sipa

@sipa sipa commented Oct 26, 2014

Copy link
Copy Markdown
Member

No description provided.

sipa added 2 commits October 26, 2014 00:48
Clarify that BIP62 rule 6 (clean stack) only applies after potential P2SH redeemscript evaluation.
Applying it before the redeemscript evaluation means that every P2SH script will fail it,
as P2SH by definition uses an unclean stack (to specify the redeemscript inputs).
Comment thread bip-0062.mediawiki

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this shouldn't apply to all version>=2 transactions - too limiting on future stuff...

@sipa

sipa commented Nov 5, 2014

Copy link
Copy Markdown
Member Author

Superseded by #117 (which includes @luke-jr's suggestion).

@sipa sipa closed this Nov 5, 2014
luke-jr pushed a commit to luke-jr/bips that referenced this pull request Jun 6, 2017
As per discussion in bitcoin#115, we now allow `shutdown` immediately following
`commitment_signed`.

This means that revoke-and-ack doesn't *always* ack the shutdown.  Rather
than specify that a revoke-and-ack which is caused by an update-commit
following the shutdown acknowledges, we leave this unacknowledged until
we actually start closing.

This means we will retransmit it on every reconnect until then.  But
that's not all that wasteful, and fairly robust.

Suggested-by: Pierre-Marie Padiou <pm.padiou@gmail.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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.

2 participants