Commit ce42c66
committed
Merge #781: feat: optimize pushbytes by removing unreachable minimal check
84d1ad5 feat: optimize pushbytes by removing unreachable minimal check (ChrisCho-H)
Pull request description:
In [rust-bitcoin](https://github.com/rust-bitcoin/rust-bitcoin/blob/aa25adfc64ea0d742ca202991140f280024aba1b/bitcoin/src/blockdata/script/push_bytes.rs#L312), `read_scriptint` checks `NonMinimalPush`, which makes an additional minimal check needless and `PushBytes` inefficient.
ACKs for top commit:
apoelstra:
ACK 84d1ad5; successfully ran local tests; yep, I think you are right
Tree-SHA512: d16a199fd5caef13b4fa78584d61c7feb843accb2097b29ca7ccdabfd1cae3e5af9d54d70dc7b7b93f50809c2719f70a87cf4dbba9da53ed55d427568de9eed21 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| 216 | + | |
216 | 217 | | |
217 | 218 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 219 | | |
225 | 220 | | |
226 | 221 | | |
| |||
0 commit comments