Branch data Line data Source code
1 : : // Generated by Cap'n Proto compiler, DO NOT EDIT
2 : : // source: mining.capnp
3 : :
4 : : #pragma once
5 : :
6 : : #include <capnp/generated-header-support.h>
7 : : #include <kj/windows-sanity.h>
8 : : #if !CAPNP_LITE
9 : : #include <capnp/capability.h>
10 : : #endif // !CAPNP_LITE
11 : :
12 : : #ifndef CAPNP_VERSION
13 : : #error "CAPNP_VERSION is not defined, is capnp/generated-header-support.h missing?"
14 : : #elif CAPNP_VERSION != 1001000
15 : : #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
16 : : #endif
17 : :
18 : : #include <mp/proxy.capnp.h>
19 : : #include "common.capnp.h"
20 : :
21 : : CAPNP_BEGIN_HEADER
22 : :
23 : : namespace capnp {
24 : : namespace schemas {
25 : :
26 : : CAPNP_DECLARE_SCHEMA(f9c68436df3af39e);
27 : : CAPNP_DECLARE_SCHEMA(d62a851f0a406fba);
28 : : CAPNP_DECLARE_SCHEMA(d26da946a6fc07cb);
29 : : CAPNP_DECLARE_SCHEMA(c086cb7153ed88c8);
30 : : CAPNP_DECLARE_SCHEMA(8aaddcee1cb5abe0);
31 : : CAPNP_DECLARE_SCHEMA(a6680fe2b3201a1e);
32 : : CAPNP_DECLARE_SCHEMA(cdbd83d7b2442034);
33 : : CAPNP_DECLARE_SCHEMA(e2dfd3582b92b229);
34 : : CAPNP_DECLARE_SCHEMA(8f132f96e3f130ea);
35 : : CAPNP_DECLARE_SCHEMA(f23d59d452aea8de);
36 : : CAPNP_DECLARE_SCHEMA(a0b06cebf3da9e15);
37 : : CAPNP_DECLARE_SCHEMA(93a3f56b84a97b70);
38 : : CAPNP_DECLARE_SCHEMA(a6eb9eb6f5c4e0d0);
39 : : CAPNP_DECLARE_SCHEMA(f9671ad841b2f622);
40 : : CAPNP_DECLARE_SCHEMA(898c75958f8eab40);
41 : : CAPNP_DECLARE_SCHEMA(b277e9484368f871);
42 : : CAPNP_DECLARE_SCHEMA(bc6e961d0c9fabcb);
43 : : CAPNP_DECLARE_SCHEMA(be44866bf53ba50f);
44 : : CAPNP_DECLARE_SCHEMA(b57adc0c09d3d8b9);
45 : : CAPNP_DECLARE_SCHEMA(da570962f86bbd3b);
46 : : CAPNP_DECLARE_SCHEMA(fc48c88871b654d6);
47 : : CAPNP_DECLARE_SCHEMA(ce9419e947d3af78);
48 : : CAPNP_DECLARE_SCHEMA(8f4dadf0be3aee81);
49 : : CAPNP_DECLARE_SCHEMA(cf916f95f6f774fb);
50 : : CAPNP_DECLARE_SCHEMA(fd4337e403fdc1b8);
51 : : CAPNP_DECLARE_SCHEMA(e194427de3eafd96);
52 : : CAPNP_DECLARE_SCHEMA(a12657e0ad662f4b);
53 : : CAPNP_DECLARE_SCHEMA(da952a06f76488ff);
54 : : CAPNP_DECLARE_SCHEMA(f6e81eb0866e3b87);
55 : : CAPNP_DECLARE_SCHEMA(97f6899fb5e3c15f);
56 : : CAPNP_DECLARE_SCHEMA(b726a965fac04db3);
57 : : CAPNP_DECLARE_SCHEMA(dafdbfbfce655b00);
58 : : CAPNP_DECLARE_SCHEMA(b889895bf2d4ecb1);
59 : : CAPNP_DECLARE_SCHEMA(fe3cdff3007f0bc2);
60 : : CAPNP_DECLARE_SCHEMA(ad59a21b4fc45f4c);
61 : : CAPNP_DECLARE_SCHEMA(ce754302fc8eec5c);
62 : : CAPNP_DECLARE_SCHEMA(906b8ff9a674f7b5);
63 : : CAPNP_DECLARE_SCHEMA(90b22c39837a2b24);
64 : : CAPNP_DECLARE_SCHEMA(ffb1b562b483d059);
65 : : CAPNP_DECLARE_SCHEMA(98f68a677a3d473b);
66 : : CAPNP_DECLARE_SCHEMA(80fca083ef81a559);
67 : : CAPNP_DECLARE_SCHEMA(9ba437d9de0c452e);
68 : : CAPNP_DECLARE_SCHEMA(89f3f39b6c9dd162);
69 : : CAPNP_DECLARE_SCHEMA(dc399c6d34ae7e69);
70 : :
71 : : } // namespace schemas
72 : : } // namespace capnp
73 : :
74 : : namespace ipc {
75 : : namespace capnp {
76 : : namespace messages {
77 : :
78 : : struct Mining {
79 : : Mining() = delete;
80 : :
81 : : #if !CAPNP_LITE
82 : : class Client;
83 : : class Server;
84 : : #endif // !CAPNP_LITE
85 : :
86 : : struct IsTestChainParams;
87 : : struct IsTestChainResults;
88 : : struct IsInitialBlockDownloadParams;
89 : : struct IsInitialBlockDownloadResults;
90 : : struct GetTipParams;
91 : : struct GetTipResults;
92 : : struct WaitTipChangedParams;
93 : : struct WaitTipChangedResults;
94 : : struct CreateNewBlockParams;
95 : : struct CreateNewBlockResults;
96 : : struct CheckBlockParams;
97 : : struct CheckBlockResults;
98 : :
99 : : #if !CAPNP_LITE
100 : : struct _capnpPrivate {
101 : : CAPNP_DECLARE_INTERFACE_HEADER(f9c68436df3af39e)
102 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
103 : : };
104 : : #endif // !CAPNP_LITE
105 : : };
106 : :
107 : : struct Mining::IsTestChainParams {
108 : : IsTestChainParams() = delete;
109 : :
110 : : class Reader;
111 : : class Builder;
112 : : class Pipeline;
113 : :
114 : : struct _capnpPrivate {
115 : : CAPNP_DECLARE_STRUCT_HEADER(d62a851f0a406fba, 0, 1)
116 : : #if !CAPNP_LITE
117 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
118 : : #endif // !CAPNP_LITE
119 : : };
120 : : };
121 : :
122 : : struct Mining::IsTestChainResults {
123 : : IsTestChainResults() = delete;
124 : :
125 : : class Reader;
126 : : class Builder;
127 : : class Pipeline;
128 : :
129 : : struct _capnpPrivate {
130 : : CAPNP_DECLARE_STRUCT_HEADER(d26da946a6fc07cb, 1, 0)
131 : : #if !CAPNP_LITE
132 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
133 : : #endif // !CAPNP_LITE
134 : : };
135 : : };
136 : :
137 : : struct Mining::IsInitialBlockDownloadParams {
138 : : IsInitialBlockDownloadParams() = delete;
139 : :
140 : : class Reader;
141 : : class Builder;
142 : : class Pipeline;
143 : :
144 : : struct _capnpPrivate {
145 : : CAPNP_DECLARE_STRUCT_HEADER(c086cb7153ed88c8, 0, 1)
146 : : #if !CAPNP_LITE
147 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
148 : : #endif // !CAPNP_LITE
149 : : };
150 : : };
151 : :
152 : : struct Mining::IsInitialBlockDownloadResults {
153 : : IsInitialBlockDownloadResults() = delete;
154 : :
155 : : class Reader;
156 : : class Builder;
157 : : class Pipeline;
158 : :
159 : : struct _capnpPrivate {
160 : : CAPNP_DECLARE_STRUCT_HEADER(8aaddcee1cb5abe0, 1, 0)
161 : : #if !CAPNP_LITE
162 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
163 : : #endif // !CAPNP_LITE
164 : : };
165 : : };
166 : :
167 : : struct Mining::GetTipParams {
168 : : GetTipParams() = delete;
169 : :
170 : : class Reader;
171 : : class Builder;
172 : : class Pipeline;
173 : :
174 : : struct _capnpPrivate {
175 : : CAPNP_DECLARE_STRUCT_HEADER(a6680fe2b3201a1e, 0, 1)
176 : : #if !CAPNP_LITE
177 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
178 : : #endif // !CAPNP_LITE
179 : : };
180 : : };
181 : :
182 : : struct Mining::GetTipResults {
183 : : GetTipResults() = delete;
184 : :
185 : : class Reader;
186 : : class Builder;
187 : : class Pipeline;
188 : :
189 : : struct _capnpPrivate {
190 : : CAPNP_DECLARE_STRUCT_HEADER(cdbd83d7b2442034, 1, 1)
191 : : #if !CAPNP_LITE
192 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
193 : : #endif // !CAPNP_LITE
194 : : };
195 : : };
196 : :
197 : : struct Mining::WaitTipChangedParams {
198 : : WaitTipChangedParams() = delete;
199 : :
200 : : class Reader;
201 : : class Builder;
202 : : class Pipeline;
203 : :
204 : : struct _capnpPrivate {
205 : : CAPNP_DECLARE_STRUCT_HEADER(e2dfd3582b92b229, 1, 2)
206 : : #if !CAPNP_LITE
207 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
208 : : #endif // !CAPNP_LITE
209 : : };
210 : : };
211 : :
212 : : struct Mining::WaitTipChangedResults {
213 : : WaitTipChangedResults() = delete;
214 : :
215 : : class Reader;
216 : : class Builder;
217 : : class Pipeline;
218 : :
219 : : struct _capnpPrivate {
220 : : CAPNP_DECLARE_STRUCT_HEADER(8f132f96e3f130ea, 0, 1)
221 : : #if !CAPNP_LITE
222 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
223 : : #endif // !CAPNP_LITE
224 : : };
225 : : };
226 : :
227 : : struct Mining::CreateNewBlockParams {
228 : : CreateNewBlockParams() = delete;
229 : :
230 : : class Reader;
231 : : class Builder;
232 : : class Pipeline;
233 : :
234 : : struct _capnpPrivate {
235 : : CAPNP_DECLARE_STRUCT_HEADER(f23d59d452aea8de, 0, 1)
236 : : #if !CAPNP_LITE
237 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
238 : : #endif // !CAPNP_LITE
239 : : };
240 : : };
241 : :
242 : : struct Mining::CreateNewBlockResults {
243 : : CreateNewBlockResults() = delete;
244 : :
245 : : class Reader;
246 : : class Builder;
247 : : class Pipeline;
248 : :
249 : : struct _capnpPrivate {
250 : : CAPNP_DECLARE_STRUCT_HEADER(a0b06cebf3da9e15, 0, 1)
251 : : #if !CAPNP_LITE
252 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
253 : : #endif // !CAPNP_LITE
254 : : };
255 : : };
256 : :
257 : : struct Mining::CheckBlockParams {
258 : : CheckBlockParams() = delete;
259 : :
260 : : class Reader;
261 : : class Builder;
262 : : class Pipeline;
263 : :
264 : : struct _capnpPrivate {
265 : : CAPNP_DECLARE_STRUCT_HEADER(93a3f56b84a97b70, 0, 2)
266 : : #if !CAPNP_LITE
267 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
268 : : #endif // !CAPNP_LITE
269 : : };
270 : : };
271 : :
272 : : struct Mining::CheckBlockResults {
273 : : CheckBlockResults() = delete;
274 : :
275 : : class Reader;
276 : : class Builder;
277 : : class Pipeline;
278 : :
279 : : struct _capnpPrivate {
280 : : CAPNP_DECLARE_STRUCT_HEADER(a6eb9eb6f5c4e0d0, 1, 2)
281 : : #if !CAPNP_LITE
282 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
283 : : #endif // !CAPNP_LITE
284 : : };
285 : : };
286 : :
287 : : struct BlockTemplate {
288 : : BlockTemplate() = delete;
289 : :
290 : : #if !CAPNP_LITE
291 : : class Client;
292 : : class Server;
293 : : #endif // !CAPNP_LITE
294 : :
295 : : struct DestroyParams;
296 : : struct DestroyResults;
297 : : struct GetBlockHeaderParams;
298 : : struct GetBlockHeaderResults;
299 : : struct GetBlockParams;
300 : : struct GetBlockResults;
301 : : struct GetTxFeesParams;
302 : : struct GetTxFeesResults;
303 : : struct GetTxSigopsParams;
304 : : struct GetTxSigopsResults;
305 : : struct GetCoinbaseRawTxParams;
306 : : struct GetCoinbaseRawTxResults;
307 : : struct GetCoinbaseCommitmentParams;
308 : : struct GetCoinbaseCommitmentResults;
309 : : struct GetWitnessCommitmentIndexParams;
310 : : struct GetWitnessCommitmentIndexResults;
311 : : struct GetCoinbaseMerklePathParams;
312 : : struct GetCoinbaseMerklePathResults;
313 : : struct SubmitSolutionParams;
314 : : struct SubmitSolutionResults;
315 : : struct WaitNextParams;
316 : : struct WaitNextResults;
317 : : struct InterruptWaitParams;
318 : : struct InterruptWaitResults;
319 : : struct GetCoinbaseTxParams;
320 : : struct GetCoinbaseTxResults;
321 : :
322 : : #if !CAPNP_LITE
323 : : struct _capnpPrivate {
324 : : CAPNP_DECLARE_INTERFACE_HEADER(f9671ad841b2f622)
325 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
326 : : };
327 : : #endif // !CAPNP_LITE
328 : : };
329 : :
330 : : struct BlockTemplate::DestroyParams {
331 : : DestroyParams() = delete;
332 : :
333 : : class Reader;
334 : : class Builder;
335 : : class Pipeline;
336 : :
337 : : struct _capnpPrivate {
338 : : CAPNP_DECLARE_STRUCT_HEADER(898c75958f8eab40, 0, 1)
339 : : #if !CAPNP_LITE
340 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
341 : : #endif // !CAPNP_LITE
342 : : };
343 : : };
344 : :
345 : : struct BlockTemplate::DestroyResults {
346 : : DestroyResults() = delete;
347 : :
348 : : class Reader;
349 : : class Builder;
350 : : class Pipeline;
351 : :
352 : : struct _capnpPrivate {
353 : : CAPNP_DECLARE_STRUCT_HEADER(b277e9484368f871, 0, 0)
354 : : #if !CAPNP_LITE
355 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
356 : : #endif // !CAPNP_LITE
357 : : };
358 : : };
359 : :
360 : : struct BlockTemplate::GetBlockHeaderParams {
361 : : GetBlockHeaderParams() = delete;
362 : :
363 : : class Reader;
364 : : class Builder;
365 : : class Pipeline;
366 : :
367 : : struct _capnpPrivate {
368 : : CAPNP_DECLARE_STRUCT_HEADER(bc6e961d0c9fabcb, 0, 1)
369 : : #if !CAPNP_LITE
370 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
371 : : #endif // !CAPNP_LITE
372 : : };
373 : : };
374 : :
375 : : struct BlockTemplate::GetBlockHeaderResults {
376 : : GetBlockHeaderResults() = delete;
377 : :
378 : : class Reader;
379 : : class Builder;
380 : : class Pipeline;
381 : :
382 : : struct _capnpPrivate {
383 : : CAPNP_DECLARE_STRUCT_HEADER(be44866bf53ba50f, 0, 1)
384 : : #if !CAPNP_LITE
385 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
386 : : #endif // !CAPNP_LITE
387 : : };
388 : : };
389 : :
390 : : struct BlockTemplate::GetBlockParams {
391 : : GetBlockParams() = delete;
392 : :
393 : : class Reader;
394 : : class Builder;
395 : : class Pipeline;
396 : :
397 : : struct _capnpPrivate {
398 : : CAPNP_DECLARE_STRUCT_HEADER(b57adc0c09d3d8b9, 0, 1)
399 : : #if !CAPNP_LITE
400 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
401 : : #endif // !CAPNP_LITE
402 : : };
403 : : };
404 : :
405 : : struct BlockTemplate::GetBlockResults {
406 : : GetBlockResults() = delete;
407 : :
408 : : class Reader;
409 : : class Builder;
410 : : class Pipeline;
411 : :
412 : : struct _capnpPrivate {
413 : : CAPNP_DECLARE_STRUCT_HEADER(da570962f86bbd3b, 0, 1)
414 : : #if !CAPNP_LITE
415 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
416 : : #endif // !CAPNP_LITE
417 : : };
418 : : };
419 : :
420 : : struct BlockTemplate::GetTxFeesParams {
421 : : GetTxFeesParams() = delete;
422 : :
423 : : class Reader;
424 : : class Builder;
425 : : class Pipeline;
426 : :
427 : : struct _capnpPrivate {
428 : : CAPNP_DECLARE_STRUCT_HEADER(fc48c88871b654d6, 0, 1)
429 : : #if !CAPNP_LITE
430 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
431 : : #endif // !CAPNP_LITE
432 : : };
433 : : };
434 : :
435 : : struct BlockTemplate::GetTxFeesResults {
436 : : GetTxFeesResults() = delete;
437 : :
438 : : class Reader;
439 : : class Builder;
440 : : class Pipeline;
441 : :
442 : : struct _capnpPrivate {
443 : : CAPNP_DECLARE_STRUCT_HEADER(ce9419e947d3af78, 0, 1)
444 : : #if !CAPNP_LITE
445 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
446 : : #endif // !CAPNP_LITE
447 : : };
448 : : };
449 : :
450 : : struct BlockTemplate::GetTxSigopsParams {
451 : : GetTxSigopsParams() = delete;
452 : :
453 : : class Reader;
454 : : class Builder;
455 : : class Pipeline;
456 : :
457 : : struct _capnpPrivate {
458 : : CAPNP_DECLARE_STRUCT_HEADER(8f4dadf0be3aee81, 0, 1)
459 : : #if !CAPNP_LITE
460 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
461 : : #endif // !CAPNP_LITE
462 : : };
463 : : };
464 : :
465 : : struct BlockTemplate::GetTxSigopsResults {
466 : : GetTxSigopsResults() = delete;
467 : :
468 : : class Reader;
469 : : class Builder;
470 : : class Pipeline;
471 : :
472 : : struct _capnpPrivate {
473 : : CAPNP_DECLARE_STRUCT_HEADER(cf916f95f6f774fb, 0, 1)
474 : : #if !CAPNP_LITE
475 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
476 : : #endif // !CAPNP_LITE
477 : : };
478 : : };
479 : :
480 : : struct BlockTemplate::GetCoinbaseRawTxParams {
481 : : GetCoinbaseRawTxParams() = delete;
482 : :
483 : : class Reader;
484 : : class Builder;
485 : : class Pipeline;
486 : :
487 : : struct _capnpPrivate {
488 : : CAPNP_DECLARE_STRUCT_HEADER(fd4337e403fdc1b8, 0, 1)
489 : : #if !CAPNP_LITE
490 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
491 : : #endif // !CAPNP_LITE
492 : : };
493 : : };
494 : :
495 : : struct BlockTemplate::GetCoinbaseRawTxResults {
496 : : GetCoinbaseRawTxResults() = delete;
497 : :
498 : : class Reader;
499 : : class Builder;
500 : : class Pipeline;
501 : :
502 : : struct _capnpPrivate {
503 : : CAPNP_DECLARE_STRUCT_HEADER(e194427de3eafd96, 0, 1)
504 : : #if !CAPNP_LITE
505 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
506 : : #endif // !CAPNP_LITE
507 : : };
508 : : };
509 : :
510 : : struct BlockTemplate::GetCoinbaseCommitmentParams {
511 : : GetCoinbaseCommitmentParams() = delete;
512 : :
513 : : class Reader;
514 : : class Builder;
515 : : class Pipeline;
516 : :
517 : : struct _capnpPrivate {
518 : : CAPNP_DECLARE_STRUCT_HEADER(a12657e0ad662f4b, 0, 1)
519 : : #if !CAPNP_LITE
520 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
521 : : #endif // !CAPNP_LITE
522 : : };
523 : : };
524 : :
525 : : struct BlockTemplate::GetCoinbaseCommitmentResults {
526 : : GetCoinbaseCommitmentResults() = delete;
527 : :
528 : : class Reader;
529 : : class Builder;
530 : : class Pipeline;
531 : :
532 : : struct _capnpPrivate {
533 : : CAPNP_DECLARE_STRUCT_HEADER(da952a06f76488ff, 0, 1)
534 : : #if !CAPNP_LITE
535 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
536 : : #endif // !CAPNP_LITE
537 : : };
538 : : };
539 : :
540 : : struct BlockTemplate::GetWitnessCommitmentIndexParams {
541 : : GetWitnessCommitmentIndexParams() = delete;
542 : :
543 : : class Reader;
544 : : class Builder;
545 : : class Pipeline;
546 : :
547 : : struct _capnpPrivate {
548 : : CAPNP_DECLARE_STRUCT_HEADER(f6e81eb0866e3b87, 0, 1)
549 : : #if !CAPNP_LITE
550 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
551 : : #endif // !CAPNP_LITE
552 : : };
553 : : };
554 : :
555 : : struct BlockTemplate::GetWitnessCommitmentIndexResults {
556 : : GetWitnessCommitmentIndexResults() = delete;
557 : :
558 : : class Reader;
559 : : class Builder;
560 : : class Pipeline;
561 : :
562 : : struct _capnpPrivate {
563 : : CAPNP_DECLARE_STRUCT_HEADER(97f6899fb5e3c15f, 1, 0)
564 : : #if !CAPNP_LITE
565 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
566 : : #endif // !CAPNP_LITE
567 : : };
568 : : };
569 : :
570 : : struct BlockTemplate::GetCoinbaseMerklePathParams {
571 : : GetCoinbaseMerklePathParams() = delete;
572 : :
573 : : class Reader;
574 : : class Builder;
575 : : class Pipeline;
576 : :
577 : : struct _capnpPrivate {
578 : : CAPNP_DECLARE_STRUCT_HEADER(b726a965fac04db3, 0, 1)
579 : : #if !CAPNP_LITE
580 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
581 : : #endif // !CAPNP_LITE
582 : : };
583 : : };
584 : :
585 : : struct BlockTemplate::GetCoinbaseMerklePathResults {
586 : : GetCoinbaseMerklePathResults() = delete;
587 : :
588 : : class Reader;
589 : : class Builder;
590 : : class Pipeline;
591 : :
592 : : struct _capnpPrivate {
593 : : CAPNP_DECLARE_STRUCT_HEADER(dafdbfbfce655b00, 0, 1)
594 : : #if !CAPNP_LITE
595 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
596 : : #endif // !CAPNP_LITE
597 : : };
598 : : };
599 : :
600 : : struct BlockTemplate::SubmitSolutionParams {
601 : : SubmitSolutionParams() = delete;
602 : :
603 : : class Reader;
604 : : class Builder;
605 : : class Pipeline;
606 : :
607 : : struct _capnpPrivate {
608 : : CAPNP_DECLARE_STRUCT_HEADER(b889895bf2d4ecb1, 2, 2)
609 : : #if !CAPNP_LITE
610 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
611 : : #endif // !CAPNP_LITE
612 : : };
613 : : };
614 : :
615 : : struct BlockTemplate::SubmitSolutionResults {
616 : : SubmitSolutionResults() = delete;
617 : :
618 : : class Reader;
619 : : class Builder;
620 : : class Pipeline;
621 : :
622 : : struct _capnpPrivate {
623 : : CAPNP_DECLARE_STRUCT_HEADER(fe3cdff3007f0bc2, 1, 0)
624 : : #if !CAPNP_LITE
625 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
626 : : #endif // !CAPNP_LITE
627 : : };
628 : : };
629 : :
630 : : struct BlockTemplate::WaitNextParams {
631 : : WaitNextParams() = delete;
632 : :
633 : : class Reader;
634 : : class Builder;
635 : : class Pipeline;
636 : :
637 : : struct _capnpPrivate {
638 : : CAPNP_DECLARE_STRUCT_HEADER(ad59a21b4fc45f4c, 0, 2)
639 : : #if !CAPNP_LITE
640 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
641 : : #endif // !CAPNP_LITE
642 : : };
643 : : };
644 : :
645 : : struct BlockTemplate::WaitNextResults {
646 : : WaitNextResults() = delete;
647 : :
648 : : class Reader;
649 : : class Builder;
650 : : class Pipeline;
651 : :
652 : : struct _capnpPrivate {
653 : : CAPNP_DECLARE_STRUCT_HEADER(ce754302fc8eec5c, 0, 1)
654 : : #if !CAPNP_LITE
655 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
656 : : #endif // !CAPNP_LITE
657 : : };
658 : : };
659 : :
660 : : struct BlockTemplate::InterruptWaitParams {
661 : : InterruptWaitParams() = delete;
662 : :
663 : : class Reader;
664 : : class Builder;
665 : : class Pipeline;
666 : :
667 : : struct _capnpPrivate {
668 : : CAPNP_DECLARE_STRUCT_HEADER(906b8ff9a674f7b5, 0, 0)
669 : : #if !CAPNP_LITE
670 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
671 : : #endif // !CAPNP_LITE
672 : : };
673 : : };
674 : :
675 : : struct BlockTemplate::InterruptWaitResults {
676 : : InterruptWaitResults() = delete;
677 : :
678 : : class Reader;
679 : : class Builder;
680 : : class Pipeline;
681 : :
682 : : struct _capnpPrivate {
683 : : CAPNP_DECLARE_STRUCT_HEADER(90b22c39837a2b24, 0, 0)
684 : : #if !CAPNP_LITE
685 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
686 : : #endif // !CAPNP_LITE
687 : : };
688 : : };
689 : :
690 : : struct BlockTemplate::GetCoinbaseTxParams {
691 : : GetCoinbaseTxParams() = delete;
692 : :
693 : : class Reader;
694 : : class Builder;
695 : : class Pipeline;
696 : :
697 : : struct _capnpPrivate {
698 : : CAPNP_DECLARE_STRUCT_HEADER(ffb1b562b483d059, 0, 1)
699 : : #if !CAPNP_LITE
700 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
701 : : #endif // !CAPNP_LITE
702 : : };
703 : : };
704 : :
705 : : struct BlockTemplate::GetCoinbaseTxResults {
706 : : GetCoinbaseTxResults() = delete;
707 : :
708 : : class Reader;
709 : : class Builder;
710 : : class Pipeline;
711 : :
712 : : struct _capnpPrivate {
713 : : CAPNP_DECLARE_STRUCT_HEADER(98f68a677a3d473b, 0, 1)
714 : : #if !CAPNP_LITE
715 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
716 : : #endif // !CAPNP_LITE
717 : : };
718 : : };
719 : :
720 : : struct BlockCreateOptions {
721 : : BlockCreateOptions() = delete;
722 : :
723 : : class Reader;
724 : : class Builder;
725 : : class Pipeline;
726 : :
727 : : struct _capnpPrivate {
728 : : CAPNP_DECLARE_STRUCT_HEADER(80fca083ef81a559, 3, 0)
729 : : #if !CAPNP_LITE
730 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
731 : : #endif // !CAPNP_LITE
732 : : };
733 : : };
734 : :
735 : : struct BlockWaitOptions {
736 : : BlockWaitOptions() = delete;
737 : :
738 : : class Reader;
739 : : class Builder;
740 : : class Pipeline;
741 : :
742 : : struct _capnpPrivate {
743 : : CAPNP_DECLARE_STRUCT_HEADER(9ba437d9de0c452e, 2, 0)
744 : : #if !CAPNP_LITE
745 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
746 : : #endif // !CAPNP_LITE
747 : : };
748 : : };
749 : :
750 : : struct BlockCheckOptions {
751 : : BlockCheckOptions() = delete;
752 : :
753 : : class Reader;
754 : : class Builder;
755 : : class Pipeline;
756 : :
757 : : struct _capnpPrivate {
758 : : CAPNP_DECLARE_STRUCT_HEADER(89f3f39b6c9dd162, 1, 0)
759 : : #if !CAPNP_LITE
760 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
761 : : #endif // !CAPNP_LITE
762 : : };
763 : : };
764 : :
765 : : struct CoinbaseTx {
766 : : CoinbaseTx() = delete;
767 : :
768 : : class Reader;
769 : : class Builder;
770 : : class Pipeline;
771 : :
772 : : struct _capnpPrivate {
773 : : CAPNP_DECLARE_STRUCT_HEADER(dc399c6d34ae7e69, 3, 3)
774 : : #if !CAPNP_LITE
775 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
776 : : #endif // !CAPNP_LITE
777 : : };
778 : : };
779 : :
780 : : // =======================================================================================
781 : :
782 : : #if !CAPNP_LITE
783 [ # # # # ]: 0 : class Mining::Client
784 : : : public virtual ::capnp::Capability::Client {
785 : : public:
786 : : typedef Mining Calls;
787 : : typedef Mining Reads;
788 : :
789 : : Client(decltype(nullptr));
790 : : explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
791 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
792 : : Client(::kj::Own<_t>&& server);
793 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
794 : : Client(::kj::Promise<_t>&& promise);
795 : : Client(::kj::Exception&& exception);
796 : : Client(Client&) = default;
797 [ # # # # ]: 0 : Client(Client&&) = default;
798 : : Client& operator=(Client& other);
799 : : Client& operator=(Client&& other);
800 : :
801 : : ::capnp::Request< ::ipc::capnp::messages::Mining::IsTestChainParams, ::ipc::capnp::messages::Mining::IsTestChainResults> isTestChainRequest(
802 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
803 : : ::capnp::Request< ::ipc::capnp::messages::Mining::IsInitialBlockDownloadParams, ::ipc::capnp::messages::Mining::IsInitialBlockDownloadResults> isInitialBlockDownloadRequest(
804 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
805 : : ::capnp::Request< ::ipc::capnp::messages::Mining::GetTipParams, ::ipc::capnp::messages::Mining::GetTipResults> getTipRequest(
806 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
807 : : ::capnp::Request< ::ipc::capnp::messages::Mining::WaitTipChangedParams, ::ipc::capnp::messages::Mining::WaitTipChangedResults> waitTipChangedRequest(
808 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
809 : : ::capnp::Request< ::ipc::capnp::messages::Mining::CreateNewBlockParams, ::ipc::capnp::messages::Mining::CreateNewBlockResults> createNewBlockRequest(
810 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
811 : : ::capnp::Request< ::ipc::capnp::messages::Mining::CheckBlockParams, ::ipc::capnp::messages::Mining::CheckBlockResults> checkBlockRequest(
812 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
813 : :
814 : : protected:
815 : : Client() = default;
816 : : };
817 : :
818 : : class Mining::Server
819 : : : public virtual ::capnp::Capability::Server {
820 : : public:
821 : : typedef Mining Serves;
822 : :
823 : : ::capnp::Capability::Server::DispatchCallResult dispatchCall(
824 : : uint64_t interfaceId, uint16_t methodId,
825 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
826 : : override;
827 : :
828 : : protected:
829 : : typedef ::ipc::capnp::messages::Mining::IsTestChainParams IsTestChainParams;
830 : : typedef ::ipc::capnp::messages::Mining::IsTestChainResults IsTestChainResults;
831 : : typedef ::capnp::CallContext<IsTestChainParams, IsTestChainResults> IsTestChainContext;
832 : : virtual ::kj::Promise<void> isTestChain(IsTestChainContext context);
833 : : typedef ::ipc::capnp::messages::Mining::IsInitialBlockDownloadParams IsInitialBlockDownloadParams;
834 : : typedef ::ipc::capnp::messages::Mining::IsInitialBlockDownloadResults IsInitialBlockDownloadResults;
835 : : typedef ::capnp::CallContext<IsInitialBlockDownloadParams, IsInitialBlockDownloadResults> IsInitialBlockDownloadContext;
836 : : virtual ::kj::Promise<void> isInitialBlockDownload(IsInitialBlockDownloadContext context);
837 : : typedef ::ipc::capnp::messages::Mining::GetTipParams GetTipParams;
838 : : typedef ::ipc::capnp::messages::Mining::GetTipResults GetTipResults;
839 : : typedef ::capnp::CallContext<GetTipParams, GetTipResults> GetTipContext;
840 : : virtual ::kj::Promise<void> getTip(GetTipContext context);
841 : : typedef ::ipc::capnp::messages::Mining::WaitTipChangedParams WaitTipChangedParams;
842 : : typedef ::ipc::capnp::messages::Mining::WaitTipChangedResults WaitTipChangedResults;
843 : : typedef ::capnp::CallContext<WaitTipChangedParams, WaitTipChangedResults> WaitTipChangedContext;
844 : : virtual ::kj::Promise<void> waitTipChanged(WaitTipChangedContext context);
845 : : typedef ::ipc::capnp::messages::Mining::CreateNewBlockParams CreateNewBlockParams;
846 : : typedef ::ipc::capnp::messages::Mining::CreateNewBlockResults CreateNewBlockResults;
847 : : typedef ::capnp::CallContext<CreateNewBlockParams, CreateNewBlockResults> CreateNewBlockContext;
848 : : virtual ::kj::Promise<void> createNewBlock(CreateNewBlockContext context);
849 : : typedef ::ipc::capnp::messages::Mining::CheckBlockParams CheckBlockParams;
850 : : typedef ::ipc::capnp::messages::Mining::CheckBlockResults CheckBlockResults;
851 : : typedef ::capnp::CallContext<CheckBlockParams, CheckBlockResults> CheckBlockContext;
852 : : virtual ::kj::Promise<void> checkBlock(CheckBlockContext context);
853 : :
854 : : inline ::ipc::capnp::messages::Mining::Client thisCap() {
855 : : return ::capnp::Capability::Server::thisCap()
856 : : .template castAs< ::ipc::capnp::messages::Mining>();
857 : : }
858 : :
859 : : ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
860 : : uint16_t methodId,
861 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
862 : : };
863 : : #endif // !CAPNP_LITE
864 : :
865 : : class Mining::IsTestChainParams::Reader {
866 : : public:
867 : : typedef IsTestChainParams Reads;
868 : :
869 : : Reader() = default;
870 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
871 : :
872 : : inline ::capnp::MessageSize totalSize() const {
873 : : return _reader.totalSize().asPublic();
874 : : }
875 : :
876 : : #if !CAPNP_LITE
877 : 0 : inline ::kj::StringTree toString() const {
878 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
879 : : }
880 : : #endif // !CAPNP_LITE
881 : :
882 : : inline bool hasContext() const;
883 : : inline ::mp::Context::Reader getContext() const;
884 : :
885 : : private:
886 : : ::capnp::_::StructReader _reader;
887 : : template <typename, ::capnp::Kind>
888 : : friend struct ::capnp::ToDynamic_;
889 : : template <typename, ::capnp::Kind>
890 : : friend struct ::capnp::_::PointerHelpers;
891 : : template <typename, ::capnp::Kind>
892 : : friend struct ::capnp::List;
893 : : friend class ::capnp::MessageBuilder;
894 : : friend class ::capnp::Orphanage;
895 : : };
896 : :
897 : : class Mining::IsTestChainParams::Builder {
898 : : public:
899 : : typedef IsTestChainParams Builds;
900 : :
901 : : Builder() = delete; // Deleted to discourage incorrect usage.
902 : : // You can explicitly initialize to nullptr instead.
903 : : inline Builder(decltype(nullptr)) {}
904 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
905 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
906 : 0 : inline Reader asReader() const { return *this; }
907 : :
908 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
909 : : #if !CAPNP_LITE
910 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
911 : : #endif // !CAPNP_LITE
912 : :
913 : : inline bool hasContext();
914 : : inline ::mp::Context::Builder getContext();
915 : : inline void setContext( ::mp::Context::Reader value);
916 : : inline ::mp::Context::Builder initContext();
917 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
918 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
919 : :
920 : : private:
921 : : ::capnp::_::StructBuilder _builder;
922 : : template <typename, ::capnp::Kind>
923 : : friend struct ::capnp::ToDynamic_;
924 : : friend class ::capnp::Orphanage;
925 : : template <typename, ::capnp::Kind>
926 : : friend struct ::capnp::_::PointerHelpers;
927 : : };
928 : :
929 : : #if !CAPNP_LITE
930 : : class Mining::IsTestChainParams::Pipeline {
931 : : public:
932 : : typedef IsTestChainParams Pipelines;
933 : :
934 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
935 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
936 : : : _typeless(kj::mv(typeless)) {}
937 : :
938 : : inline ::mp::Context::Pipeline getContext();
939 : : private:
940 : : ::capnp::AnyPointer::Pipeline _typeless;
941 : : friend class ::capnp::PipelineHook;
942 : : template <typename, ::capnp::Kind>
943 : : friend struct ::capnp::ToDynamic_;
944 : : };
945 : : #endif // !CAPNP_LITE
946 : :
947 : : class Mining::IsTestChainResults::Reader {
948 : : public:
949 : : typedef IsTestChainResults Reads;
950 : :
951 : : Reader() = default;
952 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
953 : :
954 : : inline ::capnp::MessageSize totalSize() const {
955 : : return _reader.totalSize().asPublic();
956 : : }
957 : :
958 : : #if !CAPNP_LITE
959 : 0 : inline ::kj::StringTree toString() const {
960 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
961 : : }
962 : : #endif // !CAPNP_LITE
963 : :
964 : : inline bool getResult() const;
965 : :
966 : : private:
967 : : ::capnp::_::StructReader _reader;
968 : : template <typename, ::capnp::Kind>
969 : : friend struct ::capnp::ToDynamic_;
970 : : template <typename, ::capnp::Kind>
971 : : friend struct ::capnp::_::PointerHelpers;
972 : : template <typename, ::capnp::Kind>
973 : : friend struct ::capnp::List;
974 : : friend class ::capnp::MessageBuilder;
975 : : friend class ::capnp::Orphanage;
976 : : };
977 : :
978 : : class Mining::IsTestChainResults::Builder {
979 : : public:
980 : : typedef IsTestChainResults Builds;
981 : :
982 : : Builder() = delete; // Deleted to discourage incorrect usage.
983 : : // You can explicitly initialize to nullptr instead.
984 : : inline Builder(decltype(nullptr)) {}
985 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
986 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
987 : 0 : inline Reader asReader() const { return *this; }
988 : :
989 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
990 : : #if !CAPNP_LITE
991 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
992 : : #endif // !CAPNP_LITE
993 : :
994 : : inline bool getResult();
995 : : inline void setResult(bool value);
996 : :
997 : : private:
998 : : ::capnp::_::StructBuilder _builder;
999 : : template <typename, ::capnp::Kind>
1000 : : friend struct ::capnp::ToDynamic_;
1001 : : friend class ::capnp::Orphanage;
1002 : : template <typename, ::capnp::Kind>
1003 : : friend struct ::capnp::_::PointerHelpers;
1004 : : };
1005 : :
1006 : : #if !CAPNP_LITE
1007 [ # # ]: 0 : class Mining::IsTestChainResults::Pipeline {
1008 : : public:
1009 : : typedef IsTestChainResults Pipelines;
1010 : :
1011 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1012 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1013 : 0 : : _typeless(kj::mv(typeless)) {}
1014 : :
1015 : : private:
1016 : : ::capnp::AnyPointer::Pipeline _typeless;
1017 : : friend class ::capnp::PipelineHook;
1018 : : template <typename, ::capnp::Kind>
1019 : : friend struct ::capnp::ToDynamic_;
1020 : : };
1021 : : #endif // !CAPNP_LITE
1022 : :
1023 : : class Mining::IsInitialBlockDownloadParams::Reader {
1024 : : public:
1025 : : typedef IsInitialBlockDownloadParams Reads;
1026 : :
1027 : : Reader() = default;
1028 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1029 : :
1030 : : inline ::capnp::MessageSize totalSize() const {
1031 : : return _reader.totalSize().asPublic();
1032 : : }
1033 : :
1034 : : #if !CAPNP_LITE
1035 : 0 : inline ::kj::StringTree toString() const {
1036 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1037 : : }
1038 : : #endif // !CAPNP_LITE
1039 : :
1040 : : inline bool hasContext() const;
1041 : : inline ::mp::Context::Reader getContext() const;
1042 : :
1043 : : private:
1044 : : ::capnp::_::StructReader _reader;
1045 : : template <typename, ::capnp::Kind>
1046 : : friend struct ::capnp::ToDynamic_;
1047 : : template <typename, ::capnp::Kind>
1048 : : friend struct ::capnp::_::PointerHelpers;
1049 : : template <typename, ::capnp::Kind>
1050 : : friend struct ::capnp::List;
1051 : : friend class ::capnp::MessageBuilder;
1052 : : friend class ::capnp::Orphanage;
1053 : : };
1054 : :
1055 : : class Mining::IsInitialBlockDownloadParams::Builder {
1056 : : public:
1057 : : typedef IsInitialBlockDownloadParams Builds;
1058 : :
1059 : : Builder() = delete; // Deleted to discourage incorrect usage.
1060 : : // You can explicitly initialize to nullptr instead.
1061 : : inline Builder(decltype(nullptr)) {}
1062 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1063 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1064 : 0 : inline Reader asReader() const { return *this; }
1065 : :
1066 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1067 : : #if !CAPNP_LITE
1068 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1069 : : #endif // !CAPNP_LITE
1070 : :
1071 : : inline bool hasContext();
1072 : : inline ::mp::Context::Builder getContext();
1073 : : inline void setContext( ::mp::Context::Reader value);
1074 : : inline ::mp::Context::Builder initContext();
1075 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
1076 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
1077 : :
1078 : : private:
1079 : : ::capnp::_::StructBuilder _builder;
1080 : : template <typename, ::capnp::Kind>
1081 : : friend struct ::capnp::ToDynamic_;
1082 : : friend class ::capnp::Orphanage;
1083 : : template <typename, ::capnp::Kind>
1084 : : friend struct ::capnp::_::PointerHelpers;
1085 : : };
1086 : :
1087 : : #if !CAPNP_LITE
1088 : : class Mining::IsInitialBlockDownloadParams::Pipeline {
1089 : : public:
1090 : : typedef IsInitialBlockDownloadParams Pipelines;
1091 : :
1092 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1093 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1094 : : : _typeless(kj::mv(typeless)) {}
1095 : :
1096 : : inline ::mp::Context::Pipeline getContext();
1097 : : private:
1098 : : ::capnp::AnyPointer::Pipeline _typeless;
1099 : : friend class ::capnp::PipelineHook;
1100 : : template <typename, ::capnp::Kind>
1101 : : friend struct ::capnp::ToDynamic_;
1102 : : };
1103 : : #endif // !CAPNP_LITE
1104 : :
1105 : : class Mining::IsInitialBlockDownloadResults::Reader {
1106 : : public:
1107 : : typedef IsInitialBlockDownloadResults Reads;
1108 : :
1109 : : Reader() = default;
1110 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1111 : :
1112 : : inline ::capnp::MessageSize totalSize() const {
1113 : : return _reader.totalSize().asPublic();
1114 : : }
1115 : :
1116 : : #if !CAPNP_LITE
1117 : 0 : inline ::kj::StringTree toString() const {
1118 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1119 : : }
1120 : : #endif // !CAPNP_LITE
1121 : :
1122 : : inline bool getResult() const;
1123 : :
1124 : : private:
1125 : : ::capnp::_::StructReader _reader;
1126 : : template <typename, ::capnp::Kind>
1127 : : friend struct ::capnp::ToDynamic_;
1128 : : template <typename, ::capnp::Kind>
1129 : : friend struct ::capnp::_::PointerHelpers;
1130 : : template <typename, ::capnp::Kind>
1131 : : friend struct ::capnp::List;
1132 : : friend class ::capnp::MessageBuilder;
1133 : : friend class ::capnp::Orphanage;
1134 : : };
1135 : :
1136 : : class Mining::IsInitialBlockDownloadResults::Builder {
1137 : : public:
1138 : : typedef IsInitialBlockDownloadResults Builds;
1139 : :
1140 : : Builder() = delete; // Deleted to discourage incorrect usage.
1141 : : // You can explicitly initialize to nullptr instead.
1142 : : inline Builder(decltype(nullptr)) {}
1143 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1144 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1145 : 0 : inline Reader asReader() const { return *this; }
1146 : :
1147 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1148 : : #if !CAPNP_LITE
1149 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1150 : : #endif // !CAPNP_LITE
1151 : :
1152 : : inline bool getResult();
1153 : : inline void setResult(bool value);
1154 : :
1155 : : private:
1156 : : ::capnp::_::StructBuilder _builder;
1157 : : template <typename, ::capnp::Kind>
1158 : : friend struct ::capnp::ToDynamic_;
1159 : : friend class ::capnp::Orphanage;
1160 : : template <typename, ::capnp::Kind>
1161 : : friend struct ::capnp::_::PointerHelpers;
1162 : : };
1163 : :
1164 : : #if !CAPNP_LITE
1165 [ # # ]: 0 : class Mining::IsInitialBlockDownloadResults::Pipeline {
1166 : : public:
1167 : : typedef IsInitialBlockDownloadResults Pipelines;
1168 : :
1169 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1170 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1171 : 0 : : _typeless(kj::mv(typeless)) {}
1172 : :
1173 : : private:
1174 : : ::capnp::AnyPointer::Pipeline _typeless;
1175 : : friend class ::capnp::PipelineHook;
1176 : : template <typename, ::capnp::Kind>
1177 : : friend struct ::capnp::ToDynamic_;
1178 : : };
1179 : : #endif // !CAPNP_LITE
1180 : :
1181 : : class Mining::GetTipParams::Reader {
1182 : : public:
1183 : : typedef GetTipParams Reads;
1184 : :
1185 : : Reader() = default;
1186 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1187 : :
1188 : : inline ::capnp::MessageSize totalSize() const {
1189 : : return _reader.totalSize().asPublic();
1190 : : }
1191 : :
1192 : : #if !CAPNP_LITE
1193 : 0 : inline ::kj::StringTree toString() const {
1194 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1195 : : }
1196 : : #endif // !CAPNP_LITE
1197 : :
1198 : : inline bool hasContext() const;
1199 : : inline ::mp::Context::Reader getContext() const;
1200 : :
1201 : : private:
1202 : : ::capnp::_::StructReader _reader;
1203 : : template <typename, ::capnp::Kind>
1204 : : friend struct ::capnp::ToDynamic_;
1205 : : template <typename, ::capnp::Kind>
1206 : : friend struct ::capnp::_::PointerHelpers;
1207 : : template <typename, ::capnp::Kind>
1208 : : friend struct ::capnp::List;
1209 : : friend class ::capnp::MessageBuilder;
1210 : : friend class ::capnp::Orphanage;
1211 : : };
1212 : :
1213 : : class Mining::GetTipParams::Builder {
1214 : : public:
1215 : : typedef GetTipParams Builds;
1216 : :
1217 : : Builder() = delete; // Deleted to discourage incorrect usage.
1218 : : // You can explicitly initialize to nullptr instead.
1219 : : inline Builder(decltype(nullptr)) {}
1220 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1221 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1222 : 0 : inline Reader asReader() const { return *this; }
1223 : :
1224 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1225 : : #if !CAPNP_LITE
1226 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1227 : : #endif // !CAPNP_LITE
1228 : :
1229 : : inline bool hasContext();
1230 : : inline ::mp::Context::Builder getContext();
1231 : : inline void setContext( ::mp::Context::Reader value);
1232 : : inline ::mp::Context::Builder initContext();
1233 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
1234 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
1235 : :
1236 : : private:
1237 : : ::capnp::_::StructBuilder _builder;
1238 : : template <typename, ::capnp::Kind>
1239 : : friend struct ::capnp::ToDynamic_;
1240 : : friend class ::capnp::Orphanage;
1241 : : template <typename, ::capnp::Kind>
1242 : : friend struct ::capnp::_::PointerHelpers;
1243 : : };
1244 : :
1245 : : #if !CAPNP_LITE
1246 : : class Mining::GetTipParams::Pipeline {
1247 : : public:
1248 : : typedef GetTipParams Pipelines;
1249 : :
1250 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1251 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1252 : : : _typeless(kj::mv(typeless)) {}
1253 : :
1254 : : inline ::mp::Context::Pipeline getContext();
1255 : : private:
1256 : : ::capnp::AnyPointer::Pipeline _typeless;
1257 : : friend class ::capnp::PipelineHook;
1258 : : template <typename, ::capnp::Kind>
1259 : : friend struct ::capnp::ToDynamic_;
1260 : : };
1261 : : #endif // !CAPNP_LITE
1262 : :
1263 : : class Mining::GetTipResults::Reader {
1264 : : public:
1265 : : typedef GetTipResults Reads;
1266 : :
1267 : : Reader() = default;
1268 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1269 : :
1270 : : inline ::capnp::MessageSize totalSize() const {
1271 : : return _reader.totalSize().asPublic();
1272 : : }
1273 : :
1274 : : #if !CAPNP_LITE
1275 : 0 : inline ::kj::StringTree toString() const {
1276 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1277 : : }
1278 : : #endif // !CAPNP_LITE
1279 : :
1280 : : inline bool hasResult() const;
1281 : : inline ::ipc::capnp::messages::BlockRef::Reader getResult() const;
1282 : :
1283 : : inline bool getHasResult() const;
1284 : :
1285 : : private:
1286 : : ::capnp::_::StructReader _reader;
1287 : : template <typename, ::capnp::Kind>
1288 : : friend struct ::capnp::ToDynamic_;
1289 : : template <typename, ::capnp::Kind>
1290 : : friend struct ::capnp::_::PointerHelpers;
1291 : : template <typename, ::capnp::Kind>
1292 : : friend struct ::capnp::List;
1293 : : friend class ::capnp::MessageBuilder;
1294 : : friend class ::capnp::Orphanage;
1295 : : };
1296 : :
1297 : : class Mining::GetTipResults::Builder {
1298 : : public:
1299 : : typedef GetTipResults Builds;
1300 : :
1301 : : Builder() = delete; // Deleted to discourage incorrect usage.
1302 : : // You can explicitly initialize to nullptr instead.
1303 : : inline Builder(decltype(nullptr)) {}
1304 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1305 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1306 : 0 : inline Reader asReader() const { return *this; }
1307 : :
1308 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1309 : : #if !CAPNP_LITE
1310 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1311 : : #endif // !CAPNP_LITE
1312 : :
1313 : : inline bool hasResult();
1314 : : inline ::ipc::capnp::messages::BlockRef::Builder getResult();
1315 : : inline void setResult( ::ipc::capnp::messages::BlockRef::Reader value);
1316 : : inline ::ipc::capnp::messages::BlockRef::Builder initResult();
1317 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::BlockRef>&& value);
1318 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockRef> disownResult();
1319 : :
1320 : : inline bool getHasResult();
1321 : : inline void setHasResult(bool value);
1322 : :
1323 : : private:
1324 : : ::capnp::_::StructBuilder _builder;
1325 : : template <typename, ::capnp::Kind>
1326 : : friend struct ::capnp::ToDynamic_;
1327 : : friend class ::capnp::Orphanage;
1328 : : template <typename, ::capnp::Kind>
1329 : : friend struct ::capnp::_::PointerHelpers;
1330 : : };
1331 : :
1332 : : #if !CAPNP_LITE
1333 [ # # ]: 0 : class Mining::GetTipResults::Pipeline {
1334 : : public:
1335 : : typedef GetTipResults Pipelines;
1336 : :
1337 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1338 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1339 : 0 : : _typeless(kj::mv(typeless)) {}
1340 : :
1341 : : inline ::ipc::capnp::messages::BlockRef::Pipeline getResult();
1342 : : private:
1343 : : ::capnp::AnyPointer::Pipeline _typeless;
1344 : : friend class ::capnp::PipelineHook;
1345 : : template <typename, ::capnp::Kind>
1346 : : friend struct ::capnp::ToDynamic_;
1347 : : };
1348 : : #endif // !CAPNP_LITE
1349 : :
1350 : : class Mining::WaitTipChangedParams::Reader {
1351 : : public:
1352 : : typedef WaitTipChangedParams Reads;
1353 : :
1354 : : Reader() = default;
1355 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1356 : :
1357 : : inline ::capnp::MessageSize totalSize() const {
1358 : : return _reader.totalSize().asPublic();
1359 : : }
1360 : :
1361 : : #if !CAPNP_LITE
1362 : 0 : inline ::kj::StringTree toString() const {
1363 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1364 : : }
1365 : : #endif // !CAPNP_LITE
1366 : :
1367 : : inline bool hasContext() const;
1368 : : inline ::mp::Context::Reader getContext() const;
1369 : :
1370 : : inline bool hasCurrentTip() const;
1371 : : inline ::capnp::Data::Reader getCurrentTip() const;
1372 : :
1373 : : inline double getTimeout() const;
1374 : :
1375 : : private:
1376 : : ::capnp::_::StructReader _reader;
1377 : : template <typename, ::capnp::Kind>
1378 : : friend struct ::capnp::ToDynamic_;
1379 : : template <typename, ::capnp::Kind>
1380 : : friend struct ::capnp::_::PointerHelpers;
1381 : : template <typename, ::capnp::Kind>
1382 : : friend struct ::capnp::List;
1383 : : friend class ::capnp::MessageBuilder;
1384 : : friend class ::capnp::Orphanage;
1385 : : };
1386 : :
1387 : : class Mining::WaitTipChangedParams::Builder {
1388 : : public:
1389 : : typedef WaitTipChangedParams Builds;
1390 : :
1391 : : Builder() = delete; // Deleted to discourage incorrect usage.
1392 : : // You can explicitly initialize to nullptr instead.
1393 : : inline Builder(decltype(nullptr)) {}
1394 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1395 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1396 : 0 : inline Reader asReader() const { return *this; }
1397 : :
1398 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1399 : : #if !CAPNP_LITE
1400 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1401 : : #endif // !CAPNP_LITE
1402 : :
1403 : : inline bool hasContext();
1404 : : inline ::mp::Context::Builder getContext();
1405 : : inline void setContext( ::mp::Context::Reader value);
1406 : : inline ::mp::Context::Builder initContext();
1407 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
1408 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
1409 : :
1410 : : inline bool hasCurrentTip();
1411 : : inline ::capnp::Data::Builder getCurrentTip();
1412 : : inline void setCurrentTip( ::capnp::Data::Reader value);
1413 : : inline ::capnp::Data::Builder initCurrentTip(unsigned int size);
1414 : : inline void adoptCurrentTip(::capnp::Orphan< ::capnp::Data>&& value);
1415 : : inline ::capnp::Orphan< ::capnp::Data> disownCurrentTip();
1416 : :
1417 : : inline double getTimeout();
1418 : : inline void setTimeout(double value);
1419 : :
1420 : : private:
1421 : : ::capnp::_::StructBuilder _builder;
1422 : : template <typename, ::capnp::Kind>
1423 : : friend struct ::capnp::ToDynamic_;
1424 : : friend class ::capnp::Orphanage;
1425 : : template <typename, ::capnp::Kind>
1426 : : friend struct ::capnp::_::PointerHelpers;
1427 : : };
1428 : :
1429 : : #if !CAPNP_LITE
1430 : : class Mining::WaitTipChangedParams::Pipeline {
1431 : : public:
1432 : : typedef WaitTipChangedParams Pipelines;
1433 : :
1434 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1435 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1436 : : : _typeless(kj::mv(typeless)) {}
1437 : :
1438 : : inline ::mp::Context::Pipeline getContext();
1439 : : private:
1440 : : ::capnp::AnyPointer::Pipeline _typeless;
1441 : : friend class ::capnp::PipelineHook;
1442 : : template <typename, ::capnp::Kind>
1443 : : friend struct ::capnp::ToDynamic_;
1444 : : };
1445 : : #endif // !CAPNP_LITE
1446 : :
1447 : : class Mining::WaitTipChangedResults::Reader {
1448 : : public:
1449 : : typedef WaitTipChangedResults Reads;
1450 : :
1451 : : Reader() = default;
1452 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1453 : :
1454 : : inline ::capnp::MessageSize totalSize() const {
1455 : : return _reader.totalSize().asPublic();
1456 : : }
1457 : :
1458 : : #if !CAPNP_LITE
1459 : 0 : inline ::kj::StringTree toString() const {
1460 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1461 : : }
1462 : : #endif // !CAPNP_LITE
1463 : :
1464 : : inline bool hasResult() const;
1465 : : inline ::ipc::capnp::messages::BlockRef::Reader getResult() const;
1466 : :
1467 : : private:
1468 : : ::capnp::_::StructReader _reader;
1469 : : template <typename, ::capnp::Kind>
1470 : : friend struct ::capnp::ToDynamic_;
1471 : : template <typename, ::capnp::Kind>
1472 : : friend struct ::capnp::_::PointerHelpers;
1473 : : template <typename, ::capnp::Kind>
1474 : : friend struct ::capnp::List;
1475 : : friend class ::capnp::MessageBuilder;
1476 : : friend class ::capnp::Orphanage;
1477 : : };
1478 : :
1479 : : class Mining::WaitTipChangedResults::Builder {
1480 : : public:
1481 : : typedef WaitTipChangedResults Builds;
1482 : :
1483 : : Builder() = delete; // Deleted to discourage incorrect usage.
1484 : : // You can explicitly initialize to nullptr instead.
1485 : : inline Builder(decltype(nullptr)) {}
1486 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1487 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1488 : 0 : inline Reader asReader() const { return *this; }
1489 : :
1490 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1491 : : #if !CAPNP_LITE
1492 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1493 : : #endif // !CAPNP_LITE
1494 : :
1495 : : inline bool hasResult();
1496 : : inline ::ipc::capnp::messages::BlockRef::Builder getResult();
1497 : : inline void setResult( ::ipc::capnp::messages::BlockRef::Reader value);
1498 : : inline ::ipc::capnp::messages::BlockRef::Builder initResult();
1499 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::BlockRef>&& value);
1500 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockRef> disownResult();
1501 : :
1502 : : private:
1503 : : ::capnp::_::StructBuilder _builder;
1504 : : template <typename, ::capnp::Kind>
1505 : : friend struct ::capnp::ToDynamic_;
1506 : : friend class ::capnp::Orphanage;
1507 : : template <typename, ::capnp::Kind>
1508 : : friend struct ::capnp::_::PointerHelpers;
1509 : : };
1510 : :
1511 : : #if !CAPNP_LITE
1512 [ # # ]: 0 : class Mining::WaitTipChangedResults::Pipeline {
1513 : : public:
1514 : : typedef WaitTipChangedResults Pipelines;
1515 : :
1516 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1517 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1518 : 0 : : _typeless(kj::mv(typeless)) {}
1519 : :
1520 : : inline ::ipc::capnp::messages::BlockRef::Pipeline getResult();
1521 : : private:
1522 : : ::capnp::AnyPointer::Pipeline _typeless;
1523 : : friend class ::capnp::PipelineHook;
1524 : : template <typename, ::capnp::Kind>
1525 : : friend struct ::capnp::ToDynamic_;
1526 : : };
1527 : : #endif // !CAPNP_LITE
1528 : :
1529 : : class Mining::CreateNewBlockParams::Reader {
1530 : : public:
1531 : : typedef CreateNewBlockParams Reads;
1532 : :
1533 : : Reader() = default;
1534 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1535 : :
1536 : : inline ::capnp::MessageSize totalSize() const {
1537 : : return _reader.totalSize().asPublic();
1538 : : }
1539 : :
1540 : : #if !CAPNP_LITE
1541 : 0 : inline ::kj::StringTree toString() const {
1542 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1543 : : }
1544 : : #endif // !CAPNP_LITE
1545 : :
1546 : : inline bool hasOptions() const;
1547 : : inline ::ipc::capnp::messages::BlockCreateOptions::Reader getOptions() const;
1548 : :
1549 : : private:
1550 : : ::capnp::_::StructReader _reader;
1551 : : template <typename, ::capnp::Kind>
1552 : : friend struct ::capnp::ToDynamic_;
1553 : : template <typename, ::capnp::Kind>
1554 : : friend struct ::capnp::_::PointerHelpers;
1555 : : template <typename, ::capnp::Kind>
1556 : : friend struct ::capnp::List;
1557 : : friend class ::capnp::MessageBuilder;
1558 : : friend class ::capnp::Orphanage;
1559 : : };
1560 : :
1561 : : class Mining::CreateNewBlockParams::Builder {
1562 : : public:
1563 : : typedef CreateNewBlockParams Builds;
1564 : :
1565 : : Builder() = delete; // Deleted to discourage incorrect usage.
1566 : : // You can explicitly initialize to nullptr instead.
1567 : : inline Builder(decltype(nullptr)) {}
1568 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1569 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1570 : 0 : inline Reader asReader() const { return *this; }
1571 : :
1572 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1573 : : #if !CAPNP_LITE
1574 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1575 : : #endif // !CAPNP_LITE
1576 : :
1577 : : inline bool hasOptions();
1578 : : inline ::ipc::capnp::messages::BlockCreateOptions::Builder getOptions();
1579 : : inline void setOptions( ::ipc::capnp::messages::BlockCreateOptions::Reader value);
1580 : : inline ::ipc::capnp::messages::BlockCreateOptions::Builder initOptions();
1581 : : inline void adoptOptions(::capnp::Orphan< ::ipc::capnp::messages::BlockCreateOptions>&& value);
1582 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockCreateOptions> disownOptions();
1583 : :
1584 : : private:
1585 : : ::capnp::_::StructBuilder _builder;
1586 : : template <typename, ::capnp::Kind>
1587 : : friend struct ::capnp::ToDynamic_;
1588 : : friend class ::capnp::Orphanage;
1589 : : template <typename, ::capnp::Kind>
1590 : : friend struct ::capnp::_::PointerHelpers;
1591 : : };
1592 : :
1593 : : #if !CAPNP_LITE
1594 : : class Mining::CreateNewBlockParams::Pipeline {
1595 : : public:
1596 : : typedef CreateNewBlockParams Pipelines;
1597 : :
1598 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1599 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1600 : : : _typeless(kj::mv(typeless)) {}
1601 : :
1602 : : inline ::ipc::capnp::messages::BlockCreateOptions::Pipeline getOptions();
1603 : : private:
1604 : : ::capnp::AnyPointer::Pipeline _typeless;
1605 : : friend class ::capnp::PipelineHook;
1606 : : template <typename, ::capnp::Kind>
1607 : : friend struct ::capnp::ToDynamic_;
1608 : : };
1609 : : #endif // !CAPNP_LITE
1610 : :
1611 : : class Mining::CreateNewBlockResults::Reader {
1612 : : public:
1613 : : typedef CreateNewBlockResults Reads;
1614 : :
1615 : : Reader() = default;
1616 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1617 : :
1618 : : inline ::capnp::MessageSize totalSize() const {
1619 : : return _reader.totalSize().asPublic();
1620 : : }
1621 : :
1622 : : #if !CAPNP_LITE
1623 : 0 : inline ::kj::StringTree toString() const {
1624 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1625 : : }
1626 : : #endif // !CAPNP_LITE
1627 : :
1628 : : inline bool hasResult() const;
1629 : : #if !CAPNP_LITE
1630 : : inline ::ipc::capnp::messages::BlockTemplate::Client getResult() const;
1631 : : #endif // !CAPNP_LITE
1632 : :
1633 : : private:
1634 : : ::capnp::_::StructReader _reader;
1635 : : template <typename, ::capnp::Kind>
1636 : : friend struct ::capnp::ToDynamic_;
1637 : : template <typename, ::capnp::Kind>
1638 : : friend struct ::capnp::_::PointerHelpers;
1639 : : template <typename, ::capnp::Kind>
1640 : : friend struct ::capnp::List;
1641 : : friend class ::capnp::MessageBuilder;
1642 : : friend class ::capnp::Orphanage;
1643 : : };
1644 : :
1645 : : class Mining::CreateNewBlockResults::Builder {
1646 : : public:
1647 : : typedef CreateNewBlockResults Builds;
1648 : :
1649 : : Builder() = delete; // Deleted to discourage incorrect usage.
1650 : : // You can explicitly initialize to nullptr instead.
1651 : : inline Builder(decltype(nullptr)) {}
1652 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1653 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1654 : 0 : inline Reader asReader() const { return *this; }
1655 : :
1656 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1657 : : #if !CAPNP_LITE
1658 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1659 : : #endif // !CAPNP_LITE
1660 : :
1661 : : inline bool hasResult();
1662 : : #if !CAPNP_LITE
1663 : : inline ::ipc::capnp::messages::BlockTemplate::Client getResult();
1664 : : inline void setResult( ::ipc::capnp::messages::BlockTemplate::Client&& value);
1665 : : inline void setResult( ::ipc::capnp::messages::BlockTemplate::Client& value);
1666 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate>&& value);
1667 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate> disownResult();
1668 : : #endif // !CAPNP_LITE
1669 : :
1670 : : private:
1671 : : ::capnp::_::StructBuilder _builder;
1672 : : template <typename, ::capnp::Kind>
1673 : : friend struct ::capnp::ToDynamic_;
1674 : : friend class ::capnp::Orphanage;
1675 : : template <typename, ::capnp::Kind>
1676 : : friend struct ::capnp::_::PointerHelpers;
1677 : : };
1678 : :
1679 : : #if !CAPNP_LITE
1680 [ # # ]: 0 : class Mining::CreateNewBlockResults::Pipeline {
1681 : : public:
1682 : : typedef CreateNewBlockResults Pipelines;
1683 : :
1684 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1685 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1686 : 0 : : _typeless(kj::mv(typeless)) {}
1687 : :
1688 : : inline ::ipc::capnp::messages::BlockTemplate::Client getResult();
1689 : : private:
1690 : : ::capnp::AnyPointer::Pipeline _typeless;
1691 : : friend class ::capnp::PipelineHook;
1692 : : template <typename, ::capnp::Kind>
1693 : : friend struct ::capnp::ToDynamic_;
1694 : : };
1695 : : #endif // !CAPNP_LITE
1696 : :
1697 : : class Mining::CheckBlockParams::Reader {
1698 : : public:
1699 : : typedef CheckBlockParams Reads;
1700 : :
1701 : : Reader() = default;
1702 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1703 : :
1704 : : inline ::capnp::MessageSize totalSize() const {
1705 : : return _reader.totalSize().asPublic();
1706 : : }
1707 : :
1708 : : #if !CAPNP_LITE
1709 : 0 : inline ::kj::StringTree toString() const {
1710 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1711 : : }
1712 : : #endif // !CAPNP_LITE
1713 : :
1714 : : inline bool hasBlock() const;
1715 : : inline ::capnp::Data::Reader getBlock() const;
1716 : :
1717 : : inline bool hasOptions() const;
1718 : : inline ::ipc::capnp::messages::BlockCheckOptions::Reader getOptions() const;
1719 : :
1720 : : private:
1721 : : ::capnp::_::StructReader _reader;
1722 : : template <typename, ::capnp::Kind>
1723 : : friend struct ::capnp::ToDynamic_;
1724 : : template <typename, ::capnp::Kind>
1725 : : friend struct ::capnp::_::PointerHelpers;
1726 : : template <typename, ::capnp::Kind>
1727 : : friend struct ::capnp::List;
1728 : : friend class ::capnp::MessageBuilder;
1729 : : friend class ::capnp::Orphanage;
1730 : : };
1731 : :
1732 : : class Mining::CheckBlockParams::Builder {
1733 : : public:
1734 : : typedef CheckBlockParams Builds;
1735 : :
1736 : : Builder() = delete; // Deleted to discourage incorrect usage.
1737 : : // You can explicitly initialize to nullptr instead.
1738 : : inline Builder(decltype(nullptr)) {}
1739 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1740 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1741 : 0 : inline Reader asReader() const { return *this; }
1742 : :
1743 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1744 : : #if !CAPNP_LITE
1745 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1746 : : #endif // !CAPNP_LITE
1747 : :
1748 : : inline bool hasBlock();
1749 : : inline ::capnp::Data::Builder getBlock();
1750 : : inline void setBlock( ::capnp::Data::Reader value);
1751 : : inline ::capnp::Data::Builder initBlock(unsigned int size);
1752 : : inline void adoptBlock(::capnp::Orphan< ::capnp::Data>&& value);
1753 : : inline ::capnp::Orphan< ::capnp::Data> disownBlock();
1754 : :
1755 : : inline bool hasOptions();
1756 : : inline ::ipc::capnp::messages::BlockCheckOptions::Builder getOptions();
1757 : : inline void setOptions( ::ipc::capnp::messages::BlockCheckOptions::Reader value);
1758 : : inline ::ipc::capnp::messages::BlockCheckOptions::Builder initOptions();
1759 : : inline void adoptOptions(::capnp::Orphan< ::ipc::capnp::messages::BlockCheckOptions>&& value);
1760 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockCheckOptions> disownOptions();
1761 : :
1762 : : private:
1763 : : ::capnp::_::StructBuilder _builder;
1764 : : template <typename, ::capnp::Kind>
1765 : : friend struct ::capnp::ToDynamic_;
1766 : : friend class ::capnp::Orphanage;
1767 : : template <typename, ::capnp::Kind>
1768 : : friend struct ::capnp::_::PointerHelpers;
1769 : : };
1770 : :
1771 : : #if !CAPNP_LITE
1772 : : class Mining::CheckBlockParams::Pipeline {
1773 : : public:
1774 : : typedef CheckBlockParams Pipelines;
1775 : :
1776 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1777 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1778 : : : _typeless(kj::mv(typeless)) {}
1779 : :
1780 : : inline ::ipc::capnp::messages::BlockCheckOptions::Pipeline getOptions();
1781 : : private:
1782 : : ::capnp::AnyPointer::Pipeline _typeless;
1783 : : friend class ::capnp::PipelineHook;
1784 : : template <typename, ::capnp::Kind>
1785 : : friend struct ::capnp::ToDynamic_;
1786 : : };
1787 : : #endif // !CAPNP_LITE
1788 : :
1789 : : class Mining::CheckBlockResults::Reader {
1790 : : public:
1791 : : typedef CheckBlockResults Reads;
1792 : :
1793 : : Reader() = default;
1794 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1795 : :
1796 : : inline ::capnp::MessageSize totalSize() const {
1797 : : return _reader.totalSize().asPublic();
1798 : : }
1799 : :
1800 : : #if !CAPNP_LITE
1801 : 0 : inline ::kj::StringTree toString() const {
1802 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1803 : : }
1804 : : #endif // !CAPNP_LITE
1805 : :
1806 : : inline bool hasReason() const;
1807 : : inline ::capnp::Text::Reader getReason() const;
1808 : :
1809 : : inline bool hasDebug() const;
1810 : : inline ::capnp::Text::Reader getDebug() const;
1811 : :
1812 : : inline bool getResult() const;
1813 : :
1814 : : private:
1815 : : ::capnp::_::StructReader _reader;
1816 : : template <typename, ::capnp::Kind>
1817 : : friend struct ::capnp::ToDynamic_;
1818 : : template <typename, ::capnp::Kind>
1819 : : friend struct ::capnp::_::PointerHelpers;
1820 : : template <typename, ::capnp::Kind>
1821 : : friend struct ::capnp::List;
1822 : : friend class ::capnp::MessageBuilder;
1823 : : friend class ::capnp::Orphanage;
1824 : : };
1825 : :
1826 : : class Mining::CheckBlockResults::Builder {
1827 : : public:
1828 : : typedef CheckBlockResults Builds;
1829 : :
1830 : : Builder() = delete; // Deleted to discourage incorrect usage.
1831 : : // You can explicitly initialize to nullptr instead.
1832 : : inline Builder(decltype(nullptr)) {}
1833 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1834 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
1835 : 0 : inline Reader asReader() const { return *this; }
1836 : :
1837 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1838 : : #if !CAPNP_LITE
1839 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1840 : : #endif // !CAPNP_LITE
1841 : :
1842 : : inline bool hasReason();
1843 : : inline ::capnp::Text::Builder getReason();
1844 : : inline void setReason( ::capnp::Text::Reader value);
1845 : : inline ::capnp::Text::Builder initReason(unsigned int size);
1846 : : inline void adoptReason(::capnp::Orphan< ::capnp::Text>&& value);
1847 : : inline ::capnp::Orphan< ::capnp::Text> disownReason();
1848 : :
1849 : : inline bool hasDebug();
1850 : : inline ::capnp::Text::Builder getDebug();
1851 : : inline void setDebug( ::capnp::Text::Reader value);
1852 : : inline ::capnp::Text::Builder initDebug(unsigned int size);
1853 : : inline void adoptDebug(::capnp::Orphan< ::capnp::Text>&& value);
1854 : : inline ::capnp::Orphan< ::capnp::Text> disownDebug();
1855 : :
1856 : : inline bool getResult();
1857 : : inline void setResult(bool value);
1858 : :
1859 : : private:
1860 : : ::capnp::_::StructBuilder _builder;
1861 : : template <typename, ::capnp::Kind>
1862 : : friend struct ::capnp::ToDynamic_;
1863 : : friend class ::capnp::Orphanage;
1864 : : template <typename, ::capnp::Kind>
1865 : : friend struct ::capnp::_::PointerHelpers;
1866 : : };
1867 : :
1868 : : #if !CAPNP_LITE
1869 [ # # ]: 0 : class Mining::CheckBlockResults::Pipeline {
1870 : : public:
1871 : : typedef CheckBlockResults Pipelines;
1872 : :
1873 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1874 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1875 : 0 : : _typeless(kj::mv(typeless)) {}
1876 : :
1877 : : private:
1878 : : ::capnp::AnyPointer::Pipeline _typeless;
1879 : : friend class ::capnp::PipelineHook;
1880 : : template <typename, ::capnp::Kind>
1881 : : friend struct ::capnp::ToDynamic_;
1882 : : };
1883 : : #endif // !CAPNP_LITE
1884 : :
1885 : : #if !CAPNP_LITE
1886 [ # # # # ]: 0 : class BlockTemplate::Client
1887 : : : public virtual ::capnp::Capability::Client {
1888 : : public:
1889 : : typedef BlockTemplate Calls;
1890 : : typedef BlockTemplate Reads;
1891 : :
1892 : : Client(decltype(nullptr));
1893 : : explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
1894 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
1895 : : Client(::kj::Own<_t>&& server);
1896 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
1897 : : Client(::kj::Promise<_t>&& promise);
1898 : : Client(::kj::Exception&& exception);
1899 : : Client(Client&) = default;
1900 [ # # # # ]: 0 : Client(Client&&) = default;
1901 : : Client& operator=(Client& other);
1902 : : Client& operator=(Client&& other);
1903 : :
1904 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::DestroyParams, ::ipc::capnp::messages::BlockTemplate::DestroyResults> destroyRequest(
1905 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1906 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetBlockHeaderParams, ::ipc::capnp::messages::BlockTemplate::GetBlockHeaderResults> getBlockHeaderRequest(
1907 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1908 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetBlockParams, ::ipc::capnp::messages::BlockTemplate::GetBlockResults> getBlockRequest(
1909 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1910 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetTxFeesParams, ::ipc::capnp::messages::BlockTemplate::GetTxFeesResults> getTxFeesRequest(
1911 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1912 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetTxSigopsParams, ::ipc::capnp::messages::BlockTemplate::GetTxSigopsResults> getTxSigopsRequest(
1913 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1914 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetCoinbaseRawTxParams, ::ipc::capnp::messages::BlockTemplate::GetCoinbaseRawTxResults> getCoinbaseRawTxRequest(
1915 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1916 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetCoinbaseCommitmentParams, ::ipc::capnp::messages::BlockTemplate::GetCoinbaseCommitmentResults> getCoinbaseCommitmentRequest(
1917 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1918 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetWitnessCommitmentIndexParams, ::ipc::capnp::messages::BlockTemplate::GetWitnessCommitmentIndexResults> getWitnessCommitmentIndexRequest(
1919 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1920 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetCoinbaseMerklePathParams, ::ipc::capnp::messages::BlockTemplate::GetCoinbaseMerklePathResults> getCoinbaseMerklePathRequest(
1921 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1922 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::SubmitSolutionParams, ::ipc::capnp::messages::BlockTemplate::SubmitSolutionResults> submitSolutionRequest(
1923 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1924 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::WaitNextParams, ::ipc::capnp::messages::BlockTemplate::WaitNextResults> waitNextRequest(
1925 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1926 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::InterruptWaitParams, ::ipc::capnp::messages::BlockTemplate::InterruptWaitResults> interruptWaitRequest(
1927 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1928 : : ::capnp::Request< ::ipc::capnp::messages::BlockTemplate::GetCoinbaseTxParams, ::ipc::capnp::messages::BlockTemplate::GetCoinbaseTxResults> getCoinbaseTxRequest(
1929 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
1930 : :
1931 : : protected:
1932 : : Client() = default;
1933 : : };
1934 : :
1935 : : class BlockTemplate::Server
1936 : : : public virtual ::capnp::Capability::Server {
1937 : : public:
1938 : : typedef BlockTemplate Serves;
1939 : :
1940 : : ::capnp::Capability::Server::DispatchCallResult dispatchCall(
1941 : : uint64_t interfaceId, uint16_t methodId,
1942 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
1943 : : override;
1944 : :
1945 : : protected:
1946 : : typedef ::ipc::capnp::messages::BlockTemplate::DestroyParams DestroyParams;
1947 : : typedef ::ipc::capnp::messages::BlockTemplate::DestroyResults DestroyResults;
1948 : : typedef ::capnp::CallContext<DestroyParams, DestroyResults> DestroyContext;
1949 : : virtual ::kj::Promise<void> destroy(DestroyContext context);
1950 : : typedef ::ipc::capnp::messages::BlockTemplate::GetBlockHeaderParams GetBlockHeaderParams;
1951 : : typedef ::ipc::capnp::messages::BlockTemplate::GetBlockHeaderResults GetBlockHeaderResults;
1952 : : typedef ::capnp::CallContext<GetBlockHeaderParams, GetBlockHeaderResults> GetBlockHeaderContext;
1953 : : virtual ::kj::Promise<void> getBlockHeader(GetBlockHeaderContext context);
1954 : : typedef ::ipc::capnp::messages::BlockTemplate::GetBlockParams GetBlockParams;
1955 : : typedef ::ipc::capnp::messages::BlockTemplate::GetBlockResults GetBlockResults;
1956 : : typedef ::capnp::CallContext<GetBlockParams, GetBlockResults> GetBlockContext;
1957 : : virtual ::kj::Promise<void> getBlock(GetBlockContext context);
1958 : : typedef ::ipc::capnp::messages::BlockTemplate::GetTxFeesParams GetTxFeesParams;
1959 : : typedef ::ipc::capnp::messages::BlockTemplate::GetTxFeesResults GetTxFeesResults;
1960 : : typedef ::capnp::CallContext<GetTxFeesParams, GetTxFeesResults> GetTxFeesContext;
1961 : : virtual ::kj::Promise<void> getTxFees(GetTxFeesContext context);
1962 : : typedef ::ipc::capnp::messages::BlockTemplate::GetTxSigopsParams GetTxSigopsParams;
1963 : : typedef ::ipc::capnp::messages::BlockTemplate::GetTxSigopsResults GetTxSigopsResults;
1964 : : typedef ::capnp::CallContext<GetTxSigopsParams, GetTxSigopsResults> GetTxSigopsContext;
1965 : : virtual ::kj::Promise<void> getTxSigops(GetTxSigopsContext context);
1966 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseRawTxParams GetCoinbaseRawTxParams;
1967 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseRawTxResults GetCoinbaseRawTxResults;
1968 : : typedef ::capnp::CallContext<GetCoinbaseRawTxParams, GetCoinbaseRawTxResults> GetCoinbaseRawTxContext;
1969 : : virtual ::kj::Promise<void> getCoinbaseRawTx(GetCoinbaseRawTxContext context);
1970 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseCommitmentParams GetCoinbaseCommitmentParams;
1971 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseCommitmentResults GetCoinbaseCommitmentResults;
1972 : : typedef ::capnp::CallContext<GetCoinbaseCommitmentParams, GetCoinbaseCommitmentResults> GetCoinbaseCommitmentContext;
1973 : : virtual ::kj::Promise<void> getCoinbaseCommitment(GetCoinbaseCommitmentContext context);
1974 : : typedef ::ipc::capnp::messages::BlockTemplate::GetWitnessCommitmentIndexParams GetWitnessCommitmentIndexParams;
1975 : : typedef ::ipc::capnp::messages::BlockTemplate::GetWitnessCommitmentIndexResults GetWitnessCommitmentIndexResults;
1976 : : typedef ::capnp::CallContext<GetWitnessCommitmentIndexParams, GetWitnessCommitmentIndexResults> GetWitnessCommitmentIndexContext;
1977 : : virtual ::kj::Promise<void> getWitnessCommitmentIndex(GetWitnessCommitmentIndexContext context);
1978 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseMerklePathParams GetCoinbaseMerklePathParams;
1979 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseMerklePathResults GetCoinbaseMerklePathResults;
1980 : : typedef ::capnp::CallContext<GetCoinbaseMerklePathParams, GetCoinbaseMerklePathResults> GetCoinbaseMerklePathContext;
1981 : : virtual ::kj::Promise<void> getCoinbaseMerklePath(GetCoinbaseMerklePathContext context);
1982 : : typedef ::ipc::capnp::messages::BlockTemplate::SubmitSolutionParams SubmitSolutionParams;
1983 : : typedef ::ipc::capnp::messages::BlockTemplate::SubmitSolutionResults SubmitSolutionResults;
1984 : : typedef ::capnp::CallContext<SubmitSolutionParams, SubmitSolutionResults> SubmitSolutionContext;
1985 : : virtual ::kj::Promise<void> submitSolution(SubmitSolutionContext context);
1986 : : typedef ::ipc::capnp::messages::BlockTemplate::WaitNextParams WaitNextParams;
1987 : : typedef ::ipc::capnp::messages::BlockTemplate::WaitNextResults WaitNextResults;
1988 : : typedef ::capnp::CallContext<WaitNextParams, WaitNextResults> WaitNextContext;
1989 : : virtual ::kj::Promise<void> waitNext(WaitNextContext context);
1990 : : typedef ::ipc::capnp::messages::BlockTemplate::InterruptWaitParams InterruptWaitParams;
1991 : : typedef ::ipc::capnp::messages::BlockTemplate::InterruptWaitResults InterruptWaitResults;
1992 : : typedef ::capnp::CallContext<InterruptWaitParams, InterruptWaitResults> InterruptWaitContext;
1993 : : virtual ::kj::Promise<void> interruptWait(InterruptWaitContext context);
1994 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseTxParams GetCoinbaseTxParams;
1995 : : typedef ::ipc::capnp::messages::BlockTemplate::GetCoinbaseTxResults GetCoinbaseTxResults;
1996 : : typedef ::capnp::CallContext<GetCoinbaseTxParams, GetCoinbaseTxResults> GetCoinbaseTxContext;
1997 : : virtual ::kj::Promise<void> getCoinbaseTx(GetCoinbaseTxContext context);
1998 : :
1999 : : inline ::ipc::capnp::messages::BlockTemplate::Client thisCap() {
2000 : : return ::capnp::Capability::Server::thisCap()
2001 : : .template castAs< ::ipc::capnp::messages::BlockTemplate>();
2002 : : }
2003 : :
2004 : : ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
2005 : : uint16_t methodId,
2006 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
2007 : : };
2008 : : #endif // !CAPNP_LITE
2009 : :
2010 : : class BlockTemplate::DestroyParams::Reader {
2011 : : public:
2012 : : typedef DestroyParams Reads;
2013 : :
2014 : : Reader() = default;
2015 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2016 : :
2017 : : inline ::capnp::MessageSize totalSize() const {
2018 : : return _reader.totalSize().asPublic();
2019 : : }
2020 : :
2021 : : #if !CAPNP_LITE
2022 : 0 : inline ::kj::StringTree toString() const {
2023 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2024 : : }
2025 : : #endif // !CAPNP_LITE
2026 : :
2027 : : inline bool hasContext() const;
2028 : : inline ::mp::Context::Reader getContext() const;
2029 : :
2030 : : private:
2031 : : ::capnp::_::StructReader _reader;
2032 : : template <typename, ::capnp::Kind>
2033 : : friend struct ::capnp::ToDynamic_;
2034 : : template <typename, ::capnp::Kind>
2035 : : friend struct ::capnp::_::PointerHelpers;
2036 : : template <typename, ::capnp::Kind>
2037 : : friend struct ::capnp::List;
2038 : : friend class ::capnp::MessageBuilder;
2039 : : friend class ::capnp::Orphanage;
2040 : : };
2041 : :
2042 : : class BlockTemplate::DestroyParams::Builder {
2043 : : public:
2044 : : typedef DestroyParams Builds;
2045 : :
2046 : : Builder() = delete; // Deleted to discourage incorrect usage.
2047 : : // You can explicitly initialize to nullptr instead.
2048 : : inline Builder(decltype(nullptr)) {}
2049 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2050 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2051 : 0 : inline Reader asReader() const { return *this; }
2052 : :
2053 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2054 : : #if !CAPNP_LITE
2055 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2056 : : #endif // !CAPNP_LITE
2057 : :
2058 : : inline bool hasContext();
2059 : : inline ::mp::Context::Builder getContext();
2060 : : inline void setContext( ::mp::Context::Reader value);
2061 : : inline ::mp::Context::Builder initContext();
2062 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
2063 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
2064 : :
2065 : : private:
2066 : : ::capnp::_::StructBuilder _builder;
2067 : : template <typename, ::capnp::Kind>
2068 : : friend struct ::capnp::ToDynamic_;
2069 : : friend class ::capnp::Orphanage;
2070 : : template <typename, ::capnp::Kind>
2071 : : friend struct ::capnp::_::PointerHelpers;
2072 : : };
2073 : :
2074 : : #if !CAPNP_LITE
2075 : : class BlockTemplate::DestroyParams::Pipeline {
2076 : : public:
2077 : : typedef DestroyParams Pipelines;
2078 : :
2079 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2080 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2081 : : : _typeless(kj::mv(typeless)) {}
2082 : :
2083 : : inline ::mp::Context::Pipeline getContext();
2084 : : private:
2085 : : ::capnp::AnyPointer::Pipeline _typeless;
2086 : : friend class ::capnp::PipelineHook;
2087 : : template <typename, ::capnp::Kind>
2088 : : friend struct ::capnp::ToDynamic_;
2089 : : };
2090 : : #endif // !CAPNP_LITE
2091 : :
2092 : : class BlockTemplate::DestroyResults::Reader {
2093 : : public:
2094 : : typedef DestroyResults Reads;
2095 : :
2096 : : Reader() = default;
2097 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2098 : :
2099 : : inline ::capnp::MessageSize totalSize() const {
2100 : : return _reader.totalSize().asPublic();
2101 : : }
2102 : :
2103 : : #if !CAPNP_LITE
2104 : 0 : inline ::kj::StringTree toString() const {
2105 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2106 : : }
2107 : : #endif // !CAPNP_LITE
2108 : :
2109 : : private:
2110 : : ::capnp::_::StructReader _reader;
2111 : : template <typename, ::capnp::Kind>
2112 : : friend struct ::capnp::ToDynamic_;
2113 : : template <typename, ::capnp::Kind>
2114 : : friend struct ::capnp::_::PointerHelpers;
2115 : : template <typename, ::capnp::Kind>
2116 : : friend struct ::capnp::List;
2117 : : friend class ::capnp::MessageBuilder;
2118 : : friend class ::capnp::Orphanage;
2119 : : };
2120 : :
2121 : : class BlockTemplate::DestroyResults::Builder {
2122 : : public:
2123 : : typedef DestroyResults Builds;
2124 : :
2125 : : Builder() = delete; // Deleted to discourage incorrect usage.
2126 : : // You can explicitly initialize to nullptr instead.
2127 : : inline Builder(decltype(nullptr)) {}
2128 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2129 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2130 : 0 : inline Reader asReader() const { return *this; }
2131 : :
2132 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2133 : : #if !CAPNP_LITE
2134 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2135 : : #endif // !CAPNP_LITE
2136 : :
2137 : : private:
2138 : : ::capnp::_::StructBuilder _builder;
2139 : : template <typename, ::capnp::Kind>
2140 : : friend struct ::capnp::ToDynamic_;
2141 : : friend class ::capnp::Orphanage;
2142 : : template <typename, ::capnp::Kind>
2143 : : friend struct ::capnp::_::PointerHelpers;
2144 : : };
2145 : :
2146 : : #if !CAPNP_LITE
2147 [ # # ]: 0 : class BlockTemplate::DestroyResults::Pipeline {
2148 : : public:
2149 : : typedef DestroyResults Pipelines;
2150 : :
2151 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2152 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2153 : 0 : : _typeless(kj::mv(typeless)) {}
2154 : :
2155 : : private:
2156 : : ::capnp::AnyPointer::Pipeline _typeless;
2157 : : friend class ::capnp::PipelineHook;
2158 : : template <typename, ::capnp::Kind>
2159 : : friend struct ::capnp::ToDynamic_;
2160 : : };
2161 : : #endif // !CAPNP_LITE
2162 : :
2163 : : class BlockTemplate::GetBlockHeaderParams::Reader {
2164 : : public:
2165 : : typedef GetBlockHeaderParams Reads;
2166 : :
2167 : : Reader() = default;
2168 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2169 : :
2170 : : inline ::capnp::MessageSize totalSize() const {
2171 : : return _reader.totalSize().asPublic();
2172 : : }
2173 : :
2174 : : #if !CAPNP_LITE
2175 : 0 : inline ::kj::StringTree toString() const {
2176 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2177 : : }
2178 : : #endif // !CAPNP_LITE
2179 : :
2180 : : inline bool hasContext() const;
2181 : : inline ::mp::Context::Reader getContext() const;
2182 : :
2183 : : private:
2184 : : ::capnp::_::StructReader _reader;
2185 : : template <typename, ::capnp::Kind>
2186 : : friend struct ::capnp::ToDynamic_;
2187 : : template <typename, ::capnp::Kind>
2188 : : friend struct ::capnp::_::PointerHelpers;
2189 : : template <typename, ::capnp::Kind>
2190 : : friend struct ::capnp::List;
2191 : : friend class ::capnp::MessageBuilder;
2192 : : friend class ::capnp::Orphanage;
2193 : : };
2194 : :
2195 : : class BlockTemplate::GetBlockHeaderParams::Builder {
2196 : : public:
2197 : : typedef GetBlockHeaderParams Builds;
2198 : :
2199 : : Builder() = delete; // Deleted to discourage incorrect usage.
2200 : : // You can explicitly initialize to nullptr instead.
2201 : : inline Builder(decltype(nullptr)) {}
2202 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2203 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2204 : 0 : inline Reader asReader() const { return *this; }
2205 : :
2206 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2207 : : #if !CAPNP_LITE
2208 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2209 : : #endif // !CAPNP_LITE
2210 : :
2211 : : inline bool hasContext();
2212 : : inline ::mp::Context::Builder getContext();
2213 : : inline void setContext( ::mp::Context::Reader value);
2214 : : inline ::mp::Context::Builder initContext();
2215 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
2216 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
2217 : :
2218 : : private:
2219 : : ::capnp::_::StructBuilder _builder;
2220 : : template <typename, ::capnp::Kind>
2221 : : friend struct ::capnp::ToDynamic_;
2222 : : friend class ::capnp::Orphanage;
2223 : : template <typename, ::capnp::Kind>
2224 : : friend struct ::capnp::_::PointerHelpers;
2225 : : };
2226 : :
2227 : : #if !CAPNP_LITE
2228 : : class BlockTemplate::GetBlockHeaderParams::Pipeline {
2229 : : public:
2230 : : typedef GetBlockHeaderParams Pipelines;
2231 : :
2232 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2233 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2234 : : : _typeless(kj::mv(typeless)) {}
2235 : :
2236 : : inline ::mp::Context::Pipeline getContext();
2237 : : private:
2238 : : ::capnp::AnyPointer::Pipeline _typeless;
2239 : : friend class ::capnp::PipelineHook;
2240 : : template <typename, ::capnp::Kind>
2241 : : friend struct ::capnp::ToDynamic_;
2242 : : };
2243 : : #endif // !CAPNP_LITE
2244 : :
2245 : : class BlockTemplate::GetBlockHeaderResults::Reader {
2246 : : public:
2247 : : typedef GetBlockHeaderResults Reads;
2248 : :
2249 : : Reader() = default;
2250 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2251 : :
2252 : : inline ::capnp::MessageSize totalSize() const {
2253 : : return _reader.totalSize().asPublic();
2254 : : }
2255 : :
2256 : : #if !CAPNP_LITE
2257 : 0 : inline ::kj::StringTree toString() const {
2258 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2259 : : }
2260 : : #endif // !CAPNP_LITE
2261 : :
2262 : : inline bool hasResult() const;
2263 : : inline ::capnp::Data::Reader getResult() const;
2264 : :
2265 : : private:
2266 : : ::capnp::_::StructReader _reader;
2267 : : template <typename, ::capnp::Kind>
2268 : : friend struct ::capnp::ToDynamic_;
2269 : : template <typename, ::capnp::Kind>
2270 : : friend struct ::capnp::_::PointerHelpers;
2271 : : template <typename, ::capnp::Kind>
2272 : : friend struct ::capnp::List;
2273 : : friend class ::capnp::MessageBuilder;
2274 : : friend class ::capnp::Orphanage;
2275 : : };
2276 : :
2277 : : class BlockTemplate::GetBlockHeaderResults::Builder {
2278 : : public:
2279 : : typedef GetBlockHeaderResults Builds;
2280 : :
2281 : : Builder() = delete; // Deleted to discourage incorrect usage.
2282 : : // You can explicitly initialize to nullptr instead.
2283 : : inline Builder(decltype(nullptr)) {}
2284 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2285 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2286 : 0 : inline Reader asReader() const { return *this; }
2287 : :
2288 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2289 : : #if !CAPNP_LITE
2290 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2291 : : #endif // !CAPNP_LITE
2292 : :
2293 : : inline bool hasResult();
2294 : : inline ::capnp::Data::Builder getResult();
2295 : : inline void setResult( ::capnp::Data::Reader value);
2296 : : inline ::capnp::Data::Builder initResult(unsigned int size);
2297 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
2298 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
2299 : :
2300 : : private:
2301 : : ::capnp::_::StructBuilder _builder;
2302 : : template <typename, ::capnp::Kind>
2303 : : friend struct ::capnp::ToDynamic_;
2304 : : friend class ::capnp::Orphanage;
2305 : : template <typename, ::capnp::Kind>
2306 : : friend struct ::capnp::_::PointerHelpers;
2307 : : };
2308 : :
2309 : : #if !CAPNP_LITE
2310 [ # # ]: 0 : class BlockTemplate::GetBlockHeaderResults::Pipeline {
2311 : : public:
2312 : : typedef GetBlockHeaderResults Pipelines;
2313 : :
2314 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2315 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2316 : 0 : : _typeless(kj::mv(typeless)) {}
2317 : :
2318 : : private:
2319 : : ::capnp::AnyPointer::Pipeline _typeless;
2320 : : friend class ::capnp::PipelineHook;
2321 : : template <typename, ::capnp::Kind>
2322 : : friend struct ::capnp::ToDynamic_;
2323 : : };
2324 : : #endif // !CAPNP_LITE
2325 : :
2326 : : class BlockTemplate::GetBlockParams::Reader {
2327 : : public:
2328 : : typedef GetBlockParams Reads;
2329 : :
2330 : : Reader() = default;
2331 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2332 : :
2333 : : inline ::capnp::MessageSize totalSize() const {
2334 : : return _reader.totalSize().asPublic();
2335 : : }
2336 : :
2337 : : #if !CAPNP_LITE
2338 : 0 : inline ::kj::StringTree toString() const {
2339 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2340 : : }
2341 : : #endif // !CAPNP_LITE
2342 : :
2343 : : inline bool hasContext() const;
2344 : : inline ::mp::Context::Reader getContext() const;
2345 : :
2346 : : private:
2347 : : ::capnp::_::StructReader _reader;
2348 : : template <typename, ::capnp::Kind>
2349 : : friend struct ::capnp::ToDynamic_;
2350 : : template <typename, ::capnp::Kind>
2351 : : friend struct ::capnp::_::PointerHelpers;
2352 : : template <typename, ::capnp::Kind>
2353 : : friend struct ::capnp::List;
2354 : : friend class ::capnp::MessageBuilder;
2355 : : friend class ::capnp::Orphanage;
2356 : : };
2357 : :
2358 : : class BlockTemplate::GetBlockParams::Builder {
2359 : : public:
2360 : : typedef GetBlockParams Builds;
2361 : :
2362 : : Builder() = delete; // Deleted to discourage incorrect usage.
2363 : : // You can explicitly initialize to nullptr instead.
2364 : : inline Builder(decltype(nullptr)) {}
2365 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2366 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2367 : 0 : inline Reader asReader() const { return *this; }
2368 : :
2369 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2370 : : #if !CAPNP_LITE
2371 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2372 : : #endif // !CAPNP_LITE
2373 : :
2374 : : inline bool hasContext();
2375 : : inline ::mp::Context::Builder getContext();
2376 : : inline void setContext( ::mp::Context::Reader value);
2377 : : inline ::mp::Context::Builder initContext();
2378 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
2379 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
2380 : :
2381 : : private:
2382 : : ::capnp::_::StructBuilder _builder;
2383 : : template <typename, ::capnp::Kind>
2384 : : friend struct ::capnp::ToDynamic_;
2385 : : friend class ::capnp::Orphanage;
2386 : : template <typename, ::capnp::Kind>
2387 : : friend struct ::capnp::_::PointerHelpers;
2388 : : };
2389 : :
2390 : : #if !CAPNP_LITE
2391 : : class BlockTemplate::GetBlockParams::Pipeline {
2392 : : public:
2393 : : typedef GetBlockParams Pipelines;
2394 : :
2395 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2396 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2397 : : : _typeless(kj::mv(typeless)) {}
2398 : :
2399 : : inline ::mp::Context::Pipeline getContext();
2400 : : private:
2401 : : ::capnp::AnyPointer::Pipeline _typeless;
2402 : : friend class ::capnp::PipelineHook;
2403 : : template <typename, ::capnp::Kind>
2404 : : friend struct ::capnp::ToDynamic_;
2405 : : };
2406 : : #endif // !CAPNP_LITE
2407 : :
2408 : : class BlockTemplate::GetBlockResults::Reader {
2409 : : public:
2410 : : typedef GetBlockResults Reads;
2411 : :
2412 : : Reader() = default;
2413 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2414 : :
2415 : : inline ::capnp::MessageSize totalSize() const {
2416 : : return _reader.totalSize().asPublic();
2417 : : }
2418 : :
2419 : : #if !CAPNP_LITE
2420 : 0 : inline ::kj::StringTree toString() const {
2421 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2422 : : }
2423 : : #endif // !CAPNP_LITE
2424 : :
2425 : : inline bool hasResult() const;
2426 : : inline ::capnp::Data::Reader getResult() const;
2427 : :
2428 : : private:
2429 : : ::capnp::_::StructReader _reader;
2430 : : template <typename, ::capnp::Kind>
2431 : : friend struct ::capnp::ToDynamic_;
2432 : : template <typename, ::capnp::Kind>
2433 : : friend struct ::capnp::_::PointerHelpers;
2434 : : template <typename, ::capnp::Kind>
2435 : : friend struct ::capnp::List;
2436 : : friend class ::capnp::MessageBuilder;
2437 : : friend class ::capnp::Orphanage;
2438 : : };
2439 : :
2440 : : class BlockTemplate::GetBlockResults::Builder {
2441 : : public:
2442 : : typedef GetBlockResults Builds;
2443 : :
2444 : : Builder() = delete; // Deleted to discourage incorrect usage.
2445 : : // You can explicitly initialize to nullptr instead.
2446 : : inline Builder(decltype(nullptr)) {}
2447 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2448 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2449 : 0 : inline Reader asReader() const { return *this; }
2450 : :
2451 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2452 : : #if !CAPNP_LITE
2453 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2454 : : #endif // !CAPNP_LITE
2455 : :
2456 : : inline bool hasResult();
2457 : : inline ::capnp::Data::Builder getResult();
2458 : : inline void setResult( ::capnp::Data::Reader value);
2459 : : inline ::capnp::Data::Builder initResult(unsigned int size);
2460 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
2461 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
2462 : :
2463 : : private:
2464 : : ::capnp::_::StructBuilder _builder;
2465 : : template <typename, ::capnp::Kind>
2466 : : friend struct ::capnp::ToDynamic_;
2467 : : friend class ::capnp::Orphanage;
2468 : : template <typename, ::capnp::Kind>
2469 : : friend struct ::capnp::_::PointerHelpers;
2470 : : };
2471 : :
2472 : : #if !CAPNP_LITE
2473 [ # # ]: 0 : class BlockTemplate::GetBlockResults::Pipeline {
2474 : : public:
2475 : : typedef GetBlockResults Pipelines;
2476 : :
2477 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2478 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2479 : 0 : : _typeless(kj::mv(typeless)) {}
2480 : :
2481 : : private:
2482 : : ::capnp::AnyPointer::Pipeline _typeless;
2483 : : friend class ::capnp::PipelineHook;
2484 : : template <typename, ::capnp::Kind>
2485 : : friend struct ::capnp::ToDynamic_;
2486 : : };
2487 : : #endif // !CAPNP_LITE
2488 : :
2489 : : class BlockTemplate::GetTxFeesParams::Reader {
2490 : : public:
2491 : : typedef GetTxFeesParams Reads;
2492 : :
2493 : : Reader() = default;
2494 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2495 : :
2496 : : inline ::capnp::MessageSize totalSize() const {
2497 : : return _reader.totalSize().asPublic();
2498 : : }
2499 : :
2500 : : #if !CAPNP_LITE
2501 : 0 : inline ::kj::StringTree toString() const {
2502 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2503 : : }
2504 : : #endif // !CAPNP_LITE
2505 : :
2506 : : inline bool hasContext() const;
2507 : : inline ::mp::Context::Reader getContext() const;
2508 : :
2509 : : private:
2510 : : ::capnp::_::StructReader _reader;
2511 : : template <typename, ::capnp::Kind>
2512 : : friend struct ::capnp::ToDynamic_;
2513 : : template <typename, ::capnp::Kind>
2514 : : friend struct ::capnp::_::PointerHelpers;
2515 : : template <typename, ::capnp::Kind>
2516 : : friend struct ::capnp::List;
2517 : : friend class ::capnp::MessageBuilder;
2518 : : friend class ::capnp::Orphanage;
2519 : : };
2520 : :
2521 : : class BlockTemplate::GetTxFeesParams::Builder {
2522 : : public:
2523 : : typedef GetTxFeesParams Builds;
2524 : :
2525 : : Builder() = delete; // Deleted to discourage incorrect usage.
2526 : : // You can explicitly initialize to nullptr instead.
2527 : : inline Builder(decltype(nullptr)) {}
2528 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2529 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2530 : 0 : inline Reader asReader() const { return *this; }
2531 : :
2532 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2533 : : #if !CAPNP_LITE
2534 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2535 : : #endif // !CAPNP_LITE
2536 : :
2537 : : inline bool hasContext();
2538 : : inline ::mp::Context::Builder getContext();
2539 : : inline void setContext( ::mp::Context::Reader value);
2540 : : inline ::mp::Context::Builder initContext();
2541 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
2542 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
2543 : :
2544 : : private:
2545 : : ::capnp::_::StructBuilder _builder;
2546 : : template <typename, ::capnp::Kind>
2547 : : friend struct ::capnp::ToDynamic_;
2548 : : friend class ::capnp::Orphanage;
2549 : : template <typename, ::capnp::Kind>
2550 : : friend struct ::capnp::_::PointerHelpers;
2551 : : };
2552 : :
2553 : : #if !CAPNP_LITE
2554 : : class BlockTemplate::GetTxFeesParams::Pipeline {
2555 : : public:
2556 : : typedef GetTxFeesParams Pipelines;
2557 : :
2558 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2559 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2560 : : : _typeless(kj::mv(typeless)) {}
2561 : :
2562 : : inline ::mp::Context::Pipeline getContext();
2563 : : private:
2564 : : ::capnp::AnyPointer::Pipeline _typeless;
2565 : : friend class ::capnp::PipelineHook;
2566 : : template <typename, ::capnp::Kind>
2567 : : friend struct ::capnp::ToDynamic_;
2568 : : };
2569 : : #endif // !CAPNP_LITE
2570 : :
2571 : : class BlockTemplate::GetTxFeesResults::Reader {
2572 : : public:
2573 : : typedef GetTxFeesResults Reads;
2574 : :
2575 : : Reader() = default;
2576 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2577 : :
2578 : : inline ::capnp::MessageSize totalSize() const {
2579 : : return _reader.totalSize().asPublic();
2580 : : }
2581 : :
2582 : : #if !CAPNP_LITE
2583 : 0 : inline ::kj::StringTree toString() const {
2584 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2585 : : }
2586 : : #endif // !CAPNP_LITE
2587 : :
2588 : : inline bool hasResult() const;
2589 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader getResult() const;
2590 : :
2591 : : private:
2592 : : ::capnp::_::StructReader _reader;
2593 : : template <typename, ::capnp::Kind>
2594 : : friend struct ::capnp::ToDynamic_;
2595 : : template <typename, ::capnp::Kind>
2596 : : friend struct ::capnp::_::PointerHelpers;
2597 : : template <typename, ::capnp::Kind>
2598 : : friend struct ::capnp::List;
2599 : : friend class ::capnp::MessageBuilder;
2600 : : friend class ::capnp::Orphanage;
2601 : : };
2602 : :
2603 : : class BlockTemplate::GetTxFeesResults::Builder {
2604 : : public:
2605 : : typedef GetTxFeesResults Builds;
2606 : :
2607 : : Builder() = delete; // Deleted to discourage incorrect usage.
2608 : : // You can explicitly initialize to nullptr instead.
2609 : : inline Builder(decltype(nullptr)) {}
2610 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2611 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2612 : 0 : inline Reader asReader() const { return *this; }
2613 : :
2614 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2615 : : #if !CAPNP_LITE
2616 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2617 : : #endif // !CAPNP_LITE
2618 : :
2619 : : inline bool hasResult();
2620 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder getResult();
2621 : : inline void setResult( ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader value);
2622 : : inline void setResult(::kj::ArrayPtr<const ::int64_t> value);
2623 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder initResult(unsigned int size);
2624 : : inline void adoptResult(::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>&& value);
2625 : : inline ::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>> disownResult();
2626 : :
2627 : : private:
2628 : : ::capnp::_::StructBuilder _builder;
2629 : : template <typename, ::capnp::Kind>
2630 : : friend struct ::capnp::ToDynamic_;
2631 : : friend class ::capnp::Orphanage;
2632 : : template <typename, ::capnp::Kind>
2633 : : friend struct ::capnp::_::PointerHelpers;
2634 : : };
2635 : :
2636 : : #if !CAPNP_LITE
2637 [ # # ]: 0 : class BlockTemplate::GetTxFeesResults::Pipeline {
2638 : : public:
2639 : : typedef GetTxFeesResults Pipelines;
2640 : :
2641 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2642 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2643 : 0 : : _typeless(kj::mv(typeless)) {}
2644 : :
2645 : : private:
2646 : : ::capnp::AnyPointer::Pipeline _typeless;
2647 : : friend class ::capnp::PipelineHook;
2648 : : template <typename, ::capnp::Kind>
2649 : : friend struct ::capnp::ToDynamic_;
2650 : : };
2651 : : #endif // !CAPNP_LITE
2652 : :
2653 : : class BlockTemplate::GetTxSigopsParams::Reader {
2654 : : public:
2655 : : typedef GetTxSigopsParams Reads;
2656 : :
2657 : : Reader() = default;
2658 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2659 : :
2660 : : inline ::capnp::MessageSize totalSize() const {
2661 : : return _reader.totalSize().asPublic();
2662 : : }
2663 : :
2664 : : #if !CAPNP_LITE
2665 : 0 : inline ::kj::StringTree toString() const {
2666 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2667 : : }
2668 : : #endif // !CAPNP_LITE
2669 : :
2670 : : inline bool hasContext() const;
2671 : : inline ::mp::Context::Reader getContext() const;
2672 : :
2673 : : private:
2674 : : ::capnp::_::StructReader _reader;
2675 : : template <typename, ::capnp::Kind>
2676 : : friend struct ::capnp::ToDynamic_;
2677 : : template <typename, ::capnp::Kind>
2678 : : friend struct ::capnp::_::PointerHelpers;
2679 : : template <typename, ::capnp::Kind>
2680 : : friend struct ::capnp::List;
2681 : : friend class ::capnp::MessageBuilder;
2682 : : friend class ::capnp::Orphanage;
2683 : : };
2684 : :
2685 : : class BlockTemplate::GetTxSigopsParams::Builder {
2686 : : public:
2687 : : typedef GetTxSigopsParams Builds;
2688 : :
2689 : : Builder() = delete; // Deleted to discourage incorrect usage.
2690 : : // You can explicitly initialize to nullptr instead.
2691 : : inline Builder(decltype(nullptr)) {}
2692 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2693 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2694 : 0 : inline Reader asReader() const { return *this; }
2695 : :
2696 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2697 : : #if !CAPNP_LITE
2698 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2699 : : #endif // !CAPNP_LITE
2700 : :
2701 : : inline bool hasContext();
2702 : : inline ::mp::Context::Builder getContext();
2703 : : inline void setContext( ::mp::Context::Reader value);
2704 : : inline ::mp::Context::Builder initContext();
2705 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
2706 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
2707 : :
2708 : : private:
2709 : : ::capnp::_::StructBuilder _builder;
2710 : : template <typename, ::capnp::Kind>
2711 : : friend struct ::capnp::ToDynamic_;
2712 : : friend class ::capnp::Orphanage;
2713 : : template <typename, ::capnp::Kind>
2714 : : friend struct ::capnp::_::PointerHelpers;
2715 : : };
2716 : :
2717 : : #if !CAPNP_LITE
2718 : : class BlockTemplate::GetTxSigopsParams::Pipeline {
2719 : : public:
2720 : : typedef GetTxSigopsParams Pipelines;
2721 : :
2722 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2723 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2724 : : : _typeless(kj::mv(typeless)) {}
2725 : :
2726 : : inline ::mp::Context::Pipeline getContext();
2727 : : private:
2728 : : ::capnp::AnyPointer::Pipeline _typeless;
2729 : : friend class ::capnp::PipelineHook;
2730 : : template <typename, ::capnp::Kind>
2731 : : friend struct ::capnp::ToDynamic_;
2732 : : };
2733 : : #endif // !CAPNP_LITE
2734 : :
2735 : : class BlockTemplate::GetTxSigopsResults::Reader {
2736 : : public:
2737 : : typedef GetTxSigopsResults Reads;
2738 : :
2739 : : Reader() = default;
2740 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2741 : :
2742 : : inline ::capnp::MessageSize totalSize() const {
2743 : : return _reader.totalSize().asPublic();
2744 : : }
2745 : :
2746 : : #if !CAPNP_LITE
2747 : 0 : inline ::kj::StringTree toString() const {
2748 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2749 : : }
2750 : : #endif // !CAPNP_LITE
2751 : :
2752 : : inline bool hasResult() const;
2753 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader getResult() const;
2754 : :
2755 : : private:
2756 : : ::capnp::_::StructReader _reader;
2757 : : template <typename, ::capnp::Kind>
2758 : : friend struct ::capnp::ToDynamic_;
2759 : : template <typename, ::capnp::Kind>
2760 : : friend struct ::capnp::_::PointerHelpers;
2761 : : template <typename, ::capnp::Kind>
2762 : : friend struct ::capnp::List;
2763 : : friend class ::capnp::MessageBuilder;
2764 : : friend class ::capnp::Orphanage;
2765 : : };
2766 : :
2767 : : class BlockTemplate::GetTxSigopsResults::Builder {
2768 : : public:
2769 : : typedef GetTxSigopsResults Builds;
2770 : :
2771 : : Builder() = delete; // Deleted to discourage incorrect usage.
2772 : : // You can explicitly initialize to nullptr instead.
2773 : : inline Builder(decltype(nullptr)) {}
2774 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2775 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2776 : 0 : inline Reader asReader() const { return *this; }
2777 : :
2778 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2779 : : #if !CAPNP_LITE
2780 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2781 : : #endif // !CAPNP_LITE
2782 : :
2783 : : inline bool hasResult();
2784 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder getResult();
2785 : : inline void setResult( ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader value);
2786 : : inline void setResult(::kj::ArrayPtr<const ::int64_t> value);
2787 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder initResult(unsigned int size);
2788 : : inline void adoptResult(::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>&& value);
2789 : : inline ::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>> disownResult();
2790 : :
2791 : : private:
2792 : : ::capnp::_::StructBuilder _builder;
2793 : : template <typename, ::capnp::Kind>
2794 : : friend struct ::capnp::ToDynamic_;
2795 : : friend class ::capnp::Orphanage;
2796 : : template <typename, ::capnp::Kind>
2797 : : friend struct ::capnp::_::PointerHelpers;
2798 : : };
2799 : :
2800 : : #if !CAPNP_LITE
2801 [ # # ]: 0 : class BlockTemplate::GetTxSigopsResults::Pipeline {
2802 : : public:
2803 : : typedef GetTxSigopsResults Pipelines;
2804 : :
2805 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2806 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2807 : 0 : : _typeless(kj::mv(typeless)) {}
2808 : :
2809 : : private:
2810 : : ::capnp::AnyPointer::Pipeline _typeless;
2811 : : friend class ::capnp::PipelineHook;
2812 : : template <typename, ::capnp::Kind>
2813 : : friend struct ::capnp::ToDynamic_;
2814 : : };
2815 : : #endif // !CAPNP_LITE
2816 : :
2817 : : class BlockTemplate::GetCoinbaseRawTxParams::Reader {
2818 : : public:
2819 : : typedef GetCoinbaseRawTxParams Reads;
2820 : :
2821 : : Reader() = default;
2822 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2823 : :
2824 : : inline ::capnp::MessageSize totalSize() const {
2825 : : return _reader.totalSize().asPublic();
2826 : : }
2827 : :
2828 : : #if !CAPNP_LITE
2829 : 0 : inline ::kj::StringTree toString() const {
2830 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2831 : : }
2832 : : #endif // !CAPNP_LITE
2833 : :
2834 : : inline bool hasContext() const;
2835 : : inline ::mp::Context::Reader getContext() const;
2836 : :
2837 : : private:
2838 : : ::capnp::_::StructReader _reader;
2839 : : template <typename, ::capnp::Kind>
2840 : : friend struct ::capnp::ToDynamic_;
2841 : : template <typename, ::capnp::Kind>
2842 : : friend struct ::capnp::_::PointerHelpers;
2843 : : template <typename, ::capnp::Kind>
2844 : : friend struct ::capnp::List;
2845 : : friend class ::capnp::MessageBuilder;
2846 : : friend class ::capnp::Orphanage;
2847 : : };
2848 : :
2849 : : class BlockTemplate::GetCoinbaseRawTxParams::Builder {
2850 : : public:
2851 : : typedef GetCoinbaseRawTxParams Builds;
2852 : :
2853 : : Builder() = delete; // Deleted to discourage incorrect usage.
2854 : : // You can explicitly initialize to nullptr instead.
2855 : : inline Builder(decltype(nullptr)) {}
2856 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2857 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2858 : 0 : inline Reader asReader() const { return *this; }
2859 : :
2860 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2861 : : #if !CAPNP_LITE
2862 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2863 : : #endif // !CAPNP_LITE
2864 : :
2865 : : inline bool hasContext();
2866 : : inline ::mp::Context::Builder getContext();
2867 : : inline void setContext( ::mp::Context::Reader value);
2868 : : inline ::mp::Context::Builder initContext();
2869 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
2870 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
2871 : :
2872 : : private:
2873 : : ::capnp::_::StructBuilder _builder;
2874 : : template <typename, ::capnp::Kind>
2875 : : friend struct ::capnp::ToDynamic_;
2876 : : friend class ::capnp::Orphanage;
2877 : : template <typename, ::capnp::Kind>
2878 : : friend struct ::capnp::_::PointerHelpers;
2879 : : };
2880 : :
2881 : : #if !CAPNP_LITE
2882 : : class BlockTemplate::GetCoinbaseRawTxParams::Pipeline {
2883 : : public:
2884 : : typedef GetCoinbaseRawTxParams Pipelines;
2885 : :
2886 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2887 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2888 : : : _typeless(kj::mv(typeless)) {}
2889 : :
2890 : : inline ::mp::Context::Pipeline getContext();
2891 : : private:
2892 : : ::capnp::AnyPointer::Pipeline _typeless;
2893 : : friend class ::capnp::PipelineHook;
2894 : : template <typename, ::capnp::Kind>
2895 : : friend struct ::capnp::ToDynamic_;
2896 : : };
2897 : : #endif // !CAPNP_LITE
2898 : :
2899 : : class BlockTemplate::GetCoinbaseRawTxResults::Reader {
2900 : : public:
2901 : : typedef GetCoinbaseRawTxResults Reads;
2902 : :
2903 : : Reader() = default;
2904 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2905 : :
2906 : : inline ::capnp::MessageSize totalSize() const {
2907 : : return _reader.totalSize().asPublic();
2908 : : }
2909 : :
2910 : : #if !CAPNP_LITE
2911 : 0 : inline ::kj::StringTree toString() const {
2912 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2913 : : }
2914 : : #endif // !CAPNP_LITE
2915 : :
2916 : : inline bool hasResult() const;
2917 : : inline ::capnp::Data::Reader getResult() const;
2918 : :
2919 : : private:
2920 : : ::capnp::_::StructReader _reader;
2921 : : template <typename, ::capnp::Kind>
2922 : : friend struct ::capnp::ToDynamic_;
2923 : : template <typename, ::capnp::Kind>
2924 : : friend struct ::capnp::_::PointerHelpers;
2925 : : template <typename, ::capnp::Kind>
2926 : : friend struct ::capnp::List;
2927 : : friend class ::capnp::MessageBuilder;
2928 : : friend class ::capnp::Orphanage;
2929 : : };
2930 : :
2931 : : class BlockTemplate::GetCoinbaseRawTxResults::Builder {
2932 : : public:
2933 : : typedef GetCoinbaseRawTxResults Builds;
2934 : :
2935 : : Builder() = delete; // Deleted to discourage incorrect usage.
2936 : : // You can explicitly initialize to nullptr instead.
2937 : : inline Builder(decltype(nullptr)) {}
2938 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
2939 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
2940 : 0 : inline Reader asReader() const { return *this; }
2941 : :
2942 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
2943 : : #if !CAPNP_LITE
2944 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
2945 : : #endif // !CAPNP_LITE
2946 : :
2947 : : inline bool hasResult();
2948 : : inline ::capnp::Data::Builder getResult();
2949 : : inline void setResult( ::capnp::Data::Reader value);
2950 : : inline ::capnp::Data::Builder initResult(unsigned int size);
2951 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
2952 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
2953 : :
2954 : : private:
2955 : : ::capnp::_::StructBuilder _builder;
2956 : : template <typename, ::capnp::Kind>
2957 : : friend struct ::capnp::ToDynamic_;
2958 : : friend class ::capnp::Orphanage;
2959 : : template <typename, ::capnp::Kind>
2960 : : friend struct ::capnp::_::PointerHelpers;
2961 : : };
2962 : :
2963 : : #if !CAPNP_LITE
2964 [ # # ]: 0 : class BlockTemplate::GetCoinbaseRawTxResults::Pipeline {
2965 : : public:
2966 : : typedef GetCoinbaseRawTxResults Pipelines;
2967 : :
2968 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
2969 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
2970 : 0 : : _typeless(kj::mv(typeless)) {}
2971 : :
2972 : : private:
2973 : : ::capnp::AnyPointer::Pipeline _typeless;
2974 : : friend class ::capnp::PipelineHook;
2975 : : template <typename, ::capnp::Kind>
2976 : : friend struct ::capnp::ToDynamic_;
2977 : : };
2978 : : #endif // !CAPNP_LITE
2979 : :
2980 : : class BlockTemplate::GetCoinbaseCommitmentParams::Reader {
2981 : : public:
2982 : : typedef GetCoinbaseCommitmentParams Reads;
2983 : :
2984 : : Reader() = default;
2985 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
2986 : :
2987 : : inline ::capnp::MessageSize totalSize() const {
2988 : : return _reader.totalSize().asPublic();
2989 : : }
2990 : :
2991 : : #if !CAPNP_LITE
2992 : 0 : inline ::kj::StringTree toString() const {
2993 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
2994 : : }
2995 : : #endif // !CAPNP_LITE
2996 : :
2997 : : inline bool hasContext() const;
2998 : : inline ::mp::Context::Reader getContext() const;
2999 : :
3000 : : private:
3001 : : ::capnp::_::StructReader _reader;
3002 : : template <typename, ::capnp::Kind>
3003 : : friend struct ::capnp::ToDynamic_;
3004 : : template <typename, ::capnp::Kind>
3005 : : friend struct ::capnp::_::PointerHelpers;
3006 : : template <typename, ::capnp::Kind>
3007 : : friend struct ::capnp::List;
3008 : : friend class ::capnp::MessageBuilder;
3009 : : friend class ::capnp::Orphanage;
3010 : : };
3011 : :
3012 : : class BlockTemplate::GetCoinbaseCommitmentParams::Builder {
3013 : : public:
3014 : : typedef GetCoinbaseCommitmentParams Builds;
3015 : :
3016 : : Builder() = delete; // Deleted to discourage incorrect usage.
3017 : : // You can explicitly initialize to nullptr instead.
3018 : : inline Builder(decltype(nullptr)) {}
3019 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3020 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3021 : 0 : inline Reader asReader() const { return *this; }
3022 : :
3023 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3024 : : #if !CAPNP_LITE
3025 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3026 : : #endif // !CAPNP_LITE
3027 : :
3028 : : inline bool hasContext();
3029 : : inline ::mp::Context::Builder getContext();
3030 : : inline void setContext( ::mp::Context::Reader value);
3031 : : inline ::mp::Context::Builder initContext();
3032 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
3033 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
3034 : :
3035 : : private:
3036 : : ::capnp::_::StructBuilder _builder;
3037 : : template <typename, ::capnp::Kind>
3038 : : friend struct ::capnp::ToDynamic_;
3039 : : friend class ::capnp::Orphanage;
3040 : : template <typename, ::capnp::Kind>
3041 : : friend struct ::capnp::_::PointerHelpers;
3042 : : };
3043 : :
3044 : : #if !CAPNP_LITE
3045 : : class BlockTemplate::GetCoinbaseCommitmentParams::Pipeline {
3046 : : public:
3047 : : typedef GetCoinbaseCommitmentParams Pipelines;
3048 : :
3049 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3050 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3051 : : : _typeless(kj::mv(typeless)) {}
3052 : :
3053 : : inline ::mp::Context::Pipeline getContext();
3054 : : private:
3055 : : ::capnp::AnyPointer::Pipeline _typeless;
3056 : : friend class ::capnp::PipelineHook;
3057 : : template <typename, ::capnp::Kind>
3058 : : friend struct ::capnp::ToDynamic_;
3059 : : };
3060 : : #endif // !CAPNP_LITE
3061 : :
3062 : : class BlockTemplate::GetCoinbaseCommitmentResults::Reader {
3063 : : public:
3064 : : typedef GetCoinbaseCommitmentResults Reads;
3065 : :
3066 : : Reader() = default;
3067 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3068 : :
3069 : : inline ::capnp::MessageSize totalSize() const {
3070 : : return _reader.totalSize().asPublic();
3071 : : }
3072 : :
3073 : : #if !CAPNP_LITE
3074 : 0 : inline ::kj::StringTree toString() const {
3075 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3076 : : }
3077 : : #endif // !CAPNP_LITE
3078 : :
3079 : : inline bool hasResult() const;
3080 : : inline ::capnp::Data::Reader getResult() const;
3081 : :
3082 : : private:
3083 : : ::capnp::_::StructReader _reader;
3084 : : template <typename, ::capnp::Kind>
3085 : : friend struct ::capnp::ToDynamic_;
3086 : : template <typename, ::capnp::Kind>
3087 : : friend struct ::capnp::_::PointerHelpers;
3088 : : template <typename, ::capnp::Kind>
3089 : : friend struct ::capnp::List;
3090 : : friend class ::capnp::MessageBuilder;
3091 : : friend class ::capnp::Orphanage;
3092 : : };
3093 : :
3094 : : class BlockTemplate::GetCoinbaseCommitmentResults::Builder {
3095 : : public:
3096 : : typedef GetCoinbaseCommitmentResults Builds;
3097 : :
3098 : : Builder() = delete; // Deleted to discourage incorrect usage.
3099 : : // You can explicitly initialize to nullptr instead.
3100 : : inline Builder(decltype(nullptr)) {}
3101 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3102 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3103 : 0 : inline Reader asReader() const { return *this; }
3104 : :
3105 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3106 : : #if !CAPNP_LITE
3107 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3108 : : #endif // !CAPNP_LITE
3109 : :
3110 : : inline bool hasResult();
3111 : : inline ::capnp::Data::Builder getResult();
3112 : : inline void setResult( ::capnp::Data::Reader value);
3113 : : inline ::capnp::Data::Builder initResult(unsigned int size);
3114 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
3115 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
3116 : :
3117 : : private:
3118 : : ::capnp::_::StructBuilder _builder;
3119 : : template <typename, ::capnp::Kind>
3120 : : friend struct ::capnp::ToDynamic_;
3121 : : friend class ::capnp::Orphanage;
3122 : : template <typename, ::capnp::Kind>
3123 : : friend struct ::capnp::_::PointerHelpers;
3124 : : };
3125 : :
3126 : : #if !CAPNP_LITE
3127 [ # # ]: 0 : class BlockTemplate::GetCoinbaseCommitmentResults::Pipeline {
3128 : : public:
3129 : : typedef GetCoinbaseCommitmentResults Pipelines;
3130 : :
3131 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3132 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3133 : 0 : : _typeless(kj::mv(typeless)) {}
3134 : :
3135 : : private:
3136 : : ::capnp::AnyPointer::Pipeline _typeless;
3137 : : friend class ::capnp::PipelineHook;
3138 : : template <typename, ::capnp::Kind>
3139 : : friend struct ::capnp::ToDynamic_;
3140 : : };
3141 : : #endif // !CAPNP_LITE
3142 : :
3143 : : class BlockTemplate::GetWitnessCommitmentIndexParams::Reader {
3144 : : public:
3145 : : typedef GetWitnessCommitmentIndexParams Reads;
3146 : :
3147 : : Reader() = default;
3148 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3149 : :
3150 : : inline ::capnp::MessageSize totalSize() const {
3151 : : return _reader.totalSize().asPublic();
3152 : : }
3153 : :
3154 : : #if !CAPNP_LITE
3155 : 0 : inline ::kj::StringTree toString() const {
3156 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3157 : : }
3158 : : #endif // !CAPNP_LITE
3159 : :
3160 : : inline bool hasContext() const;
3161 : : inline ::mp::Context::Reader getContext() const;
3162 : :
3163 : : private:
3164 : : ::capnp::_::StructReader _reader;
3165 : : template <typename, ::capnp::Kind>
3166 : : friend struct ::capnp::ToDynamic_;
3167 : : template <typename, ::capnp::Kind>
3168 : : friend struct ::capnp::_::PointerHelpers;
3169 : : template <typename, ::capnp::Kind>
3170 : : friend struct ::capnp::List;
3171 : : friend class ::capnp::MessageBuilder;
3172 : : friend class ::capnp::Orphanage;
3173 : : };
3174 : :
3175 : : class BlockTemplate::GetWitnessCommitmentIndexParams::Builder {
3176 : : public:
3177 : : typedef GetWitnessCommitmentIndexParams Builds;
3178 : :
3179 : : Builder() = delete; // Deleted to discourage incorrect usage.
3180 : : // You can explicitly initialize to nullptr instead.
3181 : : inline Builder(decltype(nullptr)) {}
3182 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3183 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3184 : 0 : inline Reader asReader() const { return *this; }
3185 : :
3186 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3187 : : #if !CAPNP_LITE
3188 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3189 : : #endif // !CAPNP_LITE
3190 : :
3191 : : inline bool hasContext();
3192 : : inline ::mp::Context::Builder getContext();
3193 : : inline void setContext( ::mp::Context::Reader value);
3194 : : inline ::mp::Context::Builder initContext();
3195 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
3196 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
3197 : :
3198 : : private:
3199 : : ::capnp::_::StructBuilder _builder;
3200 : : template <typename, ::capnp::Kind>
3201 : : friend struct ::capnp::ToDynamic_;
3202 : : friend class ::capnp::Orphanage;
3203 : : template <typename, ::capnp::Kind>
3204 : : friend struct ::capnp::_::PointerHelpers;
3205 : : };
3206 : :
3207 : : #if !CAPNP_LITE
3208 : : class BlockTemplate::GetWitnessCommitmentIndexParams::Pipeline {
3209 : : public:
3210 : : typedef GetWitnessCommitmentIndexParams Pipelines;
3211 : :
3212 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3213 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3214 : : : _typeless(kj::mv(typeless)) {}
3215 : :
3216 : : inline ::mp::Context::Pipeline getContext();
3217 : : private:
3218 : : ::capnp::AnyPointer::Pipeline _typeless;
3219 : : friend class ::capnp::PipelineHook;
3220 : : template <typename, ::capnp::Kind>
3221 : : friend struct ::capnp::ToDynamic_;
3222 : : };
3223 : : #endif // !CAPNP_LITE
3224 : :
3225 : : class BlockTemplate::GetWitnessCommitmentIndexResults::Reader {
3226 : : public:
3227 : : typedef GetWitnessCommitmentIndexResults Reads;
3228 : :
3229 : : Reader() = default;
3230 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3231 : :
3232 : : inline ::capnp::MessageSize totalSize() const {
3233 : : return _reader.totalSize().asPublic();
3234 : : }
3235 : :
3236 : : #if !CAPNP_LITE
3237 : 0 : inline ::kj::StringTree toString() const {
3238 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3239 : : }
3240 : : #endif // !CAPNP_LITE
3241 : :
3242 : : inline ::int32_t getResult() const;
3243 : :
3244 : : private:
3245 : : ::capnp::_::StructReader _reader;
3246 : : template <typename, ::capnp::Kind>
3247 : : friend struct ::capnp::ToDynamic_;
3248 : : template <typename, ::capnp::Kind>
3249 : : friend struct ::capnp::_::PointerHelpers;
3250 : : template <typename, ::capnp::Kind>
3251 : : friend struct ::capnp::List;
3252 : : friend class ::capnp::MessageBuilder;
3253 : : friend class ::capnp::Orphanage;
3254 : : };
3255 : :
3256 : : class BlockTemplate::GetWitnessCommitmentIndexResults::Builder {
3257 : : public:
3258 : : typedef GetWitnessCommitmentIndexResults Builds;
3259 : :
3260 : : Builder() = delete; // Deleted to discourage incorrect usage.
3261 : : // You can explicitly initialize to nullptr instead.
3262 : : inline Builder(decltype(nullptr)) {}
3263 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3264 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3265 : 0 : inline Reader asReader() const { return *this; }
3266 : :
3267 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3268 : : #if !CAPNP_LITE
3269 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3270 : : #endif // !CAPNP_LITE
3271 : :
3272 : : inline ::int32_t getResult();
3273 : : inline void setResult( ::int32_t value);
3274 : :
3275 : : private:
3276 : : ::capnp::_::StructBuilder _builder;
3277 : : template <typename, ::capnp::Kind>
3278 : : friend struct ::capnp::ToDynamic_;
3279 : : friend class ::capnp::Orphanage;
3280 : : template <typename, ::capnp::Kind>
3281 : : friend struct ::capnp::_::PointerHelpers;
3282 : : };
3283 : :
3284 : : #if !CAPNP_LITE
3285 [ # # ]: 0 : class BlockTemplate::GetWitnessCommitmentIndexResults::Pipeline {
3286 : : public:
3287 : : typedef GetWitnessCommitmentIndexResults Pipelines;
3288 : :
3289 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3290 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3291 : 0 : : _typeless(kj::mv(typeless)) {}
3292 : :
3293 : : private:
3294 : : ::capnp::AnyPointer::Pipeline _typeless;
3295 : : friend class ::capnp::PipelineHook;
3296 : : template <typename, ::capnp::Kind>
3297 : : friend struct ::capnp::ToDynamic_;
3298 : : };
3299 : : #endif // !CAPNP_LITE
3300 : :
3301 : : class BlockTemplate::GetCoinbaseMerklePathParams::Reader {
3302 : : public:
3303 : : typedef GetCoinbaseMerklePathParams Reads;
3304 : :
3305 : : Reader() = default;
3306 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3307 : :
3308 : : inline ::capnp::MessageSize totalSize() const {
3309 : : return _reader.totalSize().asPublic();
3310 : : }
3311 : :
3312 : : #if !CAPNP_LITE
3313 : 0 : inline ::kj::StringTree toString() const {
3314 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3315 : : }
3316 : : #endif // !CAPNP_LITE
3317 : :
3318 : : inline bool hasContext() const;
3319 : : inline ::mp::Context::Reader getContext() const;
3320 : :
3321 : : private:
3322 : : ::capnp::_::StructReader _reader;
3323 : : template <typename, ::capnp::Kind>
3324 : : friend struct ::capnp::ToDynamic_;
3325 : : template <typename, ::capnp::Kind>
3326 : : friend struct ::capnp::_::PointerHelpers;
3327 : : template <typename, ::capnp::Kind>
3328 : : friend struct ::capnp::List;
3329 : : friend class ::capnp::MessageBuilder;
3330 : : friend class ::capnp::Orphanage;
3331 : : };
3332 : :
3333 : : class BlockTemplate::GetCoinbaseMerklePathParams::Builder {
3334 : : public:
3335 : : typedef GetCoinbaseMerklePathParams Builds;
3336 : :
3337 : : Builder() = delete; // Deleted to discourage incorrect usage.
3338 : : // You can explicitly initialize to nullptr instead.
3339 : : inline Builder(decltype(nullptr)) {}
3340 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3341 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3342 : 0 : inline Reader asReader() const { return *this; }
3343 : :
3344 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3345 : : #if !CAPNP_LITE
3346 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3347 : : #endif // !CAPNP_LITE
3348 : :
3349 : : inline bool hasContext();
3350 : : inline ::mp::Context::Builder getContext();
3351 : : inline void setContext( ::mp::Context::Reader value);
3352 : : inline ::mp::Context::Builder initContext();
3353 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
3354 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
3355 : :
3356 : : private:
3357 : : ::capnp::_::StructBuilder _builder;
3358 : : template <typename, ::capnp::Kind>
3359 : : friend struct ::capnp::ToDynamic_;
3360 : : friend class ::capnp::Orphanage;
3361 : : template <typename, ::capnp::Kind>
3362 : : friend struct ::capnp::_::PointerHelpers;
3363 : : };
3364 : :
3365 : : #if !CAPNP_LITE
3366 : : class BlockTemplate::GetCoinbaseMerklePathParams::Pipeline {
3367 : : public:
3368 : : typedef GetCoinbaseMerklePathParams Pipelines;
3369 : :
3370 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3371 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3372 : : : _typeless(kj::mv(typeless)) {}
3373 : :
3374 : : inline ::mp::Context::Pipeline getContext();
3375 : : private:
3376 : : ::capnp::AnyPointer::Pipeline _typeless;
3377 : : friend class ::capnp::PipelineHook;
3378 : : template <typename, ::capnp::Kind>
3379 : : friend struct ::capnp::ToDynamic_;
3380 : : };
3381 : : #endif // !CAPNP_LITE
3382 : :
3383 : : class BlockTemplate::GetCoinbaseMerklePathResults::Reader {
3384 : : public:
3385 : : typedef GetCoinbaseMerklePathResults Reads;
3386 : :
3387 : : Reader() = default;
3388 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3389 : :
3390 : : inline ::capnp::MessageSize totalSize() const {
3391 : : return _reader.totalSize().asPublic();
3392 : : }
3393 : :
3394 : : #if !CAPNP_LITE
3395 : 0 : inline ::kj::StringTree toString() const {
3396 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3397 : : }
3398 : : #endif // !CAPNP_LITE
3399 : :
3400 : : inline bool hasResult() const;
3401 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader getResult() const;
3402 : :
3403 : : private:
3404 : : ::capnp::_::StructReader _reader;
3405 : : template <typename, ::capnp::Kind>
3406 : : friend struct ::capnp::ToDynamic_;
3407 : : template <typename, ::capnp::Kind>
3408 : : friend struct ::capnp::_::PointerHelpers;
3409 : : template <typename, ::capnp::Kind>
3410 : : friend struct ::capnp::List;
3411 : : friend class ::capnp::MessageBuilder;
3412 : : friend class ::capnp::Orphanage;
3413 : : };
3414 : :
3415 : : class BlockTemplate::GetCoinbaseMerklePathResults::Builder {
3416 : : public:
3417 : : typedef GetCoinbaseMerklePathResults Builds;
3418 : :
3419 : : Builder() = delete; // Deleted to discourage incorrect usage.
3420 : : // You can explicitly initialize to nullptr instead.
3421 : : inline Builder(decltype(nullptr)) {}
3422 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3423 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3424 : 0 : inline Reader asReader() const { return *this; }
3425 : :
3426 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3427 : : #if !CAPNP_LITE
3428 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3429 : : #endif // !CAPNP_LITE
3430 : :
3431 : : inline bool hasResult();
3432 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder getResult();
3433 : : inline void setResult( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value);
3434 : : inline void setResult(::kj::ArrayPtr<const ::capnp::Data::Reader> value);
3435 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder initResult(unsigned int size);
3436 : : inline void adoptResult(::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value);
3437 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> disownResult();
3438 : :
3439 : : private:
3440 : : ::capnp::_::StructBuilder _builder;
3441 : : template <typename, ::capnp::Kind>
3442 : : friend struct ::capnp::ToDynamic_;
3443 : : friend class ::capnp::Orphanage;
3444 : : template <typename, ::capnp::Kind>
3445 : : friend struct ::capnp::_::PointerHelpers;
3446 : : };
3447 : :
3448 : : #if !CAPNP_LITE
3449 [ # # ]: 0 : class BlockTemplate::GetCoinbaseMerklePathResults::Pipeline {
3450 : : public:
3451 : : typedef GetCoinbaseMerklePathResults Pipelines;
3452 : :
3453 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3454 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3455 : 0 : : _typeless(kj::mv(typeless)) {}
3456 : :
3457 : : private:
3458 : : ::capnp::AnyPointer::Pipeline _typeless;
3459 : : friend class ::capnp::PipelineHook;
3460 : : template <typename, ::capnp::Kind>
3461 : : friend struct ::capnp::ToDynamic_;
3462 : : };
3463 : : #endif // !CAPNP_LITE
3464 : :
3465 : : class BlockTemplate::SubmitSolutionParams::Reader {
3466 : : public:
3467 : : typedef SubmitSolutionParams Reads;
3468 : :
3469 : : Reader() = default;
3470 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3471 : :
3472 : : inline ::capnp::MessageSize totalSize() const {
3473 : : return _reader.totalSize().asPublic();
3474 : : }
3475 : :
3476 : : #if !CAPNP_LITE
3477 : 0 : inline ::kj::StringTree toString() const {
3478 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3479 : : }
3480 : : #endif // !CAPNP_LITE
3481 : :
3482 : : inline bool hasContext() const;
3483 : : inline ::mp::Context::Reader getContext() const;
3484 : :
3485 : : inline ::uint32_t getVersion() const;
3486 : :
3487 : : inline ::uint32_t getTimestamp() const;
3488 : :
3489 : : inline ::uint32_t getNonce() const;
3490 : :
3491 : : inline bool hasCoinbase() const;
3492 : : inline ::capnp::Data::Reader getCoinbase() const;
3493 : :
3494 : : private:
3495 : : ::capnp::_::StructReader _reader;
3496 : : template <typename, ::capnp::Kind>
3497 : : friend struct ::capnp::ToDynamic_;
3498 : : template <typename, ::capnp::Kind>
3499 : : friend struct ::capnp::_::PointerHelpers;
3500 : : template <typename, ::capnp::Kind>
3501 : : friend struct ::capnp::List;
3502 : : friend class ::capnp::MessageBuilder;
3503 : : friend class ::capnp::Orphanage;
3504 : : };
3505 : :
3506 : : class BlockTemplate::SubmitSolutionParams::Builder {
3507 : : public:
3508 : : typedef SubmitSolutionParams Builds;
3509 : :
3510 : : Builder() = delete; // Deleted to discourage incorrect usage.
3511 : : // You can explicitly initialize to nullptr instead.
3512 : : inline Builder(decltype(nullptr)) {}
3513 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3514 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3515 : 0 : inline Reader asReader() const { return *this; }
3516 : :
3517 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3518 : : #if !CAPNP_LITE
3519 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3520 : : #endif // !CAPNP_LITE
3521 : :
3522 : : inline bool hasContext();
3523 : : inline ::mp::Context::Builder getContext();
3524 : : inline void setContext( ::mp::Context::Reader value);
3525 : : inline ::mp::Context::Builder initContext();
3526 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
3527 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
3528 : :
3529 : : inline ::uint32_t getVersion();
3530 : : inline void setVersion( ::uint32_t value);
3531 : :
3532 : : inline ::uint32_t getTimestamp();
3533 : : inline void setTimestamp( ::uint32_t value);
3534 : :
3535 : : inline ::uint32_t getNonce();
3536 : : inline void setNonce( ::uint32_t value);
3537 : :
3538 : : inline bool hasCoinbase();
3539 : : inline ::capnp::Data::Builder getCoinbase();
3540 : : inline void setCoinbase( ::capnp::Data::Reader value);
3541 : : inline ::capnp::Data::Builder initCoinbase(unsigned int size);
3542 : : inline void adoptCoinbase(::capnp::Orphan< ::capnp::Data>&& value);
3543 : : inline ::capnp::Orphan< ::capnp::Data> disownCoinbase();
3544 : :
3545 : : private:
3546 : : ::capnp::_::StructBuilder _builder;
3547 : : template <typename, ::capnp::Kind>
3548 : : friend struct ::capnp::ToDynamic_;
3549 : : friend class ::capnp::Orphanage;
3550 : : template <typename, ::capnp::Kind>
3551 : : friend struct ::capnp::_::PointerHelpers;
3552 : : };
3553 : :
3554 : : #if !CAPNP_LITE
3555 : : class BlockTemplate::SubmitSolutionParams::Pipeline {
3556 : : public:
3557 : : typedef SubmitSolutionParams Pipelines;
3558 : :
3559 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3560 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3561 : : : _typeless(kj::mv(typeless)) {}
3562 : :
3563 : : inline ::mp::Context::Pipeline getContext();
3564 : : private:
3565 : : ::capnp::AnyPointer::Pipeline _typeless;
3566 : : friend class ::capnp::PipelineHook;
3567 : : template <typename, ::capnp::Kind>
3568 : : friend struct ::capnp::ToDynamic_;
3569 : : };
3570 : : #endif // !CAPNP_LITE
3571 : :
3572 : : class BlockTemplate::SubmitSolutionResults::Reader {
3573 : : public:
3574 : : typedef SubmitSolutionResults Reads;
3575 : :
3576 : : Reader() = default;
3577 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3578 : :
3579 : : inline ::capnp::MessageSize totalSize() const {
3580 : : return _reader.totalSize().asPublic();
3581 : : }
3582 : :
3583 : : #if !CAPNP_LITE
3584 : 0 : inline ::kj::StringTree toString() const {
3585 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3586 : : }
3587 : : #endif // !CAPNP_LITE
3588 : :
3589 : : inline bool getResult() const;
3590 : :
3591 : : private:
3592 : : ::capnp::_::StructReader _reader;
3593 : : template <typename, ::capnp::Kind>
3594 : : friend struct ::capnp::ToDynamic_;
3595 : : template <typename, ::capnp::Kind>
3596 : : friend struct ::capnp::_::PointerHelpers;
3597 : : template <typename, ::capnp::Kind>
3598 : : friend struct ::capnp::List;
3599 : : friend class ::capnp::MessageBuilder;
3600 : : friend class ::capnp::Orphanage;
3601 : : };
3602 : :
3603 : : class BlockTemplate::SubmitSolutionResults::Builder {
3604 : : public:
3605 : : typedef SubmitSolutionResults Builds;
3606 : :
3607 : : Builder() = delete; // Deleted to discourage incorrect usage.
3608 : : // You can explicitly initialize to nullptr instead.
3609 : : inline Builder(decltype(nullptr)) {}
3610 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3611 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3612 : 0 : inline Reader asReader() const { return *this; }
3613 : :
3614 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3615 : : #if !CAPNP_LITE
3616 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3617 : : #endif // !CAPNP_LITE
3618 : :
3619 : : inline bool getResult();
3620 : : inline void setResult(bool value);
3621 : :
3622 : : private:
3623 : : ::capnp::_::StructBuilder _builder;
3624 : : template <typename, ::capnp::Kind>
3625 : : friend struct ::capnp::ToDynamic_;
3626 : : friend class ::capnp::Orphanage;
3627 : : template <typename, ::capnp::Kind>
3628 : : friend struct ::capnp::_::PointerHelpers;
3629 : : };
3630 : :
3631 : : #if !CAPNP_LITE
3632 [ # # ]: 0 : class BlockTemplate::SubmitSolutionResults::Pipeline {
3633 : : public:
3634 : : typedef SubmitSolutionResults Pipelines;
3635 : :
3636 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3637 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3638 : 0 : : _typeless(kj::mv(typeless)) {}
3639 : :
3640 : : private:
3641 : : ::capnp::AnyPointer::Pipeline _typeless;
3642 : : friend class ::capnp::PipelineHook;
3643 : : template <typename, ::capnp::Kind>
3644 : : friend struct ::capnp::ToDynamic_;
3645 : : };
3646 : : #endif // !CAPNP_LITE
3647 : :
3648 : : class BlockTemplate::WaitNextParams::Reader {
3649 : : public:
3650 : : typedef WaitNextParams Reads;
3651 : :
3652 : : Reader() = default;
3653 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3654 : :
3655 : : inline ::capnp::MessageSize totalSize() const {
3656 : : return _reader.totalSize().asPublic();
3657 : : }
3658 : :
3659 : : #if !CAPNP_LITE
3660 : 0 : inline ::kj::StringTree toString() const {
3661 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3662 : : }
3663 : : #endif // !CAPNP_LITE
3664 : :
3665 : : inline bool hasContext() const;
3666 : : inline ::mp::Context::Reader getContext() const;
3667 : :
3668 : : inline bool hasOptions() const;
3669 : : inline ::ipc::capnp::messages::BlockWaitOptions::Reader getOptions() const;
3670 : :
3671 : : private:
3672 : : ::capnp::_::StructReader _reader;
3673 : : template <typename, ::capnp::Kind>
3674 : : friend struct ::capnp::ToDynamic_;
3675 : : template <typename, ::capnp::Kind>
3676 : : friend struct ::capnp::_::PointerHelpers;
3677 : : template <typename, ::capnp::Kind>
3678 : : friend struct ::capnp::List;
3679 : : friend class ::capnp::MessageBuilder;
3680 : : friend class ::capnp::Orphanage;
3681 : : };
3682 : :
3683 : : class BlockTemplate::WaitNextParams::Builder {
3684 : : public:
3685 : : typedef WaitNextParams Builds;
3686 : :
3687 : : Builder() = delete; // Deleted to discourage incorrect usage.
3688 : : // You can explicitly initialize to nullptr instead.
3689 : : inline Builder(decltype(nullptr)) {}
3690 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3691 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3692 : 0 : inline Reader asReader() const { return *this; }
3693 : :
3694 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3695 : : #if !CAPNP_LITE
3696 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3697 : : #endif // !CAPNP_LITE
3698 : :
3699 : : inline bool hasContext();
3700 : : inline ::mp::Context::Builder getContext();
3701 : : inline void setContext( ::mp::Context::Reader value);
3702 : : inline ::mp::Context::Builder initContext();
3703 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
3704 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
3705 : :
3706 : : inline bool hasOptions();
3707 : : inline ::ipc::capnp::messages::BlockWaitOptions::Builder getOptions();
3708 : : inline void setOptions( ::ipc::capnp::messages::BlockWaitOptions::Reader value);
3709 : : inline ::ipc::capnp::messages::BlockWaitOptions::Builder initOptions();
3710 : : inline void adoptOptions(::capnp::Orphan< ::ipc::capnp::messages::BlockWaitOptions>&& value);
3711 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockWaitOptions> disownOptions();
3712 : :
3713 : : private:
3714 : : ::capnp::_::StructBuilder _builder;
3715 : : template <typename, ::capnp::Kind>
3716 : : friend struct ::capnp::ToDynamic_;
3717 : : friend class ::capnp::Orphanage;
3718 : : template <typename, ::capnp::Kind>
3719 : : friend struct ::capnp::_::PointerHelpers;
3720 : : };
3721 : :
3722 : : #if !CAPNP_LITE
3723 : : class BlockTemplate::WaitNextParams::Pipeline {
3724 : : public:
3725 : : typedef WaitNextParams Pipelines;
3726 : :
3727 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3728 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3729 : : : _typeless(kj::mv(typeless)) {}
3730 : :
3731 : : inline ::mp::Context::Pipeline getContext();
3732 : : inline ::ipc::capnp::messages::BlockWaitOptions::Pipeline getOptions();
3733 : : private:
3734 : : ::capnp::AnyPointer::Pipeline _typeless;
3735 : : friend class ::capnp::PipelineHook;
3736 : : template <typename, ::capnp::Kind>
3737 : : friend struct ::capnp::ToDynamic_;
3738 : : };
3739 : : #endif // !CAPNP_LITE
3740 : :
3741 : : class BlockTemplate::WaitNextResults::Reader {
3742 : : public:
3743 : : typedef WaitNextResults Reads;
3744 : :
3745 : : Reader() = default;
3746 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3747 : :
3748 : : inline ::capnp::MessageSize totalSize() const {
3749 : : return _reader.totalSize().asPublic();
3750 : : }
3751 : :
3752 : : #if !CAPNP_LITE
3753 : 0 : inline ::kj::StringTree toString() const {
3754 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3755 : : }
3756 : : #endif // !CAPNP_LITE
3757 : :
3758 : : inline bool hasResult() const;
3759 : : #if !CAPNP_LITE
3760 : : inline ::ipc::capnp::messages::BlockTemplate::Client getResult() const;
3761 : : #endif // !CAPNP_LITE
3762 : :
3763 : : private:
3764 : : ::capnp::_::StructReader _reader;
3765 : : template <typename, ::capnp::Kind>
3766 : : friend struct ::capnp::ToDynamic_;
3767 : : template <typename, ::capnp::Kind>
3768 : : friend struct ::capnp::_::PointerHelpers;
3769 : : template <typename, ::capnp::Kind>
3770 : : friend struct ::capnp::List;
3771 : : friend class ::capnp::MessageBuilder;
3772 : : friend class ::capnp::Orphanage;
3773 : : };
3774 : :
3775 : : class BlockTemplate::WaitNextResults::Builder {
3776 : : public:
3777 : : typedef WaitNextResults Builds;
3778 : :
3779 : : Builder() = delete; // Deleted to discourage incorrect usage.
3780 : : // You can explicitly initialize to nullptr instead.
3781 : : inline Builder(decltype(nullptr)) {}
3782 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3783 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3784 : 0 : inline Reader asReader() const { return *this; }
3785 : :
3786 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3787 : : #if !CAPNP_LITE
3788 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3789 : : #endif // !CAPNP_LITE
3790 : :
3791 : : inline bool hasResult();
3792 : : #if !CAPNP_LITE
3793 : : inline ::ipc::capnp::messages::BlockTemplate::Client getResult();
3794 : : inline void setResult( ::ipc::capnp::messages::BlockTemplate::Client&& value);
3795 : : inline void setResult( ::ipc::capnp::messages::BlockTemplate::Client& value);
3796 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate>&& value);
3797 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate> disownResult();
3798 : : #endif // !CAPNP_LITE
3799 : :
3800 : : private:
3801 : : ::capnp::_::StructBuilder _builder;
3802 : : template <typename, ::capnp::Kind>
3803 : : friend struct ::capnp::ToDynamic_;
3804 : : friend class ::capnp::Orphanage;
3805 : : template <typename, ::capnp::Kind>
3806 : : friend struct ::capnp::_::PointerHelpers;
3807 : : };
3808 : :
3809 : : #if !CAPNP_LITE
3810 [ # # ]: 0 : class BlockTemplate::WaitNextResults::Pipeline {
3811 : : public:
3812 : : typedef WaitNextResults Pipelines;
3813 : :
3814 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3815 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3816 : 0 : : _typeless(kj::mv(typeless)) {}
3817 : :
3818 : : inline ::ipc::capnp::messages::BlockTemplate::Client getResult();
3819 : : private:
3820 : : ::capnp::AnyPointer::Pipeline _typeless;
3821 : : friend class ::capnp::PipelineHook;
3822 : : template <typename, ::capnp::Kind>
3823 : : friend struct ::capnp::ToDynamic_;
3824 : : };
3825 : : #endif // !CAPNP_LITE
3826 : :
3827 : : class BlockTemplate::InterruptWaitParams::Reader {
3828 : : public:
3829 : : typedef InterruptWaitParams Reads;
3830 : :
3831 : : Reader() = default;
3832 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3833 : :
3834 : : inline ::capnp::MessageSize totalSize() const {
3835 : : return _reader.totalSize().asPublic();
3836 : : }
3837 : :
3838 : : #if !CAPNP_LITE
3839 : 0 : inline ::kj::StringTree toString() const {
3840 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3841 : : }
3842 : : #endif // !CAPNP_LITE
3843 : :
3844 : : private:
3845 : : ::capnp::_::StructReader _reader;
3846 : : template <typename, ::capnp::Kind>
3847 : : friend struct ::capnp::ToDynamic_;
3848 : : template <typename, ::capnp::Kind>
3849 : : friend struct ::capnp::_::PointerHelpers;
3850 : : template <typename, ::capnp::Kind>
3851 : : friend struct ::capnp::List;
3852 : : friend class ::capnp::MessageBuilder;
3853 : : friend class ::capnp::Orphanage;
3854 : : };
3855 : :
3856 : : class BlockTemplate::InterruptWaitParams::Builder {
3857 : : public:
3858 : : typedef InterruptWaitParams Builds;
3859 : :
3860 : : Builder() = delete; // Deleted to discourage incorrect usage.
3861 : : // You can explicitly initialize to nullptr instead.
3862 : : inline Builder(decltype(nullptr)) {}
3863 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3864 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3865 : 0 : inline Reader asReader() const { return *this; }
3866 : :
3867 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3868 : : #if !CAPNP_LITE
3869 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3870 : : #endif // !CAPNP_LITE
3871 : :
3872 : : private:
3873 : : ::capnp::_::StructBuilder _builder;
3874 : : template <typename, ::capnp::Kind>
3875 : : friend struct ::capnp::ToDynamic_;
3876 : : friend class ::capnp::Orphanage;
3877 : : template <typename, ::capnp::Kind>
3878 : : friend struct ::capnp::_::PointerHelpers;
3879 : : };
3880 : :
3881 : : #if !CAPNP_LITE
3882 : : class BlockTemplate::InterruptWaitParams::Pipeline {
3883 : : public:
3884 : : typedef InterruptWaitParams Pipelines;
3885 : :
3886 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3887 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3888 : : : _typeless(kj::mv(typeless)) {}
3889 : :
3890 : : private:
3891 : : ::capnp::AnyPointer::Pipeline _typeless;
3892 : : friend class ::capnp::PipelineHook;
3893 : : template <typename, ::capnp::Kind>
3894 : : friend struct ::capnp::ToDynamic_;
3895 : : };
3896 : : #endif // !CAPNP_LITE
3897 : :
3898 : : class BlockTemplate::InterruptWaitResults::Reader {
3899 : : public:
3900 : : typedef InterruptWaitResults Reads;
3901 : :
3902 : : Reader() = default;
3903 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3904 : :
3905 : : inline ::capnp::MessageSize totalSize() const {
3906 : : return _reader.totalSize().asPublic();
3907 : : }
3908 : :
3909 : : #if !CAPNP_LITE
3910 : 0 : inline ::kj::StringTree toString() const {
3911 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3912 : : }
3913 : : #endif // !CAPNP_LITE
3914 : :
3915 : : private:
3916 : : ::capnp::_::StructReader _reader;
3917 : : template <typename, ::capnp::Kind>
3918 : : friend struct ::capnp::ToDynamic_;
3919 : : template <typename, ::capnp::Kind>
3920 : : friend struct ::capnp::_::PointerHelpers;
3921 : : template <typename, ::capnp::Kind>
3922 : : friend struct ::capnp::List;
3923 : : friend class ::capnp::MessageBuilder;
3924 : : friend class ::capnp::Orphanage;
3925 : : };
3926 : :
3927 : : class BlockTemplate::InterruptWaitResults::Builder {
3928 : : public:
3929 : : typedef InterruptWaitResults Builds;
3930 : :
3931 : : Builder() = delete; // Deleted to discourage incorrect usage.
3932 : : // You can explicitly initialize to nullptr instead.
3933 : : inline Builder(decltype(nullptr)) {}
3934 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
3935 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
3936 : 0 : inline Reader asReader() const { return *this; }
3937 : :
3938 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
3939 : : #if !CAPNP_LITE
3940 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
3941 : : #endif // !CAPNP_LITE
3942 : :
3943 : : private:
3944 : : ::capnp::_::StructBuilder _builder;
3945 : : template <typename, ::capnp::Kind>
3946 : : friend struct ::capnp::ToDynamic_;
3947 : : friend class ::capnp::Orphanage;
3948 : : template <typename, ::capnp::Kind>
3949 : : friend struct ::capnp::_::PointerHelpers;
3950 : : };
3951 : :
3952 : : #if !CAPNP_LITE
3953 [ # # ]: 0 : class BlockTemplate::InterruptWaitResults::Pipeline {
3954 : : public:
3955 : : typedef InterruptWaitResults Pipelines;
3956 : :
3957 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
3958 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
3959 : 0 : : _typeless(kj::mv(typeless)) {}
3960 : :
3961 : : private:
3962 : : ::capnp::AnyPointer::Pipeline _typeless;
3963 : : friend class ::capnp::PipelineHook;
3964 : : template <typename, ::capnp::Kind>
3965 : : friend struct ::capnp::ToDynamic_;
3966 : : };
3967 : : #endif // !CAPNP_LITE
3968 : :
3969 : : class BlockTemplate::GetCoinbaseTxParams::Reader {
3970 : : public:
3971 : : typedef GetCoinbaseTxParams Reads;
3972 : :
3973 : : Reader() = default;
3974 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
3975 : :
3976 : : inline ::capnp::MessageSize totalSize() const {
3977 : : return _reader.totalSize().asPublic();
3978 : : }
3979 : :
3980 : : #if !CAPNP_LITE
3981 : 0 : inline ::kj::StringTree toString() const {
3982 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
3983 : : }
3984 : : #endif // !CAPNP_LITE
3985 : :
3986 : : inline bool hasContext() const;
3987 : : inline ::mp::Context::Reader getContext() const;
3988 : :
3989 : : private:
3990 : : ::capnp::_::StructReader _reader;
3991 : : template <typename, ::capnp::Kind>
3992 : : friend struct ::capnp::ToDynamic_;
3993 : : template <typename, ::capnp::Kind>
3994 : : friend struct ::capnp::_::PointerHelpers;
3995 : : template <typename, ::capnp::Kind>
3996 : : friend struct ::capnp::List;
3997 : : friend class ::capnp::MessageBuilder;
3998 : : friend class ::capnp::Orphanage;
3999 : : };
4000 : :
4001 : : class BlockTemplate::GetCoinbaseTxParams::Builder {
4002 : : public:
4003 : : typedef GetCoinbaseTxParams Builds;
4004 : :
4005 : : Builder() = delete; // Deleted to discourage incorrect usage.
4006 : : // You can explicitly initialize to nullptr instead.
4007 : : inline Builder(decltype(nullptr)) {}
4008 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
4009 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
4010 : 0 : inline Reader asReader() const { return *this; }
4011 : :
4012 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
4013 : : #if !CAPNP_LITE
4014 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
4015 : : #endif // !CAPNP_LITE
4016 : :
4017 : : inline bool hasContext();
4018 : : inline ::mp::Context::Builder getContext();
4019 : : inline void setContext( ::mp::Context::Reader value);
4020 : : inline ::mp::Context::Builder initContext();
4021 : : inline void adoptContext(::capnp::Orphan< ::mp::Context>&& value);
4022 : : inline ::capnp::Orphan< ::mp::Context> disownContext();
4023 : :
4024 : : private:
4025 : : ::capnp::_::StructBuilder _builder;
4026 : : template <typename, ::capnp::Kind>
4027 : : friend struct ::capnp::ToDynamic_;
4028 : : friend class ::capnp::Orphanage;
4029 : : template <typename, ::capnp::Kind>
4030 : : friend struct ::capnp::_::PointerHelpers;
4031 : : };
4032 : :
4033 : : #if !CAPNP_LITE
4034 : : class BlockTemplate::GetCoinbaseTxParams::Pipeline {
4035 : : public:
4036 : : typedef GetCoinbaseTxParams Pipelines;
4037 : :
4038 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
4039 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
4040 : : : _typeless(kj::mv(typeless)) {}
4041 : :
4042 : : inline ::mp::Context::Pipeline getContext();
4043 : : private:
4044 : : ::capnp::AnyPointer::Pipeline _typeless;
4045 : : friend class ::capnp::PipelineHook;
4046 : : template <typename, ::capnp::Kind>
4047 : : friend struct ::capnp::ToDynamic_;
4048 : : };
4049 : : #endif // !CAPNP_LITE
4050 : :
4051 : : class BlockTemplate::GetCoinbaseTxResults::Reader {
4052 : : public:
4053 : : typedef GetCoinbaseTxResults Reads;
4054 : :
4055 : : Reader() = default;
4056 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
4057 : :
4058 : : inline ::capnp::MessageSize totalSize() const {
4059 : : return _reader.totalSize().asPublic();
4060 : : }
4061 : :
4062 : : #if !CAPNP_LITE
4063 : 0 : inline ::kj::StringTree toString() const {
4064 [ # # ]: 0 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
4065 : : }
4066 : : #endif // !CAPNP_LITE
4067 : :
4068 : : inline bool hasResult() const;
4069 : : inline ::ipc::capnp::messages::CoinbaseTx::Reader getResult() const;
4070 : :
4071 : : private:
4072 : : ::capnp::_::StructReader _reader;
4073 : : template <typename, ::capnp::Kind>
4074 : : friend struct ::capnp::ToDynamic_;
4075 : : template <typename, ::capnp::Kind>
4076 : : friend struct ::capnp::_::PointerHelpers;
4077 : : template <typename, ::capnp::Kind>
4078 : : friend struct ::capnp::List;
4079 : : friend class ::capnp::MessageBuilder;
4080 : : friend class ::capnp::Orphanage;
4081 : : };
4082 : :
4083 : : class BlockTemplate::GetCoinbaseTxResults::Builder {
4084 : : public:
4085 : : typedef GetCoinbaseTxResults Builds;
4086 : :
4087 : : Builder() = delete; // Deleted to discourage incorrect usage.
4088 : : // You can explicitly initialize to nullptr instead.
4089 : : inline Builder(decltype(nullptr)) {}
4090 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
4091 : 0 : inline operator Reader() const { return Reader(_builder.asReader()); }
4092 : 0 : inline Reader asReader() const { return *this; }
4093 : :
4094 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
4095 : : #if !CAPNP_LITE
4096 : 0 : inline ::kj::StringTree toString() const { return asReader().toString(); }
4097 : : #endif // !CAPNP_LITE
4098 : :
4099 : : inline bool hasResult();
4100 : : inline ::ipc::capnp::messages::CoinbaseTx::Builder getResult();
4101 : : inline void setResult( ::ipc::capnp::messages::CoinbaseTx::Reader value);
4102 : : inline ::ipc::capnp::messages::CoinbaseTx::Builder initResult();
4103 : : inline void adoptResult(::capnp::Orphan< ::ipc::capnp::messages::CoinbaseTx>&& value);
4104 : : inline ::capnp::Orphan< ::ipc::capnp::messages::CoinbaseTx> disownResult();
4105 : :
4106 : : private:
4107 : : ::capnp::_::StructBuilder _builder;
4108 : : template <typename, ::capnp::Kind>
4109 : : friend struct ::capnp::ToDynamic_;
4110 : : friend class ::capnp::Orphanage;
4111 : : template <typename, ::capnp::Kind>
4112 : : friend struct ::capnp::_::PointerHelpers;
4113 : : };
4114 : :
4115 : : #if !CAPNP_LITE
4116 [ # # ]: 0 : class BlockTemplate::GetCoinbaseTxResults::Pipeline {
4117 : : public:
4118 : : typedef GetCoinbaseTxResults Pipelines;
4119 : :
4120 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
4121 : 0 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
4122 : 0 : : _typeless(kj::mv(typeless)) {}
4123 : :
4124 : : inline ::ipc::capnp::messages::CoinbaseTx::Pipeline getResult();
4125 : : private:
4126 : : ::capnp::AnyPointer::Pipeline _typeless;
4127 : : friend class ::capnp::PipelineHook;
4128 : : template <typename, ::capnp::Kind>
4129 : : friend struct ::capnp::ToDynamic_;
4130 : : };
4131 : : #endif // !CAPNP_LITE
4132 : :
4133 : : class BlockCreateOptions::Reader {
4134 : : public:
4135 : : typedef BlockCreateOptions Reads;
4136 : :
4137 : : Reader() = default;
4138 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
4139 : :
4140 : : inline ::capnp::MessageSize totalSize() const {
4141 : : return _reader.totalSize().asPublic();
4142 : : }
4143 : :
4144 : : #if !CAPNP_LITE
4145 : : inline ::kj::StringTree toString() const {
4146 : : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
4147 : : }
4148 : : #endif // !CAPNP_LITE
4149 : :
4150 : : inline bool getUseMempool() const;
4151 : :
4152 : : inline ::uint64_t getBlockReservedWeight() const;
4153 : :
4154 : : inline ::uint64_t getCoinbaseOutputMaxAdditionalSigops() const;
4155 : :
4156 : : private:
4157 : : ::capnp::_::StructReader _reader;
4158 : : template <typename, ::capnp::Kind>
4159 : : friend struct ::capnp::ToDynamic_;
4160 : : template <typename, ::capnp::Kind>
4161 : : friend struct ::capnp::_::PointerHelpers;
4162 : : template <typename, ::capnp::Kind>
4163 : : friend struct ::capnp::List;
4164 : : friend class ::capnp::MessageBuilder;
4165 : : friend class ::capnp::Orphanage;
4166 : : };
4167 : :
4168 : : class BlockCreateOptions::Builder {
4169 : : public:
4170 : : typedef BlockCreateOptions Builds;
4171 : :
4172 : : Builder() = delete; // Deleted to discourage incorrect usage.
4173 : : // You can explicitly initialize to nullptr instead.
4174 : : inline Builder(decltype(nullptr)) {}
4175 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
4176 : : inline operator Reader() const { return Reader(_builder.asReader()); }
4177 : : inline Reader asReader() const { return *this; }
4178 : :
4179 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
4180 : : #if !CAPNP_LITE
4181 : : inline ::kj::StringTree toString() const { return asReader().toString(); }
4182 : : #endif // !CAPNP_LITE
4183 : :
4184 : : inline bool getUseMempool();
4185 : : inline void setUseMempool(bool value);
4186 : :
4187 : : inline ::uint64_t getBlockReservedWeight();
4188 : : inline void setBlockReservedWeight( ::uint64_t value);
4189 : :
4190 : : inline ::uint64_t getCoinbaseOutputMaxAdditionalSigops();
4191 : : inline void setCoinbaseOutputMaxAdditionalSigops( ::uint64_t value);
4192 : :
4193 : : private:
4194 : : ::capnp::_::StructBuilder _builder;
4195 : : template <typename, ::capnp::Kind>
4196 : : friend struct ::capnp::ToDynamic_;
4197 : : friend class ::capnp::Orphanage;
4198 : : template <typename, ::capnp::Kind>
4199 : : friend struct ::capnp::_::PointerHelpers;
4200 : : };
4201 : :
4202 : : #if !CAPNP_LITE
4203 : : class BlockCreateOptions::Pipeline {
4204 : : public:
4205 : : typedef BlockCreateOptions Pipelines;
4206 : :
4207 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
4208 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
4209 : : : _typeless(kj::mv(typeless)) {}
4210 : :
4211 : : private:
4212 : : ::capnp::AnyPointer::Pipeline _typeless;
4213 : : friend class ::capnp::PipelineHook;
4214 : : template <typename, ::capnp::Kind>
4215 : : friend struct ::capnp::ToDynamic_;
4216 : : };
4217 : : #endif // !CAPNP_LITE
4218 : :
4219 : : class BlockWaitOptions::Reader {
4220 : : public:
4221 : : typedef BlockWaitOptions Reads;
4222 : :
4223 : : Reader() = default;
4224 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
4225 : :
4226 : : inline ::capnp::MessageSize totalSize() const {
4227 : : return _reader.totalSize().asPublic();
4228 : : }
4229 : :
4230 : : #if !CAPNP_LITE
4231 : : inline ::kj::StringTree toString() const {
4232 : : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
4233 : : }
4234 : : #endif // !CAPNP_LITE
4235 : :
4236 : : inline double getTimeout() const;
4237 : :
4238 : : inline ::int64_t getFeeThreshold() const;
4239 : :
4240 : : private:
4241 : : ::capnp::_::StructReader _reader;
4242 : : template <typename, ::capnp::Kind>
4243 : : friend struct ::capnp::ToDynamic_;
4244 : : template <typename, ::capnp::Kind>
4245 : : friend struct ::capnp::_::PointerHelpers;
4246 : : template <typename, ::capnp::Kind>
4247 : : friend struct ::capnp::List;
4248 : : friend class ::capnp::MessageBuilder;
4249 : : friend class ::capnp::Orphanage;
4250 : : };
4251 : :
4252 : : class BlockWaitOptions::Builder {
4253 : : public:
4254 : : typedef BlockWaitOptions Builds;
4255 : :
4256 : : Builder() = delete; // Deleted to discourage incorrect usage.
4257 : : // You can explicitly initialize to nullptr instead.
4258 : : inline Builder(decltype(nullptr)) {}
4259 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
4260 : : inline operator Reader() const { return Reader(_builder.asReader()); }
4261 : : inline Reader asReader() const { return *this; }
4262 : :
4263 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
4264 : : #if !CAPNP_LITE
4265 : : inline ::kj::StringTree toString() const { return asReader().toString(); }
4266 : : #endif // !CAPNP_LITE
4267 : :
4268 : : inline double getTimeout();
4269 : : inline void setTimeout(double value);
4270 : :
4271 : : inline ::int64_t getFeeThreshold();
4272 : : inline void setFeeThreshold( ::int64_t value);
4273 : :
4274 : : private:
4275 : : ::capnp::_::StructBuilder _builder;
4276 : : template <typename, ::capnp::Kind>
4277 : : friend struct ::capnp::ToDynamic_;
4278 : : friend class ::capnp::Orphanage;
4279 : : template <typename, ::capnp::Kind>
4280 : : friend struct ::capnp::_::PointerHelpers;
4281 : : };
4282 : :
4283 : : #if !CAPNP_LITE
4284 : : class BlockWaitOptions::Pipeline {
4285 : : public:
4286 : : typedef BlockWaitOptions Pipelines;
4287 : :
4288 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
4289 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
4290 : : : _typeless(kj::mv(typeless)) {}
4291 : :
4292 : : private:
4293 : : ::capnp::AnyPointer::Pipeline _typeless;
4294 : : friend class ::capnp::PipelineHook;
4295 : : template <typename, ::capnp::Kind>
4296 : : friend struct ::capnp::ToDynamic_;
4297 : : };
4298 : : #endif // !CAPNP_LITE
4299 : :
4300 : : class BlockCheckOptions::Reader {
4301 : : public:
4302 : : typedef BlockCheckOptions Reads;
4303 : :
4304 : : Reader() = default;
4305 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
4306 : :
4307 : : inline ::capnp::MessageSize totalSize() const {
4308 : : return _reader.totalSize().asPublic();
4309 : : }
4310 : :
4311 : : #if !CAPNP_LITE
4312 : : inline ::kj::StringTree toString() const {
4313 : : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
4314 : : }
4315 : : #endif // !CAPNP_LITE
4316 : :
4317 : : inline bool getCheckMerkleRoot() const;
4318 : :
4319 : : inline bool getCheckPow() const;
4320 : :
4321 : : private:
4322 : : ::capnp::_::StructReader _reader;
4323 : : template <typename, ::capnp::Kind>
4324 : : friend struct ::capnp::ToDynamic_;
4325 : : template <typename, ::capnp::Kind>
4326 : : friend struct ::capnp::_::PointerHelpers;
4327 : : template <typename, ::capnp::Kind>
4328 : : friend struct ::capnp::List;
4329 : : friend class ::capnp::MessageBuilder;
4330 : : friend class ::capnp::Orphanage;
4331 : : };
4332 : :
4333 : : class BlockCheckOptions::Builder {
4334 : : public:
4335 : : typedef BlockCheckOptions Builds;
4336 : :
4337 : : Builder() = delete; // Deleted to discourage incorrect usage.
4338 : : // You can explicitly initialize to nullptr instead.
4339 : : inline Builder(decltype(nullptr)) {}
4340 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
4341 : : inline operator Reader() const { return Reader(_builder.asReader()); }
4342 : : inline Reader asReader() const { return *this; }
4343 : :
4344 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
4345 : : #if !CAPNP_LITE
4346 : : inline ::kj::StringTree toString() const { return asReader().toString(); }
4347 : : #endif // !CAPNP_LITE
4348 : :
4349 : : inline bool getCheckMerkleRoot();
4350 : : inline void setCheckMerkleRoot(bool value);
4351 : :
4352 : : inline bool getCheckPow();
4353 : : inline void setCheckPow(bool value);
4354 : :
4355 : : private:
4356 : : ::capnp::_::StructBuilder _builder;
4357 : : template <typename, ::capnp::Kind>
4358 : : friend struct ::capnp::ToDynamic_;
4359 : : friend class ::capnp::Orphanage;
4360 : : template <typename, ::capnp::Kind>
4361 : : friend struct ::capnp::_::PointerHelpers;
4362 : : };
4363 : :
4364 : : #if !CAPNP_LITE
4365 : : class BlockCheckOptions::Pipeline {
4366 : : public:
4367 : : typedef BlockCheckOptions Pipelines;
4368 : :
4369 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
4370 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
4371 : : : _typeless(kj::mv(typeless)) {}
4372 : :
4373 : : private:
4374 : : ::capnp::AnyPointer::Pipeline _typeless;
4375 : : friend class ::capnp::PipelineHook;
4376 : : template <typename, ::capnp::Kind>
4377 : : friend struct ::capnp::ToDynamic_;
4378 : : };
4379 : : #endif // !CAPNP_LITE
4380 : :
4381 : : class CoinbaseTx::Reader {
4382 : : public:
4383 : : typedef CoinbaseTx Reads;
4384 : :
4385 : : Reader() = default;
4386 : 0 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
4387 : :
4388 : : inline ::capnp::MessageSize totalSize() const {
4389 : : return _reader.totalSize().asPublic();
4390 : : }
4391 : :
4392 : : #if !CAPNP_LITE
4393 : : inline ::kj::StringTree toString() const {
4394 : : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
4395 : : }
4396 : : #endif // !CAPNP_LITE
4397 : :
4398 : : inline ::uint32_t getVersion() const;
4399 : :
4400 : : inline ::uint32_t getSequence() const;
4401 : :
4402 : : inline bool hasScriptSigPrefix() const;
4403 : : inline ::capnp::Data::Reader getScriptSigPrefix() const;
4404 : :
4405 : : inline bool hasWitness() const;
4406 : : inline ::capnp::Data::Reader getWitness() const;
4407 : :
4408 : : inline ::int64_t getBlockRewardRemaining() const;
4409 : :
4410 : : inline bool hasRequiredOutputs() const;
4411 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader getRequiredOutputs() const;
4412 : :
4413 : : inline ::uint32_t getLockTime() const;
4414 : :
4415 : : private:
4416 : : ::capnp::_::StructReader _reader;
4417 : : template <typename, ::capnp::Kind>
4418 : : friend struct ::capnp::ToDynamic_;
4419 : : template <typename, ::capnp::Kind>
4420 : : friend struct ::capnp::_::PointerHelpers;
4421 : : template <typename, ::capnp::Kind>
4422 : : friend struct ::capnp::List;
4423 : : friend class ::capnp::MessageBuilder;
4424 : : friend class ::capnp::Orphanage;
4425 : : };
4426 : :
4427 : : class CoinbaseTx::Builder {
4428 : : public:
4429 : : typedef CoinbaseTx Builds;
4430 : :
4431 : : Builder() = delete; // Deleted to discourage incorrect usage.
4432 : : // You can explicitly initialize to nullptr instead.
4433 : : inline Builder(decltype(nullptr)) {}
4434 : 0 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
4435 : : inline operator Reader() const { return Reader(_builder.asReader()); }
4436 : : inline Reader asReader() const { return *this; }
4437 : :
4438 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
4439 : : #if !CAPNP_LITE
4440 : : inline ::kj::StringTree toString() const { return asReader().toString(); }
4441 : : #endif // !CAPNP_LITE
4442 : :
4443 : : inline ::uint32_t getVersion();
4444 : : inline void setVersion( ::uint32_t value);
4445 : :
4446 : : inline ::uint32_t getSequence();
4447 : : inline void setSequence( ::uint32_t value);
4448 : :
4449 : : inline bool hasScriptSigPrefix();
4450 : : inline ::capnp::Data::Builder getScriptSigPrefix();
4451 : : inline void setScriptSigPrefix( ::capnp::Data::Reader value);
4452 : : inline ::capnp::Data::Builder initScriptSigPrefix(unsigned int size);
4453 : : inline void adoptScriptSigPrefix(::capnp::Orphan< ::capnp::Data>&& value);
4454 : : inline ::capnp::Orphan< ::capnp::Data> disownScriptSigPrefix();
4455 : :
4456 : : inline bool hasWitness();
4457 : : inline ::capnp::Data::Builder getWitness();
4458 : : inline void setWitness( ::capnp::Data::Reader value);
4459 : : inline ::capnp::Data::Builder initWitness(unsigned int size);
4460 : : inline void adoptWitness(::capnp::Orphan< ::capnp::Data>&& value);
4461 : : inline ::capnp::Orphan< ::capnp::Data> disownWitness();
4462 : :
4463 : : inline ::int64_t getBlockRewardRemaining();
4464 : : inline void setBlockRewardRemaining( ::int64_t value);
4465 : :
4466 : : inline bool hasRequiredOutputs();
4467 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder getRequiredOutputs();
4468 : : inline void setRequiredOutputs( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value);
4469 : : inline void setRequiredOutputs(::kj::ArrayPtr<const ::capnp::Data::Reader> value);
4470 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder initRequiredOutputs(unsigned int size);
4471 : : inline void adoptRequiredOutputs(::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value);
4472 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> disownRequiredOutputs();
4473 : :
4474 : : inline ::uint32_t getLockTime();
4475 : : inline void setLockTime( ::uint32_t value);
4476 : :
4477 : : private:
4478 : : ::capnp::_::StructBuilder _builder;
4479 : : template <typename, ::capnp::Kind>
4480 : : friend struct ::capnp::ToDynamic_;
4481 : : friend class ::capnp::Orphanage;
4482 : : template <typename, ::capnp::Kind>
4483 : : friend struct ::capnp::_::PointerHelpers;
4484 : : };
4485 : :
4486 : : #if !CAPNP_LITE
4487 : : class CoinbaseTx::Pipeline {
4488 : : public:
4489 : : typedef CoinbaseTx Pipelines;
4490 : :
4491 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
4492 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
4493 : : : _typeless(kj::mv(typeless)) {}
4494 : :
4495 : : private:
4496 : : ::capnp::AnyPointer::Pipeline _typeless;
4497 : : friend class ::capnp::PipelineHook;
4498 : : template <typename, ::capnp::Kind>
4499 : : friend struct ::capnp::ToDynamic_;
4500 : : };
4501 : : #endif // !CAPNP_LITE
4502 : :
4503 : : // =======================================================================================
4504 : :
4505 : : #if !CAPNP_LITE
4506 : : inline Mining::Client::Client(decltype(nullptr))
4507 : : : ::capnp::Capability::Client(nullptr) {}
4508 : 0 : inline Mining::Client::Client(
4509 : : ::kj::Own< ::capnp::ClientHook>&& hook)
4510 [ # # ]: 0 : : ::capnp::Capability::Client(::kj::mv(hook)) {}
4511 : : template <typename _t, typename>
4512 : 0 : inline Mining::Client::Client(::kj::Own<_t>&& server)
4513 [ # # ]: 0 : : ::capnp::Capability::Client(::kj::mv(server)) {}
4514 : : template <typename _t, typename>
4515 : : inline Mining::Client::Client(::kj::Promise<_t>&& promise)
4516 : : : ::capnp::Capability::Client(::kj::mv(promise)) {}
4517 : : inline Mining::Client::Client(::kj::Exception&& exception)
4518 : : : ::capnp::Capability::Client(::kj::mv(exception)) {}
4519 : : inline ::ipc::capnp::messages::Mining::Client& Mining::Client::operator=(Client& other) {
4520 : : ::capnp::Capability::Client::operator=(other);
4521 : : return *this;
4522 : : }
4523 : : inline ::ipc::capnp::messages::Mining::Client& Mining::Client::operator=(Client&& other) {
4524 : : ::capnp::Capability::Client::operator=(kj::mv(other));
4525 : : return *this;
4526 : : }
4527 : :
4528 : : #endif // !CAPNP_LITE
4529 : : inline bool Mining::IsTestChainParams::Reader::hasContext() const {
4530 : : return !_reader.getPointerField(
4531 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4532 : : }
4533 : : inline bool Mining::IsTestChainParams::Builder::hasContext() {
4534 : : return !_builder.getPointerField(
4535 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4536 : : }
4537 : 0 : inline ::mp::Context::Reader Mining::IsTestChainParams::Reader::getContext() const {
4538 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
4539 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4540 : : }
4541 : : inline ::mp::Context::Builder Mining::IsTestChainParams::Builder::getContext() {
4542 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
4543 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4544 : : }
4545 : : #if !CAPNP_LITE
4546 : : inline ::mp::Context::Pipeline Mining::IsTestChainParams::Pipeline::getContext() {
4547 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
4548 : : }
4549 : : #endif // !CAPNP_LITE
4550 : : inline void Mining::IsTestChainParams::Builder::setContext( ::mp::Context::Reader value) {
4551 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
4552 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4553 : : }
4554 : 0 : inline ::mp::Context::Builder Mining::IsTestChainParams::Builder::initContext() {
4555 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
4556 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4557 : : }
4558 : : inline void Mining::IsTestChainParams::Builder::adoptContext(
4559 : : ::capnp::Orphan< ::mp::Context>&& value) {
4560 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
4561 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4562 : : }
4563 : : inline ::capnp::Orphan< ::mp::Context> Mining::IsTestChainParams::Builder::disownContext() {
4564 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
4565 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4566 : : }
4567 : :
4568 : 0 : inline bool Mining::IsTestChainResults::Reader::getResult() const {
4569 [ # # ]: 0 : return _reader.getDataField<bool>(
4570 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4571 : : }
4572 : :
4573 : : inline bool Mining::IsTestChainResults::Builder::getResult() {
4574 : : return _builder.getDataField<bool>(
4575 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4576 : : }
4577 : 0 : inline void Mining::IsTestChainResults::Builder::setResult(bool value) {
4578 : 0 : _builder.setDataField<bool>(
4579 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4580 : : }
4581 : :
4582 : : inline bool Mining::IsInitialBlockDownloadParams::Reader::hasContext() const {
4583 : : return !_reader.getPointerField(
4584 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4585 : : }
4586 : : inline bool Mining::IsInitialBlockDownloadParams::Builder::hasContext() {
4587 : : return !_builder.getPointerField(
4588 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4589 : : }
4590 : 0 : inline ::mp::Context::Reader Mining::IsInitialBlockDownloadParams::Reader::getContext() const {
4591 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
4592 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4593 : : }
4594 : : inline ::mp::Context::Builder Mining::IsInitialBlockDownloadParams::Builder::getContext() {
4595 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
4596 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4597 : : }
4598 : : #if !CAPNP_LITE
4599 : : inline ::mp::Context::Pipeline Mining::IsInitialBlockDownloadParams::Pipeline::getContext() {
4600 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
4601 : : }
4602 : : #endif // !CAPNP_LITE
4603 : : inline void Mining::IsInitialBlockDownloadParams::Builder::setContext( ::mp::Context::Reader value) {
4604 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
4605 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4606 : : }
4607 : 0 : inline ::mp::Context::Builder Mining::IsInitialBlockDownloadParams::Builder::initContext() {
4608 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
4609 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4610 : : }
4611 : : inline void Mining::IsInitialBlockDownloadParams::Builder::adoptContext(
4612 : : ::capnp::Orphan< ::mp::Context>&& value) {
4613 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
4614 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4615 : : }
4616 : : inline ::capnp::Orphan< ::mp::Context> Mining::IsInitialBlockDownloadParams::Builder::disownContext() {
4617 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
4618 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4619 : : }
4620 : :
4621 : 0 : inline bool Mining::IsInitialBlockDownloadResults::Reader::getResult() const {
4622 [ # # ]: 0 : return _reader.getDataField<bool>(
4623 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4624 : : }
4625 : :
4626 : : inline bool Mining::IsInitialBlockDownloadResults::Builder::getResult() {
4627 : : return _builder.getDataField<bool>(
4628 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4629 : : }
4630 : 0 : inline void Mining::IsInitialBlockDownloadResults::Builder::setResult(bool value) {
4631 : 0 : _builder.setDataField<bool>(
4632 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4633 : : }
4634 : :
4635 : : inline bool Mining::GetTipParams::Reader::hasContext() const {
4636 : : return !_reader.getPointerField(
4637 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4638 : : }
4639 : : inline bool Mining::GetTipParams::Builder::hasContext() {
4640 : : return !_builder.getPointerField(
4641 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4642 : : }
4643 : 0 : inline ::mp::Context::Reader Mining::GetTipParams::Reader::getContext() const {
4644 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
4645 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4646 : : }
4647 : : inline ::mp::Context::Builder Mining::GetTipParams::Builder::getContext() {
4648 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
4649 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4650 : : }
4651 : : #if !CAPNP_LITE
4652 : : inline ::mp::Context::Pipeline Mining::GetTipParams::Pipeline::getContext() {
4653 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
4654 : : }
4655 : : #endif // !CAPNP_LITE
4656 : : inline void Mining::GetTipParams::Builder::setContext( ::mp::Context::Reader value) {
4657 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
4658 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4659 : : }
4660 : 0 : inline ::mp::Context::Builder Mining::GetTipParams::Builder::initContext() {
4661 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
4662 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4663 : : }
4664 : : inline void Mining::GetTipParams::Builder::adoptContext(
4665 : : ::capnp::Orphan< ::mp::Context>&& value) {
4666 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
4667 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4668 : : }
4669 : : inline ::capnp::Orphan< ::mp::Context> Mining::GetTipParams::Builder::disownContext() {
4670 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
4671 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4672 : : }
4673 : :
4674 : : inline bool Mining::GetTipResults::Reader::hasResult() const {
4675 : : return !_reader.getPointerField(
4676 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4677 : : }
4678 : : inline bool Mining::GetTipResults::Builder::hasResult() {
4679 : : return !_builder.getPointerField(
4680 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4681 : : }
4682 : 0 : inline ::ipc::capnp::messages::BlockRef::Reader Mining::GetTipResults::Reader::getResult() const {
4683 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::get(_reader.getPointerField(
4684 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4685 : : }
4686 : : inline ::ipc::capnp::messages::BlockRef::Builder Mining::GetTipResults::Builder::getResult() {
4687 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::get(_builder.getPointerField(
4688 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4689 : : }
4690 : : #if !CAPNP_LITE
4691 : : inline ::ipc::capnp::messages::BlockRef::Pipeline Mining::GetTipResults::Pipeline::getResult() {
4692 : : return ::ipc::capnp::messages::BlockRef::Pipeline(_typeless.getPointerField(0));
4693 : : }
4694 : : #endif // !CAPNP_LITE
4695 : : inline void Mining::GetTipResults::Builder::setResult( ::ipc::capnp::messages::BlockRef::Reader value) {
4696 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::set(_builder.getPointerField(
4697 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4698 : : }
4699 : 0 : inline ::ipc::capnp::messages::BlockRef::Builder Mining::GetTipResults::Builder::initResult() {
4700 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::init(_builder.getPointerField(
4701 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4702 : : }
4703 : : inline void Mining::GetTipResults::Builder::adoptResult(
4704 : : ::capnp::Orphan< ::ipc::capnp::messages::BlockRef>&& value) {
4705 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::adopt(_builder.getPointerField(
4706 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4707 : : }
4708 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockRef> Mining::GetTipResults::Builder::disownResult() {
4709 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::disown(_builder.getPointerField(
4710 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4711 : : }
4712 : :
4713 : 0 : inline bool Mining::GetTipResults::Reader::getHasResult() const {
4714 [ # # # # : 0 : return _reader.getDataField<bool>(
# # ]
4715 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4716 : : }
4717 : :
4718 : : inline bool Mining::GetTipResults::Builder::getHasResult() {
4719 : : return _builder.getDataField<bool>(
4720 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4721 : : }
4722 : 0 : inline void Mining::GetTipResults::Builder::setHasResult(bool value) {
4723 : 0 : _builder.setDataField<bool>(
4724 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4725 : : }
4726 : :
4727 : : inline bool Mining::WaitTipChangedParams::Reader::hasContext() const {
4728 : : return !_reader.getPointerField(
4729 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4730 : : }
4731 : : inline bool Mining::WaitTipChangedParams::Builder::hasContext() {
4732 : : return !_builder.getPointerField(
4733 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4734 : : }
4735 : 0 : inline ::mp::Context::Reader Mining::WaitTipChangedParams::Reader::getContext() const {
4736 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
4737 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4738 : : }
4739 : : inline ::mp::Context::Builder Mining::WaitTipChangedParams::Builder::getContext() {
4740 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
4741 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4742 : : }
4743 : : #if !CAPNP_LITE
4744 : : inline ::mp::Context::Pipeline Mining::WaitTipChangedParams::Pipeline::getContext() {
4745 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
4746 : : }
4747 : : #endif // !CAPNP_LITE
4748 : : inline void Mining::WaitTipChangedParams::Builder::setContext( ::mp::Context::Reader value) {
4749 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
4750 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4751 : : }
4752 : 0 : inline ::mp::Context::Builder Mining::WaitTipChangedParams::Builder::initContext() {
4753 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
4754 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4755 : : }
4756 : : inline void Mining::WaitTipChangedParams::Builder::adoptContext(
4757 : : ::capnp::Orphan< ::mp::Context>&& value) {
4758 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
4759 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4760 : : }
4761 : : inline ::capnp::Orphan< ::mp::Context> Mining::WaitTipChangedParams::Builder::disownContext() {
4762 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
4763 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4764 : : }
4765 : :
4766 : 0 : inline bool Mining::WaitTipChangedParams::Reader::hasCurrentTip() const {
4767 [ # # ]: 0 : return !_reader.getPointerField(
4768 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4769 : : }
4770 : : inline bool Mining::WaitTipChangedParams::Builder::hasCurrentTip() {
4771 : : return !_builder.getPointerField(
4772 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4773 : : }
4774 : 0 : inline ::capnp::Data::Reader Mining::WaitTipChangedParams::Reader::getCurrentTip() const {
4775 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
4776 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
4777 : : }
4778 : : inline ::capnp::Data::Builder Mining::WaitTipChangedParams::Builder::getCurrentTip() {
4779 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
4780 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
4781 : : }
4782 : : inline void Mining::WaitTipChangedParams::Builder::setCurrentTip( ::capnp::Data::Reader value) {
4783 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
4784 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
4785 : : }
4786 : 0 : inline ::capnp::Data::Builder Mining::WaitTipChangedParams::Builder::initCurrentTip(unsigned int size) {
4787 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
4788 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS), size);
4789 : : }
4790 : : inline void Mining::WaitTipChangedParams::Builder::adoptCurrentTip(
4791 : : ::capnp::Orphan< ::capnp::Data>&& value) {
4792 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
4793 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
4794 : : }
4795 : : inline ::capnp::Orphan< ::capnp::Data> Mining::WaitTipChangedParams::Builder::disownCurrentTip() {
4796 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
4797 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
4798 : : }
4799 : :
4800 : 0 : inline double Mining::WaitTipChangedParams::Reader::getTimeout() const {
4801 [ # # # # ]: 0 : return _reader.getDataField<double>(
4802 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4803 : : }
4804 : :
4805 : : inline double Mining::WaitTipChangedParams::Builder::getTimeout() {
4806 : : return _builder.getDataField<double>(
4807 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
4808 : : }
4809 : 0 : inline void Mining::WaitTipChangedParams::Builder::setTimeout(double value) {
4810 : 0 : _builder.setDataField<double>(
4811 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
4812 : : }
4813 : :
4814 : 0 : inline bool Mining::WaitTipChangedResults::Reader::hasResult() const {
4815 [ # # ]: 0 : return !_reader.getPointerField(
4816 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4817 : : }
4818 : : inline bool Mining::WaitTipChangedResults::Builder::hasResult() {
4819 : : return !_builder.getPointerField(
4820 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4821 : : }
4822 : 0 : inline ::ipc::capnp::messages::BlockRef::Reader Mining::WaitTipChangedResults::Reader::getResult() const {
4823 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::get(_reader.getPointerField(
4824 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4825 : : }
4826 : : inline ::ipc::capnp::messages::BlockRef::Builder Mining::WaitTipChangedResults::Builder::getResult() {
4827 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::get(_builder.getPointerField(
4828 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4829 : : }
4830 : : #if !CAPNP_LITE
4831 : : inline ::ipc::capnp::messages::BlockRef::Pipeline Mining::WaitTipChangedResults::Pipeline::getResult() {
4832 : : return ::ipc::capnp::messages::BlockRef::Pipeline(_typeless.getPointerField(0));
4833 : : }
4834 : : #endif // !CAPNP_LITE
4835 : : inline void Mining::WaitTipChangedResults::Builder::setResult( ::ipc::capnp::messages::BlockRef::Reader value) {
4836 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::set(_builder.getPointerField(
4837 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4838 : : }
4839 : 0 : inline ::ipc::capnp::messages::BlockRef::Builder Mining::WaitTipChangedResults::Builder::initResult() {
4840 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::init(_builder.getPointerField(
4841 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4842 : : }
4843 : : inline void Mining::WaitTipChangedResults::Builder::adoptResult(
4844 : : ::capnp::Orphan< ::ipc::capnp::messages::BlockRef>&& value) {
4845 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::adopt(_builder.getPointerField(
4846 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4847 : : }
4848 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockRef> Mining::WaitTipChangedResults::Builder::disownResult() {
4849 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockRef>::disown(_builder.getPointerField(
4850 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4851 : : }
4852 : :
4853 : : inline bool Mining::CreateNewBlockParams::Reader::hasOptions() const {
4854 : : return !_reader.getPointerField(
4855 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4856 : : }
4857 : : inline bool Mining::CreateNewBlockParams::Builder::hasOptions() {
4858 : : return !_builder.getPointerField(
4859 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4860 : : }
4861 : 0 : inline ::ipc::capnp::messages::BlockCreateOptions::Reader Mining::CreateNewBlockParams::Reader::getOptions() const {
4862 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCreateOptions>::get(_reader.getPointerField(
4863 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4864 : : }
4865 : : inline ::ipc::capnp::messages::BlockCreateOptions::Builder Mining::CreateNewBlockParams::Builder::getOptions() {
4866 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCreateOptions>::get(_builder.getPointerField(
4867 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4868 : : }
4869 : : #if !CAPNP_LITE
4870 : : inline ::ipc::capnp::messages::BlockCreateOptions::Pipeline Mining::CreateNewBlockParams::Pipeline::getOptions() {
4871 : : return ::ipc::capnp::messages::BlockCreateOptions::Pipeline(_typeless.getPointerField(0));
4872 : : }
4873 : : #endif // !CAPNP_LITE
4874 : : inline void Mining::CreateNewBlockParams::Builder::setOptions( ::ipc::capnp::messages::BlockCreateOptions::Reader value) {
4875 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCreateOptions>::set(_builder.getPointerField(
4876 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4877 : : }
4878 : 0 : inline ::ipc::capnp::messages::BlockCreateOptions::Builder Mining::CreateNewBlockParams::Builder::initOptions() {
4879 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCreateOptions>::init(_builder.getPointerField(
4880 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4881 : : }
4882 : : inline void Mining::CreateNewBlockParams::Builder::adoptOptions(
4883 : : ::capnp::Orphan< ::ipc::capnp::messages::BlockCreateOptions>&& value) {
4884 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCreateOptions>::adopt(_builder.getPointerField(
4885 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4886 : : }
4887 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockCreateOptions> Mining::CreateNewBlockParams::Builder::disownOptions() {
4888 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCreateOptions>::disown(_builder.getPointerField(
4889 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4890 : : }
4891 : :
4892 : 0 : inline bool Mining::CreateNewBlockResults::Reader::hasResult() const {
4893 [ # # ]: 0 : return !_reader.getPointerField(
4894 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4895 : : }
4896 : : inline bool Mining::CreateNewBlockResults::Builder::hasResult() {
4897 : : return !_builder.getPointerField(
4898 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4899 : : }
4900 : : #if !CAPNP_LITE
4901 : 0 : inline ::ipc::capnp::messages::BlockTemplate::Client Mining::CreateNewBlockResults::Reader::getResult() const {
4902 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::get(_reader.getPointerField(
4903 [ # # ]: 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4904 : : }
4905 : : inline ::ipc::capnp::messages::BlockTemplate::Client Mining::CreateNewBlockResults::Builder::getResult() {
4906 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::get(_builder.getPointerField(
4907 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4908 : : }
4909 : : inline ::ipc::capnp::messages::BlockTemplate::Client Mining::CreateNewBlockResults::Pipeline::getResult() {
4910 : : return ::ipc::capnp::messages::BlockTemplate::Client(_typeless.getPointerField(0).asCap());
4911 : : }
4912 : 0 : inline void Mining::CreateNewBlockResults::Builder::setResult( ::ipc::capnp::messages::BlockTemplate::Client&& cap) {
4913 : 0 : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::set(_builder.getPointerField(
4914 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(cap));
4915 : 0 : }
4916 : : inline void Mining::CreateNewBlockResults::Builder::setResult( ::ipc::capnp::messages::BlockTemplate::Client& cap) {
4917 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::set(_builder.getPointerField(
4918 : : ::capnp::bounded<0>() * ::capnp::POINTERS), cap);
4919 : : }
4920 : : inline void Mining::CreateNewBlockResults::Builder::adoptResult(
4921 : : ::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate>&& value) {
4922 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::adopt(_builder.getPointerField(
4923 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4924 : : }
4925 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate> Mining::CreateNewBlockResults::Builder::disownResult() {
4926 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::disown(_builder.getPointerField(
4927 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4928 : : }
4929 : : #endif // !CAPNP_LITE
4930 : :
4931 : 0 : inline bool Mining::CheckBlockParams::Reader::hasBlock() const {
4932 [ # # ]: 0 : return !_reader.getPointerField(
4933 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4934 : : }
4935 : : inline bool Mining::CheckBlockParams::Builder::hasBlock() {
4936 : : return !_builder.getPointerField(
4937 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
4938 : : }
4939 : 0 : inline ::capnp::Data::Reader Mining::CheckBlockParams::Reader::getBlock() const {
4940 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
4941 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
4942 : : }
4943 : : inline ::capnp::Data::Builder Mining::CheckBlockParams::Builder::getBlock() {
4944 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
4945 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4946 : : }
4947 : : inline void Mining::CheckBlockParams::Builder::setBlock( ::capnp::Data::Reader value) {
4948 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
4949 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
4950 : : }
4951 : 0 : inline ::capnp::Data::Builder Mining::CheckBlockParams::Builder::initBlock(unsigned int size) {
4952 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
4953 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
4954 : : }
4955 : : inline void Mining::CheckBlockParams::Builder::adoptBlock(
4956 : : ::capnp::Orphan< ::capnp::Data>&& value) {
4957 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
4958 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
4959 : : }
4960 : : inline ::capnp::Orphan< ::capnp::Data> Mining::CheckBlockParams::Builder::disownBlock() {
4961 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
4962 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
4963 : : }
4964 : :
4965 : : inline bool Mining::CheckBlockParams::Reader::hasOptions() const {
4966 : : return !_reader.getPointerField(
4967 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4968 : : }
4969 : : inline bool Mining::CheckBlockParams::Builder::hasOptions() {
4970 : : return !_builder.getPointerField(
4971 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
4972 : : }
4973 : 0 : inline ::ipc::capnp::messages::BlockCheckOptions::Reader Mining::CheckBlockParams::Reader::getOptions() const {
4974 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCheckOptions>::get(_reader.getPointerField(
4975 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
4976 : : }
4977 : : inline ::ipc::capnp::messages::BlockCheckOptions::Builder Mining::CheckBlockParams::Builder::getOptions() {
4978 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCheckOptions>::get(_builder.getPointerField(
4979 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
4980 : : }
4981 : : #if !CAPNP_LITE
4982 : : inline ::ipc::capnp::messages::BlockCheckOptions::Pipeline Mining::CheckBlockParams::Pipeline::getOptions() {
4983 : : return ::ipc::capnp::messages::BlockCheckOptions::Pipeline(_typeless.getPointerField(1));
4984 : : }
4985 : : #endif // !CAPNP_LITE
4986 : : inline void Mining::CheckBlockParams::Builder::setOptions( ::ipc::capnp::messages::BlockCheckOptions::Reader value) {
4987 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCheckOptions>::set(_builder.getPointerField(
4988 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
4989 : : }
4990 : 0 : inline ::ipc::capnp::messages::BlockCheckOptions::Builder Mining::CheckBlockParams::Builder::initOptions() {
4991 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCheckOptions>::init(_builder.getPointerField(
4992 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
4993 : : }
4994 : : inline void Mining::CheckBlockParams::Builder::adoptOptions(
4995 : : ::capnp::Orphan< ::ipc::capnp::messages::BlockCheckOptions>&& value) {
4996 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCheckOptions>::adopt(_builder.getPointerField(
4997 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
4998 : : }
4999 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockCheckOptions> Mining::CheckBlockParams::Builder::disownOptions() {
5000 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockCheckOptions>::disown(_builder.getPointerField(
5001 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
5002 : : }
5003 : :
5004 : : inline bool Mining::CheckBlockResults::Reader::hasReason() const {
5005 : : return !_reader.getPointerField(
5006 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5007 : : }
5008 : : inline bool Mining::CheckBlockResults::Builder::hasReason() {
5009 : : return !_builder.getPointerField(
5010 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5011 : : }
5012 : 0 : inline ::capnp::Text::Reader Mining::CheckBlockResults::Reader::getReason() const {
5013 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
5014 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5015 : : }
5016 : : inline ::capnp::Text::Builder Mining::CheckBlockResults::Builder::getReason() {
5017 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
5018 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5019 : : }
5020 : : inline void Mining::CheckBlockResults::Builder::setReason( ::capnp::Text::Reader value) {
5021 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
5022 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5023 : : }
5024 : 0 : inline ::capnp::Text::Builder Mining::CheckBlockResults::Builder::initReason(unsigned int size) {
5025 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
5026 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5027 : : }
5028 : : inline void Mining::CheckBlockResults::Builder::adoptReason(
5029 : : ::capnp::Orphan< ::capnp::Text>&& value) {
5030 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
5031 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5032 : : }
5033 : : inline ::capnp::Orphan< ::capnp::Text> Mining::CheckBlockResults::Builder::disownReason() {
5034 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
5035 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5036 : : }
5037 : :
5038 : : inline bool Mining::CheckBlockResults::Reader::hasDebug() const {
5039 : : return !_reader.getPointerField(
5040 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
5041 : : }
5042 : : inline bool Mining::CheckBlockResults::Builder::hasDebug() {
5043 : : return !_builder.getPointerField(
5044 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
5045 : : }
5046 : 0 : inline ::capnp::Text::Reader Mining::CheckBlockResults::Reader::getDebug() const {
5047 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
5048 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
5049 : : }
5050 : : inline ::capnp::Text::Builder Mining::CheckBlockResults::Builder::getDebug() {
5051 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
5052 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
5053 : : }
5054 : : inline void Mining::CheckBlockResults::Builder::setDebug( ::capnp::Text::Reader value) {
5055 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
5056 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
5057 : : }
5058 : 0 : inline ::capnp::Text::Builder Mining::CheckBlockResults::Builder::initDebug(unsigned int size) {
5059 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
5060 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS), size);
5061 : : }
5062 : : inline void Mining::CheckBlockResults::Builder::adoptDebug(
5063 : : ::capnp::Orphan< ::capnp::Text>&& value) {
5064 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
5065 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
5066 : : }
5067 : : inline ::capnp::Orphan< ::capnp::Text> Mining::CheckBlockResults::Builder::disownDebug() {
5068 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
5069 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
5070 : : }
5071 : :
5072 : 0 : inline bool Mining::CheckBlockResults::Reader::getResult() const {
5073 [ # # ]: 0 : return _reader.getDataField<bool>(
5074 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5075 : : }
5076 : :
5077 : : inline bool Mining::CheckBlockResults::Builder::getResult() {
5078 : : return _builder.getDataField<bool>(
5079 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5080 : : }
5081 : 0 : inline void Mining::CheckBlockResults::Builder::setResult(bool value) {
5082 : 0 : _builder.setDataField<bool>(
5083 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
5084 : : }
5085 : :
5086 : : #if !CAPNP_LITE
5087 : : inline BlockTemplate::Client::Client(decltype(nullptr))
5088 : : : ::capnp::Capability::Client(nullptr) {}
5089 : 0 : inline BlockTemplate::Client::Client(
5090 : : ::kj::Own< ::capnp::ClientHook>&& hook)
5091 [ # # ]: 0 : : ::capnp::Capability::Client(::kj::mv(hook)) {}
5092 : : template <typename _t, typename>
5093 : 0 : inline BlockTemplate::Client::Client(::kj::Own<_t>&& server)
5094 [ # # # # ]: 0 : : ::capnp::Capability::Client(::kj::mv(server)) {}
5095 : : template <typename _t, typename>
5096 : : inline BlockTemplate::Client::Client(::kj::Promise<_t>&& promise)
5097 : : : ::capnp::Capability::Client(::kj::mv(promise)) {}
5098 : : inline BlockTemplate::Client::Client(::kj::Exception&& exception)
5099 : : : ::capnp::Capability::Client(::kj::mv(exception)) {}
5100 : : inline ::ipc::capnp::messages::BlockTemplate::Client& BlockTemplate::Client::operator=(Client& other) {
5101 : : ::capnp::Capability::Client::operator=(other);
5102 : : return *this;
5103 : : }
5104 : : inline ::ipc::capnp::messages::BlockTemplate::Client& BlockTemplate::Client::operator=(Client&& other) {
5105 : : ::capnp::Capability::Client::operator=(kj::mv(other));
5106 : : return *this;
5107 : : }
5108 : :
5109 : : #endif // !CAPNP_LITE
5110 : : inline bool BlockTemplate::DestroyParams::Reader::hasContext() const {
5111 : : return !_reader.getPointerField(
5112 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5113 : : }
5114 : : inline bool BlockTemplate::DestroyParams::Builder::hasContext() {
5115 : : return !_builder.getPointerField(
5116 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5117 : : }
5118 : 0 : inline ::mp::Context::Reader BlockTemplate::DestroyParams::Reader::getContext() const {
5119 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5120 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5121 : : }
5122 : : inline ::mp::Context::Builder BlockTemplate::DestroyParams::Builder::getContext() {
5123 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5124 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5125 : : }
5126 : : #if !CAPNP_LITE
5127 : : inline ::mp::Context::Pipeline BlockTemplate::DestroyParams::Pipeline::getContext() {
5128 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5129 : : }
5130 : : #endif // !CAPNP_LITE
5131 : : inline void BlockTemplate::DestroyParams::Builder::setContext( ::mp::Context::Reader value) {
5132 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5133 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5134 : : }
5135 : 0 : inline ::mp::Context::Builder BlockTemplate::DestroyParams::Builder::initContext() {
5136 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5137 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5138 : : }
5139 : : inline void BlockTemplate::DestroyParams::Builder::adoptContext(
5140 : : ::capnp::Orphan< ::mp::Context>&& value) {
5141 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5142 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5143 : : }
5144 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::DestroyParams::Builder::disownContext() {
5145 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5146 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5147 : : }
5148 : :
5149 : : inline bool BlockTemplate::GetBlockHeaderParams::Reader::hasContext() const {
5150 : : return !_reader.getPointerField(
5151 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5152 : : }
5153 : : inline bool BlockTemplate::GetBlockHeaderParams::Builder::hasContext() {
5154 : : return !_builder.getPointerField(
5155 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5156 : : }
5157 : 0 : inline ::mp::Context::Reader BlockTemplate::GetBlockHeaderParams::Reader::getContext() const {
5158 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5159 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5160 : : }
5161 : : inline ::mp::Context::Builder BlockTemplate::GetBlockHeaderParams::Builder::getContext() {
5162 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5163 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5164 : : }
5165 : : #if !CAPNP_LITE
5166 : : inline ::mp::Context::Pipeline BlockTemplate::GetBlockHeaderParams::Pipeline::getContext() {
5167 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5168 : : }
5169 : : #endif // !CAPNP_LITE
5170 : : inline void BlockTemplate::GetBlockHeaderParams::Builder::setContext( ::mp::Context::Reader value) {
5171 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5172 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5173 : : }
5174 : 0 : inline ::mp::Context::Builder BlockTemplate::GetBlockHeaderParams::Builder::initContext() {
5175 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5176 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5177 : : }
5178 : : inline void BlockTemplate::GetBlockHeaderParams::Builder::adoptContext(
5179 : : ::capnp::Orphan< ::mp::Context>&& value) {
5180 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5181 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5182 : : }
5183 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetBlockHeaderParams::Builder::disownContext() {
5184 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5185 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5186 : : }
5187 : :
5188 : 0 : inline bool BlockTemplate::GetBlockHeaderResults::Reader::hasResult() const {
5189 [ # # ]: 0 : return !_reader.getPointerField(
5190 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5191 : : }
5192 : : inline bool BlockTemplate::GetBlockHeaderResults::Builder::hasResult() {
5193 : : return !_builder.getPointerField(
5194 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5195 : : }
5196 : 0 : inline ::capnp::Data::Reader BlockTemplate::GetBlockHeaderResults::Reader::getResult() const {
5197 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
5198 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5199 : : }
5200 : : inline ::capnp::Data::Builder BlockTemplate::GetBlockHeaderResults::Builder::getResult() {
5201 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
5202 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5203 : : }
5204 : : inline void BlockTemplate::GetBlockHeaderResults::Builder::setResult( ::capnp::Data::Reader value) {
5205 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
5206 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5207 : : }
5208 : 0 : inline ::capnp::Data::Builder BlockTemplate::GetBlockHeaderResults::Builder::initResult(unsigned int size) {
5209 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
5210 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5211 : : }
5212 : : inline void BlockTemplate::GetBlockHeaderResults::Builder::adoptResult(
5213 : : ::capnp::Orphan< ::capnp::Data>&& value) {
5214 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
5215 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5216 : : }
5217 : : inline ::capnp::Orphan< ::capnp::Data> BlockTemplate::GetBlockHeaderResults::Builder::disownResult() {
5218 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
5219 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5220 : : }
5221 : :
5222 : : inline bool BlockTemplate::GetBlockParams::Reader::hasContext() const {
5223 : : return !_reader.getPointerField(
5224 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5225 : : }
5226 : : inline bool BlockTemplate::GetBlockParams::Builder::hasContext() {
5227 : : return !_builder.getPointerField(
5228 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5229 : : }
5230 : 0 : inline ::mp::Context::Reader BlockTemplate::GetBlockParams::Reader::getContext() const {
5231 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5232 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5233 : : }
5234 : : inline ::mp::Context::Builder BlockTemplate::GetBlockParams::Builder::getContext() {
5235 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5236 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5237 : : }
5238 : : #if !CAPNP_LITE
5239 : : inline ::mp::Context::Pipeline BlockTemplate::GetBlockParams::Pipeline::getContext() {
5240 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5241 : : }
5242 : : #endif // !CAPNP_LITE
5243 : : inline void BlockTemplate::GetBlockParams::Builder::setContext( ::mp::Context::Reader value) {
5244 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5245 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5246 : : }
5247 : 0 : inline ::mp::Context::Builder BlockTemplate::GetBlockParams::Builder::initContext() {
5248 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5249 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5250 : : }
5251 : : inline void BlockTemplate::GetBlockParams::Builder::adoptContext(
5252 : : ::capnp::Orphan< ::mp::Context>&& value) {
5253 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5254 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5255 : : }
5256 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetBlockParams::Builder::disownContext() {
5257 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5258 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5259 : : }
5260 : :
5261 : 0 : inline bool BlockTemplate::GetBlockResults::Reader::hasResult() const {
5262 [ # # ]: 0 : return !_reader.getPointerField(
5263 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5264 : : }
5265 : : inline bool BlockTemplate::GetBlockResults::Builder::hasResult() {
5266 : : return !_builder.getPointerField(
5267 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5268 : : }
5269 : 0 : inline ::capnp::Data::Reader BlockTemplate::GetBlockResults::Reader::getResult() const {
5270 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
5271 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5272 : : }
5273 : : inline ::capnp::Data::Builder BlockTemplate::GetBlockResults::Builder::getResult() {
5274 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
5275 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5276 : : }
5277 : : inline void BlockTemplate::GetBlockResults::Builder::setResult( ::capnp::Data::Reader value) {
5278 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
5279 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5280 : : }
5281 : 0 : inline ::capnp::Data::Builder BlockTemplate::GetBlockResults::Builder::initResult(unsigned int size) {
5282 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
5283 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5284 : : }
5285 : : inline void BlockTemplate::GetBlockResults::Builder::adoptResult(
5286 : : ::capnp::Orphan< ::capnp::Data>&& value) {
5287 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
5288 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5289 : : }
5290 : : inline ::capnp::Orphan< ::capnp::Data> BlockTemplate::GetBlockResults::Builder::disownResult() {
5291 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
5292 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5293 : : }
5294 : :
5295 : : inline bool BlockTemplate::GetTxFeesParams::Reader::hasContext() const {
5296 : : return !_reader.getPointerField(
5297 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5298 : : }
5299 : : inline bool BlockTemplate::GetTxFeesParams::Builder::hasContext() {
5300 : : return !_builder.getPointerField(
5301 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5302 : : }
5303 : 0 : inline ::mp::Context::Reader BlockTemplate::GetTxFeesParams::Reader::getContext() const {
5304 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5305 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5306 : : }
5307 : : inline ::mp::Context::Builder BlockTemplate::GetTxFeesParams::Builder::getContext() {
5308 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5309 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5310 : : }
5311 : : #if !CAPNP_LITE
5312 : : inline ::mp::Context::Pipeline BlockTemplate::GetTxFeesParams::Pipeline::getContext() {
5313 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5314 : : }
5315 : : #endif // !CAPNP_LITE
5316 : : inline void BlockTemplate::GetTxFeesParams::Builder::setContext( ::mp::Context::Reader value) {
5317 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5318 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5319 : : }
5320 : 0 : inline ::mp::Context::Builder BlockTemplate::GetTxFeesParams::Builder::initContext() {
5321 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5322 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5323 : : }
5324 : : inline void BlockTemplate::GetTxFeesParams::Builder::adoptContext(
5325 : : ::capnp::Orphan< ::mp::Context>&& value) {
5326 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5327 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5328 : : }
5329 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetTxFeesParams::Builder::disownContext() {
5330 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5331 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5332 : : }
5333 : :
5334 : : inline bool BlockTemplate::GetTxFeesResults::Reader::hasResult() const {
5335 : : return !_reader.getPointerField(
5336 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5337 : : }
5338 : : inline bool BlockTemplate::GetTxFeesResults::Builder::hasResult() {
5339 : : return !_builder.getPointerField(
5340 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5341 : : }
5342 : 0 : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader BlockTemplate::GetTxFeesResults::Reader::getResult() const {
5343 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::get(_reader.getPointerField(
5344 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5345 : : }
5346 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder BlockTemplate::GetTxFeesResults::Builder::getResult() {
5347 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::get(_builder.getPointerField(
5348 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5349 : : }
5350 : : inline void BlockTemplate::GetTxFeesResults::Builder::setResult( ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader value) {
5351 : : ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField(
5352 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5353 : : }
5354 : : inline void BlockTemplate::GetTxFeesResults::Builder::setResult(::kj::ArrayPtr<const ::int64_t> value) {
5355 : : ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField(
5356 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5357 : : }
5358 : 0 : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder BlockTemplate::GetTxFeesResults::Builder::initResult(unsigned int size) {
5359 : 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::init(_builder.getPointerField(
5360 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5361 : : }
5362 : : inline void BlockTemplate::GetTxFeesResults::Builder::adoptResult(
5363 : : ::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>&& value) {
5364 : : ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::adopt(_builder.getPointerField(
5365 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5366 : : }
5367 : : inline ::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>> BlockTemplate::GetTxFeesResults::Builder::disownResult() {
5368 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::disown(_builder.getPointerField(
5369 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5370 : : }
5371 : :
5372 : : inline bool BlockTemplate::GetTxSigopsParams::Reader::hasContext() const {
5373 : : return !_reader.getPointerField(
5374 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5375 : : }
5376 : : inline bool BlockTemplate::GetTxSigopsParams::Builder::hasContext() {
5377 : : return !_builder.getPointerField(
5378 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5379 : : }
5380 : 0 : inline ::mp::Context::Reader BlockTemplate::GetTxSigopsParams::Reader::getContext() const {
5381 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5382 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5383 : : }
5384 : : inline ::mp::Context::Builder BlockTemplate::GetTxSigopsParams::Builder::getContext() {
5385 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5386 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5387 : : }
5388 : : #if !CAPNP_LITE
5389 : : inline ::mp::Context::Pipeline BlockTemplate::GetTxSigopsParams::Pipeline::getContext() {
5390 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5391 : : }
5392 : : #endif // !CAPNP_LITE
5393 : : inline void BlockTemplate::GetTxSigopsParams::Builder::setContext( ::mp::Context::Reader value) {
5394 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5395 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5396 : : }
5397 : 0 : inline ::mp::Context::Builder BlockTemplate::GetTxSigopsParams::Builder::initContext() {
5398 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5399 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5400 : : }
5401 : : inline void BlockTemplate::GetTxSigopsParams::Builder::adoptContext(
5402 : : ::capnp::Orphan< ::mp::Context>&& value) {
5403 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5404 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5405 : : }
5406 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetTxSigopsParams::Builder::disownContext() {
5407 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5408 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5409 : : }
5410 : :
5411 : : inline bool BlockTemplate::GetTxSigopsResults::Reader::hasResult() const {
5412 : : return !_reader.getPointerField(
5413 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5414 : : }
5415 : : inline bool BlockTemplate::GetTxSigopsResults::Builder::hasResult() {
5416 : : return !_builder.getPointerField(
5417 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5418 : : }
5419 : 0 : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader BlockTemplate::GetTxSigopsResults::Reader::getResult() const {
5420 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::get(_reader.getPointerField(
5421 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5422 : : }
5423 : : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder BlockTemplate::GetTxSigopsResults::Builder::getResult() {
5424 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::get(_builder.getPointerField(
5425 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5426 : : }
5427 : : inline void BlockTemplate::GetTxSigopsResults::Builder::setResult( ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Reader value) {
5428 : : ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField(
5429 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5430 : : }
5431 : : inline void BlockTemplate::GetTxSigopsResults::Builder::setResult(::kj::ArrayPtr<const ::int64_t> value) {
5432 : : ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::set(_builder.getPointerField(
5433 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5434 : : }
5435 : 0 : inline ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>::Builder BlockTemplate::GetTxSigopsResults::Builder::initResult(unsigned int size) {
5436 : 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::init(_builder.getPointerField(
5437 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5438 : : }
5439 : : inline void BlockTemplate::GetTxSigopsResults::Builder::adoptResult(
5440 : : ::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>&& value) {
5441 : : ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::adopt(_builder.getPointerField(
5442 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5443 : : }
5444 : : inline ::capnp::Orphan< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>> BlockTemplate::GetTxSigopsResults::Builder::disownResult() {
5445 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::int64_t, ::capnp::Kind::PRIMITIVE>>::disown(_builder.getPointerField(
5446 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5447 : : }
5448 : :
5449 : : inline bool BlockTemplate::GetCoinbaseRawTxParams::Reader::hasContext() const {
5450 : : return !_reader.getPointerField(
5451 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5452 : : }
5453 : : inline bool BlockTemplate::GetCoinbaseRawTxParams::Builder::hasContext() {
5454 : : return !_builder.getPointerField(
5455 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5456 : : }
5457 : 0 : inline ::mp::Context::Reader BlockTemplate::GetCoinbaseRawTxParams::Reader::getContext() const {
5458 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5459 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5460 : : }
5461 : : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseRawTxParams::Builder::getContext() {
5462 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5463 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5464 : : }
5465 : : #if !CAPNP_LITE
5466 : : inline ::mp::Context::Pipeline BlockTemplate::GetCoinbaseRawTxParams::Pipeline::getContext() {
5467 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5468 : : }
5469 : : #endif // !CAPNP_LITE
5470 : : inline void BlockTemplate::GetCoinbaseRawTxParams::Builder::setContext( ::mp::Context::Reader value) {
5471 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5472 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5473 : : }
5474 : 0 : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseRawTxParams::Builder::initContext() {
5475 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5476 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5477 : : }
5478 : : inline void BlockTemplate::GetCoinbaseRawTxParams::Builder::adoptContext(
5479 : : ::capnp::Orphan< ::mp::Context>&& value) {
5480 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5481 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5482 : : }
5483 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetCoinbaseRawTxParams::Builder::disownContext() {
5484 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5485 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5486 : : }
5487 : :
5488 : 0 : inline bool BlockTemplate::GetCoinbaseRawTxResults::Reader::hasResult() const {
5489 [ # # ]: 0 : return !_reader.getPointerField(
5490 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5491 : : }
5492 : : inline bool BlockTemplate::GetCoinbaseRawTxResults::Builder::hasResult() {
5493 : : return !_builder.getPointerField(
5494 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5495 : : }
5496 : 0 : inline ::capnp::Data::Reader BlockTemplate::GetCoinbaseRawTxResults::Reader::getResult() const {
5497 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
5498 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5499 : : }
5500 : : inline ::capnp::Data::Builder BlockTemplate::GetCoinbaseRawTxResults::Builder::getResult() {
5501 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
5502 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5503 : : }
5504 : : inline void BlockTemplate::GetCoinbaseRawTxResults::Builder::setResult( ::capnp::Data::Reader value) {
5505 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
5506 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5507 : : }
5508 : 0 : inline ::capnp::Data::Builder BlockTemplate::GetCoinbaseRawTxResults::Builder::initResult(unsigned int size) {
5509 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
5510 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5511 : : }
5512 : : inline void BlockTemplate::GetCoinbaseRawTxResults::Builder::adoptResult(
5513 : : ::capnp::Orphan< ::capnp::Data>&& value) {
5514 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
5515 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5516 : : }
5517 : : inline ::capnp::Orphan< ::capnp::Data> BlockTemplate::GetCoinbaseRawTxResults::Builder::disownResult() {
5518 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
5519 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5520 : : }
5521 : :
5522 : : inline bool BlockTemplate::GetCoinbaseCommitmentParams::Reader::hasContext() const {
5523 : : return !_reader.getPointerField(
5524 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5525 : : }
5526 : : inline bool BlockTemplate::GetCoinbaseCommitmentParams::Builder::hasContext() {
5527 : : return !_builder.getPointerField(
5528 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5529 : : }
5530 : 0 : inline ::mp::Context::Reader BlockTemplate::GetCoinbaseCommitmentParams::Reader::getContext() const {
5531 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5532 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5533 : : }
5534 : : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseCommitmentParams::Builder::getContext() {
5535 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5536 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5537 : : }
5538 : : #if !CAPNP_LITE
5539 : : inline ::mp::Context::Pipeline BlockTemplate::GetCoinbaseCommitmentParams::Pipeline::getContext() {
5540 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5541 : : }
5542 : : #endif // !CAPNP_LITE
5543 : : inline void BlockTemplate::GetCoinbaseCommitmentParams::Builder::setContext( ::mp::Context::Reader value) {
5544 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5545 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5546 : : }
5547 : 0 : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseCommitmentParams::Builder::initContext() {
5548 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5549 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5550 : : }
5551 : : inline void BlockTemplate::GetCoinbaseCommitmentParams::Builder::adoptContext(
5552 : : ::capnp::Orphan< ::mp::Context>&& value) {
5553 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5554 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5555 : : }
5556 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetCoinbaseCommitmentParams::Builder::disownContext() {
5557 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5558 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5559 : : }
5560 : :
5561 : : inline bool BlockTemplate::GetCoinbaseCommitmentResults::Reader::hasResult() const {
5562 : : return !_reader.getPointerField(
5563 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5564 : : }
5565 : : inline bool BlockTemplate::GetCoinbaseCommitmentResults::Builder::hasResult() {
5566 : : return !_builder.getPointerField(
5567 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5568 : : }
5569 : 0 : inline ::capnp::Data::Reader BlockTemplate::GetCoinbaseCommitmentResults::Reader::getResult() const {
5570 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
5571 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5572 : : }
5573 : : inline ::capnp::Data::Builder BlockTemplate::GetCoinbaseCommitmentResults::Builder::getResult() {
5574 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
5575 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5576 : : }
5577 : : inline void BlockTemplate::GetCoinbaseCommitmentResults::Builder::setResult( ::capnp::Data::Reader value) {
5578 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
5579 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5580 : : }
5581 : 0 : inline ::capnp::Data::Builder BlockTemplate::GetCoinbaseCommitmentResults::Builder::initResult(unsigned int size) {
5582 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
5583 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5584 : : }
5585 : : inline void BlockTemplate::GetCoinbaseCommitmentResults::Builder::adoptResult(
5586 : : ::capnp::Orphan< ::capnp::Data>&& value) {
5587 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
5588 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5589 : : }
5590 : : inline ::capnp::Orphan< ::capnp::Data> BlockTemplate::GetCoinbaseCommitmentResults::Builder::disownResult() {
5591 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
5592 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5593 : : }
5594 : :
5595 : : inline bool BlockTemplate::GetWitnessCommitmentIndexParams::Reader::hasContext() const {
5596 : : return !_reader.getPointerField(
5597 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5598 : : }
5599 : : inline bool BlockTemplate::GetWitnessCommitmentIndexParams::Builder::hasContext() {
5600 : : return !_builder.getPointerField(
5601 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5602 : : }
5603 : 0 : inline ::mp::Context::Reader BlockTemplate::GetWitnessCommitmentIndexParams::Reader::getContext() const {
5604 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5605 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5606 : : }
5607 : : inline ::mp::Context::Builder BlockTemplate::GetWitnessCommitmentIndexParams::Builder::getContext() {
5608 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5609 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5610 : : }
5611 : : #if !CAPNP_LITE
5612 : : inline ::mp::Context::Pipeline BlockTemplate::GetWitnessCommitmentIndexParams::Pipeline::getContext() {
5613 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5614 : : }
5615 : : #endif // !CAPNP_LITE
5616 : : inline void BlockTemplate::GetWitnessCommitmentIndexParams::Builder::setContext( ::mp::Context::Reader value) {
5617 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5618 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5619 : : }
5620 : 0 : inline ::mp::Context::Builder BlockTemplate::GetWitnessCommitmentIndexParams::Builder::initContext() {
5621 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5622 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5623 : : }
5624 : : inline void BlockTemplate::GetWitnessCommitmentIndexParams::Builder::adoptContext(
5625 : : ::capnp::Orphan< ::mp::Context>&& value) {
5626 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5627 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5628 : : }
5629 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetWitnessCommitmentIndexParams::Builder::disownContext() {
5630 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5631 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5632 : : }
5633 : :
5634 : 0 : inline ::int32_t BlockTemplate::GetWitnessCommitmentIndexResults::Reader::getResult() const {
5635 [ # # ]: 0 : return _reader.getDataField< ::int32_t>(
5636 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5637 : : }
5638 : :
5639 : : inline ::int32_t BlockTemplate::GetWitnessCommitmentIndexResults::Builder::getResult() {
5640 : : return _builder.getDataField< ::int32_t>(
5641 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5642 : : }
5643 : 0 : inline void BlockTemplate::GetWitnessCommitmentIndexResults::Builder::setResult( ::int32_t value) {
5644 : 0 : _builder.setDataField< ::int32_t>(
5645 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
5646 : : }
5647 : :
5648 : : inline bool BlockTemplate::GetCoinbaseMerklePathParams::Reader::hasContext() const {
5649 : : return !_reader.getPointerField(
5650 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5651 : : }
5652 : : inline bool BlockTemplate::GetCoinbaseMerklePathParams::Builder::hasContext() {
5653 : : return !_builder.getPointerField(
5654 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5655 : : }
5656 : 0 : inline ::mp::Context::Reader BlockTemplate::GetCoinbaseMerklePathParams::Reader::getContext() const {
5657 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5658 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5659 : : }
5660 : : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseMerklePathParams::Builder::getContext() {
5661 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5662 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5663 : : }
5664 : : #if !CAPNP_LITE
5665 : : inline ::mp::Context::Pipeline BlockTemplate::GetCoinbaseMerklePathParams::Pipeline::getContext() {
5666 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5667 : : }
5668 : : #endif // !CAPNP_LITE
5669 : : inline void BlockTemplate::GetCoinbaseMerklePathParams::Builder::setContext( ::mp::Context::Reader value) {
5670 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5671 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5672 : : }
5673 : 0 : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseMerklePathParams::Builder::initContext() {
5674 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5675 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5676 : : }
5677 : : inline void BlockTemplate::GetCoinbaseMerklePathParams::Builder::adoptContext(
5678 : : ::capnp::Orphan< ::mp::Context>&& value) {
5679 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5680 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5681 : : }
5682 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetCoinbaseMerklePathParams::Builder::disownContext() {
5683 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5684 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5685 : : }
5686 : :
5687 : : inline bool BlockTemplate::GetCoinbaseMerklePathResults::Reader::hasResult() const {
5688 : : return !_reader.getPointerField(
5689 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5690 : : }
5691 : : inline bool BlockTemplate::GetCoinbaseMerklePathResults::Builder::hasResult() {
5692 : : return !_builder.getPointerField(
5693 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5694 : : }
5695 : 0 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader BlockTemplate::GetCoinbaseMerklePathResults::Reader::getResult() const {
5696 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_reader.getPointerField(
5697 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5698 : : }
5699 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder BlockTemplate::GetCoinbaseMerklePathResults::Builder::getResult() {
5700 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_builder.getPointerField(
5701 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5702 : : }
5703 : : inline void BlockTemplate::GetCoinbaseMerklePathResults::Builder::setResult( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value) {
5704 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
5705 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5706 : : }
5707 : : inline void BlockTemplate::GetCoinbaseMerklePathResults::Builder::setResult(::kj::ArrayPtr<const ::capnp::Data::Reader> value) {
5708 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
5709 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5710 : : }
5711 : 0 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder BlockTemplate::GetCoinbaseMerklePathResults::Builder::initResult(unsigned int size) {
5712 : 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::init(_builder.getPointerField(
5713 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
5714 : : }
5715 : : inline void BlockTemplate::GetCoinbaseMerklePathResults::Builder::adoptResult(
5716 : : ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value) {
5717 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::adopt(_builder.getPointerField(
5718 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5719 : : }
5720 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> BlockTemplate::GetCoinbaseMerklePathResults::Builder::disownResult() {
5721 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::disown(_builder.getPointerField(
5722 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5723 : : }
5724 : :
5725 : : inline bool BlockTemplate::SubmitSolutionParams::Reader::hasContext() const {
5726 : : return !_reader.getPointerField(
5727 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5728 : : }
5729 : : inline bool BlockTemplate::SubmitSolutionParams::Builder::hasContext() {
5730 : : return !_builder.getPointerField(
5731 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5732 : : }
5733 : 0 : inline ::mp::Context::Reader BlockTemplate::SubmitSolutionParams::Reader::getContext() const {
5734 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5735 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5736 : : }
5737 : : inline ::mp::Context::Builder BlockTemplate::SubmitSolutionParams::Builder::getContext() {
5738 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5739 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5740 : : }
5741 : : #if !CAPNP_LITE
5742 : : inline ::mp::Context::Pipeline BlockTemplate::SubmitSolutionParams::Pipeline::getContext() {
5743 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5744 : : }
5745 : : #endif // !CAPNP_LITE
5746 : : inline void BlockTemplate::SubmitSolutionParams::Builder::setContext( ::mp::Context::Reader value) {
5747 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5748 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5749 : : }
5750 : 0 : inline ::mp::Context::Builder BlockTemplate::SubmitSolutionParams::Builder::initContext() {
5751 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5752 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5753 : : }
5754 : : inline void BlockTemplate::SubmitSolutionParams::Builder::adoptContext(
5755 : : ::capnp::Orphan< ::mp::Context>&& value) {
5756 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5757 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5758 : : }
5759 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::SubmitSolutionParams::Builder::disownContext() {
5760 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5761 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5762 : : }
5763 : :
5764 : 0 : inline ::uint32_t BlockTemplate::SubmitSolutionParams::Reader::getVersion() const {
5765 [ # # # # ]: 0 : return _reader.getDataField< ::uint32_t>(
5766 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5767 : : }
5768 : :
5769 : : inline ::uint32_t BlockTemplate::SubmitSolutionParams::Builder::getVersion() {
5770 : : return _builder.getDataField< ::uint32_t>(
5771 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5772 : : }
5773 : 0 : inline void BlockTemplate::SubmitSolutionParams::Builder::setVersion( ::uint32_t value) {
5774 : 0 : _builder.setDataField< ::uint32_t>(
5775 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
5776 : : }
5777 : :
5778 : 0 : inline ::uint32_t BlockTemplate::SubmitSolutionParams::Reader::getTimestamp() const {
5779 [ # # # # ]: 0 : return _reader.getDataField< ::uint32_t>(
5780 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
5781 : : }
5782 : :
5783 : : inline ::uint32_t BlockTemplate::SubmitSolutionParams::Builder::getTimestamp() {
5784 : : return _builder.getDataField< ::uint32_t>(
5785 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
5786 : : }
5787 : 0 : inline void BlockTemplate::SubmitSolutionParams::Builder::setTimestamp( ::uint32_t value) {
5788 : 0 : _builder.setDataField< ::uint32_t>(
5789 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
5790 : : }
5791 : :
5792 : 0 : inline ::uint32_t BlockTemplate::SubmitSolutionParams::Reader::getNonce() const {
5793 [ # # # # ]: 0 : return _reader.getDataField< ::uint32_t>(
5794 : : ::capnp::bounded<2>() * ::capnp::ELEMENTS);
5795 : : }
5796 : :
5797 : : inline ::uint32_t BlockTemplate::SubmitSolutionParams::Builder::getNonce() {
5798 : : return _builder.getDataField< ::uint32_t>(
5799 : : ::capnp::bounded<2>() * ::capnp::ELEMENTS);
5800 : : }
5801 : 0 : inline void BlockTemplate::SubmitSolutionParams::Builder::setNonce( ::uint32_t value) {
5802 : 0 : _builder.setDataField< ::uint32_t>(
5803 : : ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
5804 : : }
5805 : :
5806 : 0 : inline bool BlockTemplate::SubmitSolutionParams::Reader::hasCoinbase() const {
5807 [ # # ]: 0 : return !_reader.getPointerField(
5808 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
5809 : : }
5810 : : inline bool BlockTemplate::SubmitSolutionParams::Builder::hasCoinbase() {
5811 : : return !_builder.getPointerField(
5812 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
5813 : : }
5814 : 0 : inline ::capnp::Data::Reader BlockTemplate::SubmitSolutionParams::Reader::getCoinbase() const {
5815 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
5816 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
5817 : : }
5818 : : inline ::capnp::Data::Builder BlockTemplate::SubmitSolutionParams::Builder::getCoinbase() {
5819 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
5820 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
5821 : : }
5822 : : inline void BlockTemplate::SubmitSolutionParams::Builder::setCoinbase( ::capnp::Data::Reader value) {
5823 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
5824 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
5825 : : }
5826 : 0 : inline ::capnp::Data::Builder BlockTemplate::SubmitSolutionParams::Builder::initCoinbase(unsigned int size) {
5827 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
5828 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS), size);
5829 : : }
5830 : : inline void BlockTemplate::SubmitSolutionParams::Builder::adoptCoinbase(
5831 : : ::capnp::Orphan< ::capnp::Data>&& value) {
5832 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
5833 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
5834 : : }
5835 : : inline ::capnp::Orphan< ::capnp::Data> BlockTemplate::SubmitSolutionParams::Builder::disownCoinbase() {
5836 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
5837 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
5838 : : }
5839 : :
5840 : 0 : inline bool BlockTemplate::SubmitSolutionResults::Reader::getResult() const {
5841 [ # # ]: 0 : return _reader.getDataField<bool>(
5842 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5843 : : }
5844 : :
5845 : : inline bool BlockTemplate::SubmitSolutionResults::Builder::getResult() {
5846 : : return _builder.getDataField<bool>(
5847 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
5848 : : }
5849 : 0 : inline void BlockTemplate::SubmitSolutionResults::Builder::setResult(bool value) {
5850 : 0 : _builder.setDataField<bool>(
5851 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
5852 : : }
5853 : :
5854 : : inline bool BlockTemplate::WaitNextParams::Reader::hasContext() const {
5855 : : return !_reader.getPointerField(
5856 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5857 : : }
5858 : : inline bool BlockTemplate::WaitNextParams::Builder::hasContext() {
5859 : : return !_builder.getPointerField(
5860 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5861 : : }
5862 : 0 : inline ::mp::Context::Reader BlockTemplate::WaitNextParams::Reader::getContext() const {
5863 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5864 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5865 : : }
5866 : : inline ::mp::Context::Builder BlockTemplate::WaitNextParams::Builder::getContext() {
5867 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5868 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5869 : : }
5870 : : #if !CAPNP_LITE
5871 : : inline ::mp::Context::Pipeline BlockTemplate::WaitNextParams::Pipeline::getContext() {
5872 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5873 : : }
5874 : : #endif // !CAPNP_LITE
5875 : : inline void BlockTemplate::WaitNextParams::Builder::setContext( ::mp::Context::Reader value) {
5876 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5877 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5878 : : }
5879 : 0 : inline ::mp::Context::Builder BlockTemplate::WaitNextParams::Builder::initContext() {
5880 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5881 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5882 : : }
5883 : : inline void BlockTemplate::WaitNextParams::Builder::adoptContext(
5884 : : ::capnp::Orphan< ::mp::Context>&& value) {
5885 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
5886 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5887 : : }
5888 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::WaitNextParams::Builder::disownContext() {
5889 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
5890 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5891 : : }
5892 : :
5893 : : inline bool BlockTemplate::WaitNextParams::Reader::hasOptions() const {
5894 : : return !_reader.getPointerField(
5895 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
5896 : : }
5897 : : inline bool BlockTemplate::WaitNextParams::Builder::hasOptions() {
5898 : : return !_builder.getPointerField(
5899 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
5900 : : }
5901 : 0 : inline ::ipc::capnp::messages::BlockWaitOptions::Reader BlockTemplate::WaitNextParams::Reader::getOptions() const {
5902 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockWaitOptions>::get(_reader.getPointerField(
5903 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
5904 : : }
5905 : : inline ::ipc::capnp::messages::BlockWaitOptions::Builder BlockTemplate::WaitNextParams::Builder::getOptions() {
5906 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockWaitOptions>::get(_builder.getPointerField(
5907 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
5908 : : }
5909 : : #if !CAPNP_LITE
5910 : : inline ::ipc::capnp::messages::BlockWaitOptions::Pipeline BlockTemplate::WaitNextParams::Pipeline::getOptions() {
5911 : : return ::ipc::capnp::messages::BlockWaitOptions::Pipeline(_typeless.getPointerField(1));
5912 : : }
5913 : : #endif // !CAPNP_LITE
5914 : : inline void BlockTemplate::WaitNextParams::Builder::setOptions( ::ipc::capnp::messages::BlockWaitOptions::Reader value) {
5915 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockWaitOptions>::set(_builder.getPointerField(
5916 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
5917 : : }
5918 : 0 : inline ::ipc::capnp::messages::BlockWaitOptions::Builder BlockTemplate::WaitNextParams::Builder::initOptions() {
5919 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockWaitOptions>::init(_builder.getPointerField(
5920 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
5921 : : }
5922 : : inline void BlockTemplate::WaitNextParams::Builder::adoptOptions(
5923 : : ::capnp::Orphan< ::ipc::capnp::messages::BlockWaitOptions>&& value) {
5924 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockWaitOptions>::adopt(_builder.getPointerField(
5925 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
5926 : : }
5927 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockWaitOptions> BlockTemplate::WaitNextParams::Builder::disownOptions() {
5928 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockWaitOptions>::disown(_builder.getPointerField(
5929 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
5930 : : }
5931 : :
5932 : 0 : inline bool BlockTemplate::WaitNextResults::Reader::hasResult() const {
5933 [ # # ]: 0 : return !_reader.getPointerField(
5934 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5935 : : }
5936 : : inline bool BlockTemplate::WaitNextResults::Builder::hasResult() {
5937 : : return !_builder.getPointerField(
5938 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5939 : : }
5940 : : #if !CAPNP_LITE
5941 : 0 : inline ::ipc::capnp::messages::BlockTemplate::Client BlockTemplate::WaitNextResults::Reader::getResult() const {
5942 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::get(_reader.getPointerField(
5943 [ # # ]: 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5944 : : }
5945 : : inline ::ipc::capnp::messages::BlockTemplate::Client BlockTemplate::WaitNextResults::Builder::getResult() {
5946 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::get(_builder.getPointerField(
5947 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5948 : : }
5949 : : inline ::ipc::capnp::messages::BlockTemplate::Client BlockTemplate::WaitNextResults::Pipeline::getResult() {
5950 : : return ::ipc::capnp::messages::BlockTemplate::Client(_typeless.getPointerField(0).asCap());
5951 : : }
5952 : 0 : inline void BlockTemplate::WaitNextResults::Builder::setResult( ::ipc::capnp::messages::BlockTemplate::Client&& cap) {
5953 : 0 : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::set(_builder.getPointerField(
5954 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(cap));
5955 : 0 : }
5956 : : inline void BlockTemplate::WaitNextResults::Builder::setResult( ::ipc::capnp::messages::BlockTemplate::Client& cap) {
5957 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::set(_builder.getPointerField(
5958 : : ::capnp::bounded<0>() * ::capnp::POINTERS), cap);
5959 : : }
5960 : : inline void BlockTemplate::WaitNextResults::Builder::adoptResult(
5961 : : ::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate>&& value) {
5962 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::adopt(_builder.getPointerField(
5963 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
5964 : : }
5965 : : inline ::capnp::Orphan< ::ipc::capnp::messages::BlockTemplate> BlockTemplate::WaitNextResults::Builder::disownResult() {
5966 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::BlockTemplate>::disown(_builder.getPointerField(
5967 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5968 : : }
5969 : : #endif // !CAPNP_LITE
5970 : :
5971 : : inline bool BlockTemplate::GetCoinbaseTxParams::Reader::hasContext() const {
5972 : : return !_reader.getPointerField(
5973 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5974 : : }
5975 : : inline bool BlockTemplate::GetCoinbaseTxParams::Builder::hasContext() {
5976 : : return !_builder.getPointerField(
5977 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
5978 : : }
5979 : 0 : inline ::mp::Context::Reader BlockTemplate::GetCoinbaseTxParams::Reader::getContext() const {
5980 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_reader.getPointerField(
5981 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5982 : : }
5983 : : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseTxParams::Builder::getContext() {
5984 : : return ::capnp::_::PointerHelpers< ::mp::Context>::get(_builder.getPointerField(
5985 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
5986 : : }
5987 : : #if !CAPNP_LITE
5988 : : inline ::mp::Context::Pipeline BlockTemplate::GetCoinbaseTxParams::Pipeline::getContext() {
5989 : : return ::mp::Context::Pipeline(_typeless.getPointerField(0));
5990 : : }
5991 : : #endif // !CAPNP_LITE
5992 : : inline void BlockTemplate::GetCoinbaseTxParams::Builder::setContext( ::mp::Context::Reader value) {
5993 : : ::capnp::_::PointerHelpers< ::mp::Context>::set(_builder.getPointerField(
5994 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
5995 : : }
5996 : 0 : inline ::mp::Context::Builder BlockTemplate::GetCoinbaseTxParams::Builder::initContext() {
5997 : 0 : return ::capnp::_::PointerHelpers< ::mp::Context>::init(_builder.getPointerField(
5998 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
5999 : : }
6000 : : inline void BlockTemplate::GetCoinbaseTxParams::Builder::adoptContext(
6001 : : ::capnp::Orphan< ::mp::Context>&& value) {
6002 : : ::capnp::_::PointerHelpers< ::mp::Context>::adopt(_builder.getPointerField(
6003 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
6004 : : }
6005 : : inline ::capnp::Orphan< ::mp::Context> BlockTemplate::GetCoinbaseTxParams::Builder::disownContext() {
6006 : : return ::capnp::_::PointerHelpers< ::mp::Context>::disown(_builder.getPointerField(
6007 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
6008 : : }
6009 : :
6010 : : inline bool BlockTemplate::GetCoinbaseTxResults::Reader::hasResult() const {
6011 : : return !_reader.getPointerField(
6012 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
6013 : : }
6014 : : inline bool BlockTemplate::GetCoinbaseTxResults::Builder::hasResult() {
6015 : : return !_builder.getPointerField(
6016 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
6017 : : }
6018 : 0 : inline ::ipc::capnp::messages::CoinbaseTx::Reader BlockTemplate::GetCoinbaseTxResults::Reader::getResult() const {
6019 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::CoinbaseTx>::get(_reader.getPointerField(
6020 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
6021 : : }
6022 : : inline ::ipc::capnp::messages::CoinbaseTx::Builder BlockTemplate::GetCoinbaseTxResults::Builder::getResult() {
6023 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::CoinbaseTx>::get(_builder.getPointerField(
6024 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
6025 : : }
6026 : : #if !CAPNP_LITE
6027 : : inline ::ipc::capnp::messages::CoinbaseTx::Pipeline BlockTemplate::GetCoinbaseTxResults::Pipeline::getResult() {
6028 : : return ::ipc::capnp::messages::CoinbaseTx::Pipeline(_typeless.getPointerField(0));
6029 : : }
6030 : : #endif // !CAPNP_LITE
6031 : : inline void BlockTemplate::GetCoinbaseTxResults::Builder::setResult( ::ipc::capnp::messages::CoinbaseTx::Reader value) {
6032 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::CoinbaseTx>::set(_builder.getPointerField(
6033 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
6034 : : }
6035 : 0 : inline ::ipc::capnp::messages::CoinbaseTx::Builder BlockTemplate::GetCoinbaseTxResults::Builder::initResult() {
6036 : 0 : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::CoinbaseTx>::init(_builder.getPointerField(
6037 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
6038 : : }
6039 : : inline void BlockTemplate::GetCoinbaseTxResults::Builder::adoptResult(
6040 : : ::capnp::Orphan< ::ipc::capnp::messages::CoinbaseTx>&& value) {
6041 : : ::capnp::_::PointerHelpers< ::ipc::capnp::messages::CoinbaseTx>::adopt(_builder.getPointerField(
6042 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
6043 : : }
6044 : : inline ::capnp::Orphan< ::ipc::capnp::messages::CoinbaseTx> BlockTemplate::GetCoinbaseTxResults::Builder::disownResult() {
6045 : : return ::capnp::_::PointerHelpers< ::ipc::capnp::messages::CoinbaseTx>::disown(_builder.getPointerField(
6046 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
6047 : : }
6048 : :
6049 : 0 : inline bool BlockCreateOptions::Reader::getUseMempool() const {
6050 [ # # ]: 0 : return _reader.getDataField<bool>(
6051 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6052 : : }
6053 : :
6054 : : inline bool BlockCreateOptions::Builder::getUseMempool() {
6055 : : return _builder.getDataField<bool>(
6056 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6057 : : }
6058 : 0 : inline void BlockCreateOptions::Builder::setUseMempool(bool value) {
6059 : 0 : _builder.setDataField<bool>(
6060 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
6061 : : }
6062 : :
6063 : 0 : inline ::uint64_t BlockCreateOptions::Reader::getBlockReservedWeight() const {
6064 [ # # ]: 0 : return _reader.getDataField< ::uint64_t>(
6065 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6066 : : }
6067 : :
6068 : : inline ::uint64_t BlockCreateOptions::Builder::getBlockReservedWeight() {
6069 : : return _builder.getDataField< ::uint64_t>(
6070 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6071 : : }
6072 : 0 : inline void BlockCreateOptions::Builder::setBlockReservedWeight( ::uint64_t value) {
6073 : 0 : _builder.setDataField< ::uint64_t>(
6074 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
6075 : : }
6076 : :
6077 : 0 : inline ::uint64_t BlockCreateOptions::Reader::getCoinbaseOutputMaxAdditionalSigops() const {
6078 [ # # ]: 0 : return _reader.getDataField< ::uint64_t>(
6079 : : ::capnp::bounded<2>() * ::capnp::ELEMENTS);
6080 : : }
6081 : :
6082 : : inline ::uint64_t BlockCreateOptions::Builder::getCoinbaseOutputMaxAdditionalSigops() {
6083 : : return _builder.getDataField< ::uint64_t>(
6084 : : ::capnp::bounded<2>() * ::capnp::ELEMENTS);
6085 : : }
6086 : 0 : inline void BlockCreateOptions::Builder::setCoinbaseOutputMaxAdditionalSigops( ::uint64_t value) {
6087 : 0 : _builder.setDataField< ::uint64_t>(
6088 : : ::capnp::bounded<2>() * ::capnp::ELEMENTS, value);
6089 : : }
6090 : :
6091 : 0 : inline double BlockWaitOptions::Reader::getTimeout() const {
6092 [ # # ]: 0 : return _reader.getDataField<double>(
6093 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6094 : : }
6095 : :
6096 : : inline double BlockWaitOptions::Builder::getTimeout() {
6097 : : return _builder.getDataField<double>(
6098 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6099 : : }
6100 : 0 : inline void BlockWaitOptions::Builder::setTimeout(double value) {
6101 : 0 : _builder.setDataField<double>(
6102 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
6103 : : }
6104 : :
6105 : 0 : inline ::int64_t BlockWaitOptions::Reader::getFeeThreshold() const {
6106 [ # # ]: 0 : return _reader.getDataField< ::int64_t>(
6107 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6108 : : }
6109 : :
6110 : : inline ::int64_t BlockWaitOptions::Builder::getFeeThreshold() {
6111 : : return _builder.getDataField< ::int64_t>(
6112 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6113 : : }
6114 : 0 : inline void BlockWaitOptions::Builder::setFeeThreshold( ::int64_t value) {
6115 : 0 : _builder.setDataField< ::int64_t>(
6116 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
6117 : : }
6118 : :
6119 : 0 : inline bool BlockCheckOptions::Reader::getCheckMerkleRoot() const {
6120 [ # # ]: 0 : return _reader.getDataField<bool>(
6121 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6122 : : }
6123 : :
6124 : : inline bool BlockCheckOptions::Builder::getCheckMerkleRoot() {
6125 : : return _builder.getDataField<bool>(
6126 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6127 : : }
6128 : 0 : inline void BlockCheckOptions::Builder::setCheckMerkleRoot(bool value) {
6129 : 0 : _builder.setDataField<bool>(
6130 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
6131 : : }
6132 : :
6133 : 0 : inline bool BlockCheckOptions::Reader::getCheckPow() const {
6134 [ # # ]: 0 : return _reader.getDataField<bool>(
6135 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6136 : : }
6137 : :
6138 : : inline bool BlockCheckOptions::Builder::getCheckPow() {
6139 : : return _builder.getDataField<bool>(
6140 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6141 : : }
6142 : 0 : inline void BlockCheckOptions::Builder::setCheckPow(bool value) {
6143 : 0 : _builder.setDataField<bool>(
6144 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
6145 : : }
6146 : :
6147 : 0 : inline ::uint32_t CoinbaseTx::Reader::getVersion() const {
6148 [ # # ]: 0 : return _reader.getDataField< ::uint32_t>(
6149 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6150 : : }
6151 : :
6152 : : inline ::uint32_t CoinbaseTx::Builder::getVersion() {
6153 : : return _builder.getDataField< ::uint32_t>(
6154 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
6155 : : }
6156 : 0 : inline void CoinbaseTx::Builder::setVersion( ::uint32_t value) {
6157 : 0 : _builder.setDataField< ::uint32_t>(
6158 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
6159 : : }
6160 : :
6161 : 0 : inline ::uint32_t CoinbaseTx::Reader::getSequence() const {
6162 [ # # ]: 0 : return _reader.getDataField< ::uint32_t>(
6163 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6164 : : }
6165 : :
6166 : : inline ::uint32_t CoinbaseTx::Builder::getSequence() {
6167 : : return _builder.getDataField< ::uint32_t>(
6168 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6169 : : }
6170 : 0 : inline void CoinbaseTx::Builder::setSequence( ::uint32_t value) {
6171 : 0 : _builder.setDataField< ::uint32_t>(
6172 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
6173 : : }
6174 : :
6175 : : inline bool CoinbaseTx::Reader::hasScriptSigPrefix() const {
6176 : : return !_reader.getPointerField(
6177 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
6178 : : }
6179 : : inline bool CoinbaseTx::Builder::hasScriptSigPrefix() {
6180 : : return !_builder.getPointerField(
6181 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
6182 : : }
6183 : 0 : inline ::capnp::Data::Reader CoinbaseTx::Reader::getScriptSigPrefix() const {
6184 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
6185 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS));
6186 : : }
6187 : : inline ::capnp::Data::Builder CoinbaseTx::Builder::getScriptSigPrefix() {
6188 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
6189 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
6190 : : }
6191 : : inline void CoinbaseTx::Builder::setScriptSigPrefix( ::capnp::Data::Reader value) {
6192 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
6193 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
6194 : : }
6195 : 0 : inline ::capnp::Data::Builder CoinbaseTx::Builder::initScriptSigPrefix(unsigned int size) {
6196 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
6197 : 0 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
6198 : : }
6199 : : inline void CoinbaseTx::Builder::adoptScriptSigPrefix(
6200 : : ::capnp::Orphan< ::capnp::Data>&& value) {
6201 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
6202 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
6203 : : }
6204 : : inline ::capnp::Orphan< ::capnp::Data> CoinbaseTx::Builder::disownScriptSigPrefix() {
6205 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
6206 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
6207 : : }
6208 : :
6209 : 0 : inline bool CoinbaseTx::Reader::hasWitness() const {
6210 [ # # ]: 0 : return !_reader.getPointerField(
6211 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
6212 : : }
6213 : : inline bool CoinbaseTx::Builder::hasWitness() {
6214 : : return !_builder.getPointerField(
6215 : : ::capnp::bounded<1>() * ::capnp::POINTERS).isNull();
6216 : : }
6217 : 0 : inline ::capnp::Data::Reader CoinbaseTx::Reader::getWitness() const {
6218 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
6219 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS));
6220 : : }
6221 : : inline ::capnp::Data::Builder CoinbaseTx::Builder::getWitness() {
6222 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
6223 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
6224 : : }
6225 : : inline void CoinbaseTx::Builder::setWitness( ::capnp::Data::Reader value) {
6226 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
6227 : : ::capnp::bounded<1>() * ::capnp::POINTERS), value);
6228 : : }
6229 : 0 : inline ::capnp::Data::Builder CoinbaseTx::Builder::initWitness(unsigned int size) {
6230 : 0 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
6231 : 0 : ::capnp::bounded<1>() * ::capnp::POINTERS), size);
6232 : : }
6233 : : inline void CoinbaseTx::Builder::adoptWitness(
6234 : : ::capnp::Orphan< ::capnp::Data>&& value) {
6235 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
6236 : : ::capnp::bounded<1>() * ::capnp::POINTERS), kj::mv(value));
6237 : : }
6238 : : inline ::capnp::Orphan< ::capnp::Data> CoinbaseTx::Builder::disownWitness() {
6239 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
6240 : : ::capnp::bounded<1>() * ::capnp::POINTERS));
6241 : : }
6242 : :
6243 : 0 : inline ::int64_t CoinbaseTx::Reader::getBlockRewardRemaining() const {
6244 [ # # ]: 0 : return _reader.getDataField< ::int64_t>(
6245 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6246 : : }
6247 : :
6248 : : inline ::int64_t CoinbaseTx::Builder::getBlockRewardRemaining() {
6249 : : return _builder.getDataField< ::int64_t>(
6250 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
6251 : : }
6252 : 0 : inline void CoinbaseTx::Builder::setBlockRewardRemaining( ::int64_t value) {
6253 : 0 : _builder.setDataField< ::int64_t>(
6254 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
6255 : : }
6256 : :
6257 : : inline bool CoinbaseTx::Reader::hasRequiredOutputs() const {
6258 : : return !_reader.getPointerField(
6259 : : ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
6260 : : }
6261 : : inline bool CoinbaseTx::Builder::hasRequiredOutputs() {
6262 : : return !_builder.getPointerField(
6263 : : ::capnp::bounded<2>() * ::capnp::POINTERS).isNull();
6264 : : }
6265 : 0 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader CoinbaseTx::Reader::getRequiredOutputs() const {
6266 [ # # ]: 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_reader.getPointerField(
6267 : 0 : ::capnp::bounded<2>() * ::capnp::POINTERS));
6268 : : }
6269 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder CoinbaseTx::Builder::getRequiredOutputs() {
6270 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_builder.getPointerField(
6271 : : ::capnp::bounded<2>() * ::capnp::POINTERS));
6272 : : }
6273 : : inline void CoinbaseTx::Builder::setRequiredOutputs( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value) {
6274 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
6275 : : ::capnp::bounded<2>() * ::capnp::POINTERS), value);
6276 : : }
6277 : : inline void CoinbaseTx::Builder::setRequiredOutputs(::kj::ArrayPtr<const ::capnp::Data::Reader> value) {
6278 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
6279 : : ::capnp::bounded<2>() * ::capnp::POINTERS), value);
6280 : : }
6281 : 0 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder CoinbaseTx::Builder::initRequiredOutputs(unsigned int size) {
6282 : 0 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::init(_builder.getPointerField(
6283 : 0 : ::capnp::bounded<2>() * ::capnp::POINTERS), size);
6284 : : }
6285 : : inline void CoinbaseTx::Builder::adoptRequiredOutputs(
6286 : : ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value) {
6287 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::adopt(_builder.getPointerField(
6288 : : ::capnp::bounded<2>() * ::capnp::POINTERS), kj::mv(value));
6289 : : }
6290 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> CoinbaseTx::Builder::disownRequiredOutputs() {
6291 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::disown(_builder.getPointerField(
6292 : : ::capnp::bounded<2>() * ::capnp::POINTERS));
6293 : : }
6294 : :
6295 : 0 : inline ::uint32_t CoinbaseTx::Reader::getLockTime() const {
6296 [ # # ]: 0 : return _reader.getDataField< ::uint32_t>(
6297 : : ::capnp::bounded<4>() * ::capnp::ELEMENTS);
6298 : : }
6299 : :
6300 : : inline ::uint32_t CoinbaseTx::Builder::getLockTime() {
6301 : : return _builder.getDataField< ::uint32_t>(
6302 : : ::capnp::bounded<4>() * ::capnp::ELEMENTS);
6303 : : }
6304 : 0 : inline void CoinbaseTx::Builder::setLockTime( ::uint32_t value) {
6305 : 0 : _builder.setDataField< ::uint32_t>(
6306 : : ::capnp::bounded<4>() * ::capnp::ELEMENTS, value);
6307 : : }
6308 : :
6309 : : } // namespace
6310 : : } // namespace
6311 : : } // namespace
6312 : :
6313 : : CAPNP_END_HEADER
6314 : :
|