Commit cd7162f
committed
Merge bitcoin-core/libmultiprocess#304: proxy: fix BuildList to use non-const iteration for interface types
d6f8588 proxy: fix BuildList to use non-const iteration for interface types (Ryan Ofsky)
Pull request description:
Needed for bitcoin#10102 since bitcoin#277 was merged.
Since bitcoin#277, it is no longer possible to return `vector<unique_ptr<ExternalSigner>>` from `Node::listExternalSigners()` in bitcoin#10102, because the proxy server objects libmultiprocess creates to wrap the `ExternalSigner` objects need to take ownership of the objects to keep them alive, so they need to be moved out of the returned vector, which can only be done if `BuildField` is passed a non-const vector element.
This PR restores previous behavior before bitcoin#277 making it possible to mutate container elements while serializing them, in cases like this where it is necessary.
ACKs for top commit:
ViniciusCestarii:
tACK d6f8588
Tree-SHA512: 37bf03f3a3ee2b239480af53e05e4e46857db45ae8c489bda32e004d99aac3f5fa38f7fd6dba6123a0cafe3f64042ccbc1966448139d488b691d7ca16a1e8b9c7 files changed
+66-3Lines changed: 66 additions & 3 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- include/mp
- src/mp
- test/mp/test
Expand file treeCollapse file tree
Open diff view settings
Collapse file
+22-3Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
285 | 285 | |
286 | 286 | |
287 | 287 | |
288 | | - |
289 | | - |
290 | | - |
| 288 | + |
| 289 | + |
| 290 | + |
| 291 | + |
| 292 | + |
| 293 | + |
| 294 | + |
| 295 | + |
| 296 | + |
| 297 | + |
| 298 | + |
| 299 | + |
| 300 | + |
| 301 | + |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | + |
| 307 | + |
| 308 | + |
| 309 | + |
291 | 310 | |
292 | 311 | |
293 | 312 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
9 | 9 | |
10 | 10 | |
11 | 11 | |
| 12 | + |
| 13 | + |
12 | 14 | |
13 | 15 | |
14 | 16 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
329 | 329 | |
330 | 330 | |
331 | 331 | |
| 332 | + |
332 | 333 | |
333 | 334 | |
334 | 335 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
| 42 | + |
42 | 43 | |
43 | 44 | |
44 | 45 | |
|
Collapse file
+6Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
| 40 | + |
40 | 41 | |
41 | 42 | |
42 | 43 | |
| ||
52 | 53 | |
53 | 54 | |
54 | 55 | |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
55 | 61 | |
56 | 62 | |
57 | 63 | |
|
Collapse file
+24Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
71 | 71 | |
72 | 72 | |
73 | 73 | |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
74 | 91 | |
75 | 92 | |
76 | 93 | |
| ||
96 | 113 | |
97 | 114 | |
98 | 115 | |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
99 | 123 | |
100 | 124 | |
101 | 125 | |
|
Collapse file
+10Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
272 | 272 | |
273 | 273 | |
274 | 274 | |
| 275 | + |
| 276 | + |
| 277 | + |
| 278 | + |
| 279 | + |
| 280 | + |
| 281 | + |
| 282 | + |
| 283 | + |
| 284 | + |
275 | 285 | |
276 | 286 | |
277 | 287 | |
|
0 commit comments