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