static_assert with no message is a c++17 feature, and causes clang to
generate a -Wc++17-extensions warning.
Details
Details
- Reviewers
deadalnix jasonbcox Mengerian markblundeberg - Group Reviewers
Restricted Project - Commits
- rSTAGING4e4266cec73d: Add a message to static_assert
rABC4e4266cec73d: Add a message to static_assert
With Clang:
make check
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
src/script/interpreter.cpp | ||
---|---|---|
1030 ↗ | (On Diff #10575) | Using the affirmative in this way in an error message reads strangely. I recommend "Schnorr multisig only supports up to 31 pubkeys." |
Comment Actions
Note -- it only supports up to 20 pubkeys like regular multisig, rather this static assert is only here since the implementation's usage of a 32-bit number (and >> operator) is implicitly assuming < 32 keys.
Comment Actions
@markblundeberg What do you think of rewording the message with a slightly more technical content then ?:
Schnorr multisig is limited by the checkbits size to 31 pubkeys.
Comment Actions
@Fabien @markblundeberg How about this: "Schnorr multisig checkbits implementation assumes < 32 pubkeys."