Commit c36fbcf
authored
Fix version mismatch error when dispatching encoded hints in storage compatibility mode (#2179)
### What is the issue
Fix version mismatch error when dispatching encoded hints in storage
compatibility mode
### What does this PR fix and why was it fixed
Remove version checks in HintMessage.Encoded serialization that
prevented dispatching hints written at storage compatibility version
(e.g., 12) when the peer connection uses a different messaging version
(e.g., 110).
UUID and VInt serialization are version-independent, and hint bytes are
written verbatim, so the version check was unnecessarily restrictive.1 parent 7d8f28b commit c36fbcf
1 file changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| |||
0 commit comments