Commit 5c38cbf
committed
Merge rust-bitcoin/rust-miniscript#756: feat: add MaxBareScriptSizeExceeded 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: 4dae0617bdaf1aee7ffd74875471a9dc550b4e3fdd4499894d4172c047f8dbf8b3ca5dff92868999f2ed0356400b9327003b6ac249cd428606204dc5f0506c042 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
80 | 83 | | |
81 | 84 | | |
82 | 85 | | |
| 86 | + | |
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| |||
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
130 | 139 | | |
131 | 140 | | |
132 | 141 | | |
| |||
740 | 749 | | |
741 | 750 | | |
742 | 751 | | |
743 | | - | |
| 752 | + | |
744 | 753 | | |
745 | 754 | | |
746 | 755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
| 1697 | + | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
| |||
0 commit comments