Skip to content

bip 8: simplify MUST_SIGNAL check - #1063

Merged
luke-jr merged 1 commit into
bitcoin:masterfrom
ajtowns:202102-bip8-simplify-mustsignal-check
Feb 8, 2021
Merged

bip 8: simplify MUST_SIGNAL check#1063
luke-jr merged 1 commit into
bitcoin:masterfrom
ajtowns:202102-bip8-simplify-mustsignal-check

Conversation

@ajtowns

@ajtowns ajtowns commented Feb 4, 2021

Copy link
Copy Markdown
Contributor

Simplify the validity check that at least threshold blocks are signalling during the MUST_SIGNAL phase for BIP 8.

@ajtowns

ajtowns commented Feb 4, 2021

Copy link
Copy Markdown
Contributor Author

cc @jonasnick @dr-orlovsky @luke-jr -- see also #1021 (comment)

Comment thread bip-0008.mediawiki Outdated
@ajtowns
ajtowns force-pushed the 202102-bip8-simplify-mustsignal-check branch from 3a9f7d9 to 63d2800 Compare February 4, 2021 02:51

@dr-orlovsky dr-orlovsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Propose to include it into the next taproot activation meeting for the review

@benthecarman benthecarman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK 63d2800

@jonasnick jonasnick left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK 63d2800

Sanity checked that there's no nasty off-by-one by adjusting my previous implementation according to this PR and running the same tests against it. The nonsignal == 0 was a neat optimization but fine to leave that up to the implementor.

@luke-jr
luke-jr merged commit ec213e1 into bitcoin:master Feb 8, 2021
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.

5 participants