Skip to content

Conversation

@ChrisCho-H
Copy link
Contributor

@ChrisCho-H ChrisCho-H commented Oct 16, 2024

BareCtx consensus validity check returns MaxWitnessScriptSizeExceeded err when exceeding script size limit, which is wrong and confusing. Adding MaxBareScriptSizeExceeded and using it instead can clearly give a correct message on compile error.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 834bd3d; successfully ran local tests; Yeah, this seems like a good idea

@apoelstra apoelstra merged commit 7ae7596 into rust-bitcoin:master Oct 17, 2024
29 of 30 checks passed
heap-coder added a commit to heap-coder/rust-miniscript that referenced this pull request Sep 27, 2025
…ceeded err for bare consensus check

834bd3dcc9bbcecd8603d85fc17ddb82f2d4ba65 feat: add MaxBareScriptSizeExceeded err for bare consensus check (ChrisCho-H)

Pull request description:

  `BareCtx` consensus validity check returns `MaxWitnessScriptSizeExceeded` err when exceeding script size limit, which is wrong and confusing. Adding `MaxBareScriptSizeExceeded` and using it instead can clearly give a correct message on compile error.

ACKs for top commit:
  apoelstra:
    ACK 834bd3dcc9bbcecd8603d85fc17ddb82f2d4ba65; successfully ran local tests; Yeah, this seems like a good idea

Tree-SHA512: 4dae0617bdaf1aee7ffd74875471a9dc550b4e3fdd4499894d4172c047f8dbf8b3ca5dff92868999f2ed0356400b9327003b6ac249cd428606204dc5f0506c04
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