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