Commit f02d029
committed
Merge rust-bitcoin#5079: consensus_encoding: Remove
305062d consensus_encoding: Remove prefix_read field (Tobin C. Harding)
Pull request description:
We can just use the existence of the optional compact size decoder to abstract over whether the prefix has been read or not.
We did this already in `VecDecoder`.
Internal change only, no logic change.
ACKs for top commit:
nyonson:
ACK 305062d
apoelstra:
ACK 305062d; successfully ran local tests
Tree-SHA512: c78fbba2391519cac6d282d8bbd4c3448bd103e32d8c93fce17c7d1e7a76c39fc65a999e3c1c53c102fd5c7069eb38451a2f0da7f80bd446c8a16d78e5dc4da7prefix_read field1 file changed
+7
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| |||
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
40 | | - | |
41 | | - | |
| 39 | + | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 60 | + | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
70 | 66 | | |
71 | | - | |
| 67 | + | |
72 | 68 | | |
73 | 69 | | |
74 | 70 | | |
| |||
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
108 | 103 | | |
109 | | - | |
110 | 104 | | |
111 | 105 | | |
112 | 106 | | |
| |||
0 commit comments