Commit b868835
committed
0cd384d Update `segwit_weight` and `legacy_weight` to use non-deprecated functions (Shing Him Ng)
a11c037 Remove deprecated constructors from fuzz target (Shing Him Ng)
fcc3473 Update `Weight` and `TxInExt` functions with panic details (Shing Him Ng)
Pull request description:
Weight::from_non_witness_data_size has an overflow bug. These methods duplicate the functionality of `Weight::from_vb` and `Weight::from_wu`, respectively. Furthermore, they are less discoverable than the methods they duplicate, so they will be removed in this PR.
Related discussion in rust-bitcoin#4847
ACKs for top commit:
tcharding:
ACK 0cd384d
apoelstra:
ACK 0cd384d; successfully ran local tests
Tree-SHA512: 56a370f02edde7108fa90120e359063788f2d2ce4b5b665216dfe67fe76485f79ba9a5d0c2fd454a8fe04795315bd8e81777c48ae39e663d4559bbf57d0e74cd
File tree
4 files changed
+31
-5
lines changed- bitcoin/src/blockdata
- fuzz/fuzz_targets/units
- units/src
4 files changed
+31
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
659 | 659 | | |
660 | 660 | | |
661 | 661 | | |
662 | | - | |
| 662 | + | |
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | | - | |
| 142 | + | |
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| |||
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
152 | 160 | | |
153 | | - | |
154 | | - | |
| 161 | + | |
| 162 | + | |
155 | 163 | | |
156 | 164 | | |
157 | 165 | | |
158 | 166 | | |
159 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
160 | 172 | | |
161 | 173 | | |
162 | 174 | | |
| |||
169 | 181 | | |
170 | 182 | | |
171 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
172 | 188 | | |
173 | 189 | | |
174 | 190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
| |||
362 | 368 | | |
363 | 369 | | |
364 | 370 | | |
| 371 | + | |
| 372 | + | |
365 | 373 | | |
366 | 374 | | |
367 | 375 | | |
| |||
370 | 378 | | |
371 | 379 | | |
372 | 380 | | |
| 381 | + | |
| 382 | + | |
373 | 383 | | |
374 | 384 | | |
375 | 385 | | |
| |||
0 commit comments