@lodestar/beacon-node 1.42.0-dev.84f3b9f030 → 1.42.0-dev.9223e0a3eb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/network/gossip/topic.d.ts +727 -0
- package/lib/network/gossip/topic.d.ts.map +1 -1
- package/lib/network/libp2p/index.d.ts.map +1 -1
- package/lib/network/libp2p/index.js +19 -13
- package/lib/network/libp2p/index.js.map +1 -1
- package/lib/network/options.d.ts.map +1 -1
- package/lib/network/options.js +7 -2
- package/lib/network/options.js.map +1 -1
- package/package.json +15 -15
- package/src/network/libp2p/index.ts +21 -15
- package/src/network/options.ts +7 -2
|
@@ -285,6 +285,134 @@ export declare function getGossipSSZType(topic: GossipTopic): import("@chainsafe
|
|
|
285
285
|
}>;
|
|
286
286
|
}>;
|
|
287
287
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
288
|
+
}> | import("@chainsafe/ssz").ContainerType<{
|
|
289
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
290
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
291
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
292
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
293
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
294
|
+
body: import("@chainsafe/ssz").ContainerType<{
|
|
295
|
+
randaoReveal: import("@chainsafe/ssz").ByteVectorType;
|
|
296
|
+
eth1Data: import("@chainsafe/ssz").ContainerType<{
|
|
297
|
+
depositRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
298
|
+
depositCount: import("@chainsafe/ssz").UintNumberType;
|
|
299
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
300
|
+
}>;
|
|
301
|
+
graffiti: import("@chainsafe/ssz").ByteVectorType;
|
|
302
|
+
proposerSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
303
|
+
signedHeader1: import("@chainsafe/ssz").ContainerType<{
|
|
304
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
305
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
306
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
307
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
308
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
309
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
310
|
+
}>;
|
|
311
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
312
|
+
}>;
|
|
313
|
+
signedHeader2: import("@chainsafe/ssz").ContainerType<{
|
|
314
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
315
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
316
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
317
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
318
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
319
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
320
|
+
}>;
|
|
321
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
322
|
+
}>;
|
|
323
|
+
}>>;
|
|
324
|
+
attesterSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
325
|
+
attestation1: import("@chainsafe/ssz").ContainerType<{
|
|
326
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
327
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
328
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
329
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
330
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
331
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
332
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
333
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
334
|
+
}>;
|
|
335
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
336
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
337
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
338
|
+
}>;
|
|
339
|
+
}>;
|
|
340
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
341
|
+
}>;
|
|
342
|
+
attestation2: import("@chainsafe/ssz").ContainerType<{
|
|
343
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
344
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
345
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
346
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
347
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
348
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
349
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
350
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
351
|
+
}>;
|
|
352
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
353
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
354
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
355
|
+
}>;
|
|
356
|
+
}>;
|
|
357
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
358
|
+
}>;
|
|
359
|
+
}>>;
|
|
360
|
+
attestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
361
|
+
aggregationBits: import("@chainsafe/ssz").BitListType;
|
|
362
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
363
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
364
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
365
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
366
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
367
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
368
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
369
|
+
}>;
|
|
370
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
371
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
372
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
373
|
+
}>;
|
|
374
|
+
}>;
|
|
375
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
376
|
+
}>>;
|
|
377
|
+
deposits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
378
|
+
proof: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
379
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
380
|
+
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
381
|
+
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
382
|
+
amount: import("@chainsafe/ssz").UintNumberType;
|
|
383
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
384
|
+
}>;
|
|
385
|
+
}>>;
|
|
386
|
+
voluntaryExits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
387
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
388
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
389
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
390
|
+
}>;
|
|
391
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
392
|
+
}>>;
|
|
393
|
+
syncAggregate: import("@chainsafe/ssz").ContainerType<{
|
|
394
|
+
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
|
|
395
|
+
syncCommitteeSignature: import("@chainsafe/ssz").ByteVectorType;
|
|
396
|
+
}>;
|
|
397
|
+
executionPayload: import("@chainsafe/ssz").ContainerType<{
|
|
398
|
+
parentHash: import("@chainsafe/ssz").ByteVectorType;
|
|
399
|
+
feeRecipient: import("@lodestar/types").ExecutionAddressType;
|
|
400
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
401
|
+
receiptsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
402
|
+
logsBloom: import("@chainsafe/ssz").ByteVectorType;
|
|
403
|
+
prevRandao: import("@chainsafe/ssz").ByteVectorType;
|
|
404
|
+
blockNumber: import("@chainsafe/ssz").UintNumberType;
|
|
405
|
+
gasLimit: import("@chainsafe/ssz").UintNumberType;
|
|
406
|
+
gasUsed: import("@chainsafe/ssz").UintNumberType;
|
|
407
|
+
timestamp: import("@chainsafe/ssz").UintNumberType;
|
|
408
|
+
extraData: import("@chainsafe/ssz").ByteListType;
|
|
409
|
+
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
410
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
411
|
+
transactions: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteListType>;
|
|
412
|
+
}>;
|
|
413
|
+
}>;
|
|
414
|
+
}>;
|
|
415
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
288
416
|
}> | import("@chainsafe/ssz").ContainerType<{
|
|
289
417
|
message: import("@chainsafe/ssz").ContainerType<{
|
|
290
418
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
@@ -292,6 +420,293 @@ export declare function getGossipSSZType(topic: GossipTopic): import("@chainsafe
|
|
|
292
420
|
toExecutionAddress: import("@lodestar/types").ExecutionAddressType;
|
|
293
421
|
}>;
|
|
294
422
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
423
|
+
}> | import("@chainsafe/ssz").ContainerType<{
|
|
424
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
425
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
426
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
427
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
428
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
429
|
+
body: import("@chainsafe/ssz").ContainerType<{
|
|
430
|
+
randaoReveal: import("@chainsafe/ssz").ByteVectorType;
|
|
431
|
+
eth1Data: import("@chainsafe/ssz").ContainerType<{
|
|
432
|
+
depositRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
433
|
+
depositCount: import("@chainsafe/ssz").UintNumberType;
|
|
434
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
435
|
+
}>;
|
|
436
|
+
graffiti: import("@chainsafe/ssz").ByteVectorType;
|
|
437
|
+
proposerSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
438
|
+
signedHeader1: import("@chainsafe/ssz").ContainerType<{
|
|
439
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
440
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
441
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
442
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
443
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
444
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
445
|
+
}>;
|
|
446
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
447
|
+
}>;
|
|
448
|
+
signedHeader2: import("@chainsafe/ssz").ContainerType<{
|
|
449
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
450
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
451
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
452
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
453
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
454
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
455
|
+
}>;
|
|
456
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
457
|
+
}>;
|
|
458
|
+
}>>;
|
|
459
|
+
attesterSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
460
|
+
attestation1: import("@chainsafe/ssz").ContainerType<{
|
|
461
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
462
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
463
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
464
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
465
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
466
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
467
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
468
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
469
|
+
}>;
|
|
470
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
471
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
472
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
473
|
+
}>;
|
|
474
|
+
}>;
|
|
475
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
476
|
+
}>;
|
|
477
|
+
attestation2: import("@chainsafe/ssz").ContainerType<{
|
|
478
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
479
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
480
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
481
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
482
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
483
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
484
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
485
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
486
|
+
}>;
|
|
487
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
488
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
489
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
490
|
+
}>;
|
|
491
|
+
}>;
|
|
492
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
493
|
+
}>;
|
|
494
|
+
}>>;
|
|
495
|
+
attestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
496
|
+
aggregationBits: import("@chainsafe/ssz").BitListType;
|
|
497
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
498
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
499
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
500
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
501
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
502
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
503
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
504
|
+
}>;
|
|
505
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
506
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
507
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
508
|
+
}>;
|
|
509
|
+
}>;
|
|
510
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
511
|
+
}>>;
|
|
512
|
+
deposits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
513
|
+
proof: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
514
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
515
|
+
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
516
|
+
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
517
|
+
amount: import("@chainsafe/ssz").UintNumberType;
|
|
518
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
519
|
+
}>;
|
|
520
|
+
}>>;
|
|
521
|
+
voluntaryExits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
522
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
523
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
524
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
525
|
+
}>;
|
|
526
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
527
|
+
}>>;
|
|
528
|
+
syncAggregate: import("@chainsafe/ssz").ContainerType<{
|
|
529
|
+
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
|
|
530
|
+
syncCommitteeSignature: import("@chainsafe/ssz").ByteVectorType;
|
|
531
|
+
}>;
|
|
532
|
+
executionPayload: import("@chainsafe/ssz").ContainerType<{
|
|
533
|
+
parentHash: import("@chainsafe/ssz").ByteVectorType;
|
|
534
|
+
feeRecipient: import("@lodestar/types").ExecutionAddressType;
|
|
535
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
536
|
+
receiptsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
537
|
+
logsBloom: import("@chainsafe/ssz").ByteVectorType;
|
|
538
|
+
prevRandao: import("@chainsafe/ssz").ByteVectorType;
|
|
539
|
+
blockNumber: import("@chainsafe/ssz").UintNumberType;
|
|
540
|
+
gasLimit: import("@chainsafe/ssz").UintNumberType;
|
|
541
|
+
gasUsed: import("@chainsafe/ssz").UintNumberType;
|
|
542
|
+
timestamp: import("@chainsafe/ssz").UintNumberType;
|
|
543
|
+
extraData: import("@chainsafe/ssz").ByteListType;
|
|
544
|
+
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
545
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
546
|
+
transactions: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteListType>;
|
|
547
|
+
withdrawals: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
548
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
549
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
550
|
+
address: import("@lodestar/types").ExecutionAddressType;
|
|
551
|
+
amount: import("@chainsafe/ssz").UintBigintType;
|
|
552
|
+
}>>;
|
|
553
|
+
}>;
|
|
554
|
+
blsToExecutionChanges: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
555
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
556
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
557
|
+
fromBlsPubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
558
|
+
toExecutionAddress: import("@lodestar/types").ExecutionAddressType;
|
|
559
|
+
}>;
|
|
560
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
561
|
+
}>>;
|
|
562
|
+
}>;
|
|
563
|
+
}>;
|
|
564
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
565
|
+
}> | import("@chainsafe/ssz").ContainerType<{
|
|
566
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
567
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
568
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
569
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
570
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
571
|
+
body: import("@chainsafe/ssz").ContainerType<{
|
|
572
|
+
randaoReveal: import("@chainsafe/ssz").ByteVectorType;
|
|
573
|
+
eth1Data: import("@chainsafe/ssz").ContainerType<{
|
|
574
|
+
depositRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
575
|
+
depositCount: import("@chainsafe/ssz").UintNumberType;
|
|
576
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
577
|
+
}>;
|
|
578
|
+
graffiti: import("@chainsafe/ssz").ByteVectorType;
|
|
579
|
+
proposerSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
580
|
+
signedHeader1: import("@chainsafe/ssz").ContainerType<{
|
|
581
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
582
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
583
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
584
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
585
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
586
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
587
|
+
}>;
|
|
588
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
589
|
+
}>;
|
|
590
|
+
signedHeader2: import("@chainsafe/ssz").ContainerType<{
|
|
591
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
592
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
593
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
594
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
595
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
596
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
597
|
+
}>;
|
|
598
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
599
|
+
}>;
|
|
600
|
+
}>>;
|
|
601
|
+
attesterSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
602
|
+
attestation1: import("@chainsafe/ssz").ContainerType<{
|
|
603
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
604
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
605
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
606
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
607
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
608
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
609
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
610
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
611
|
+
}>;
|
|
612
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
613
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
614
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
615
|
+
}>;
|
|
616
|
+
}>;
|
|
617
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
618
|
+
}>;
|
|
619
|
+
attestation2: import("@chainsafe/ssz").ContainerType<{
|
|
620
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
621
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
622
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
623
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
624
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
625
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
626
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
627
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
628
|
+
}>;
|
|
629
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
630
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
631
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
632
|
+
}>;
|
|
633
|
+
}>;
|
|
634
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
635
|
+
}>;
|
|
636
|
+
}>>;
|
|
637
|
+
attestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
638
|
+
aggregationBits: import("@chainsafe/ssz").BitListType;
|
|
639
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
640
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
641
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
642
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
643
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
644
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
645
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
646
|
+
}>;
|
|
647
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
648
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
649
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
650
|
+
}>;
|
|
651
|
+
}>;
|
|
652
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
653
|
+
}>>;
|
|
654
|
+
deposits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
655
|
+
proof: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
656
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
657
|
+
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
658
|
+
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
659
|
+
amount: import("@chainsafe/ssz").UintNumberType;
|
|
660
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
661
|
+
}>;
|
|
662
|
+
}>>;
|
|
663
|
+
voluntaryExits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
664
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
665
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
666
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
667
|
+
}>;
|
|
668
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
669
|
+
}>>;
|
|
670
|
+
syncAggregate: import("@chainsafe/ssz").ContainerType<{
|
|
671
|
+
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
|
|
672
|
+
syncCommitteeSignature: import("@chainsafe/ssz").ByteVectorType;
|
|
673
|
+
}>;
|
|
674
|
+
executionPayload: import("@chainsafe/ssz").ContainerType<{
|
|
675
|
+
parentHash: import("@chainsafe/ssz").ByteVectorType;
|
|
676
|
+
feeRecipient: import("@lodestar/types").ExecutionAddressType;
|
|
677
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
678
|
+
receiptsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
679
|
+
logsBloom: import("@chainsafe/ssz").ByteVectorType;
|
|
680
|
+
prevRandao: import("@chainsafe/ssz").ByteVectorType;
|
|
681
|
+
blockNumber: import("@chainsafe/ssz").UintNumberType;
|
|
682
|
+
gasLimit: import("@chainsafe/ssz").UintNumberType;
|
|
683
|
+
gasUsed: import("@chainsafe/ssz").UintNumberType;
|
|
684
|
+
timestamp: import("@chainsafe/ssz").UintNumberType;
|
|
685
|
+
extraData: import("@chainsafe/ssz").ByteListType;
|
|
686
|
+
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
687
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
688
|
+
transactions: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteListType>;
|
|
689
|
+
withdrawals: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
690
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
691
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
692
|
+
address: import("@lodestar/types").ExecutionAddressType;
|
|
693
|
+
amount: import("@chainsafe/ssz").UintBigintType;
|
|
694
|
+
}>>;
|
|
695
|
+
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
696
|
+
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
697
|
+
}>;
|
|
698
|
+
blsToExecutionChanges: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
699
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
700
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
701
|
+
fromBlsPubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
702
|
+
toExecutionAddress: import("@lodestar/types").ExecutionAddressType;
|
|
703
|
+
}>;
|
|
704
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
705
|
+
}>>;
|
|
706
|
+
blobKzgCommitments: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
707
|
+
}>;
|
|
708
|
+
}>;
|
|
709
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
295
710
|
}> | import("@chainsafe/ssz").ContainerType<{
|
|
296
711
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
297
712
|
blob: import("@chainsafe/ssz").ByteVectorType;
|
|
@@ -308,6 +723,171 @@ export declare function getGossipSSZType(topic: GossipTopic): import("@chainsafe
|
|
|
308
723
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
309
724
|
}>;
|
|
310
725
|
kzgCommitmentInclusionProof: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
726
|
+
}> | import("@chainsafe/ssz").ContainerType<{
|
|
727
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
728
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
729
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
730
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
731
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
732
|
+
body: import("@chainsafe/ssz").ContainerType<{
|
|
733
|
+
randaoReveal: import("@chainsafe/ssz").ByteVectorType;
|
|
734
|
+
eth1Data: import("@chainsafe/ssz").ContainerType<{
|
|
735
|
+
depositRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
736
|
+
depositCount: import("@chainsafe/ssz").UintNumberType;
|
|
737
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
738
|
+
}>;
|
|
739
|
+
graffiti: import("@chainsafe/ssz").ByteVectorType;
|
|
740
|
+
proposerSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
741
|
+
signedHeader1: import("@chainsafe/ssz").ContainerType<{
|
|
742
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
743
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
744
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
745
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
746
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
747
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
748
|
+
}>;
|
|
749
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
750
|
+
}>;
|
|
751
|
+
signedHeader2: import("@chainsafe/ssz").ContainerType<{
|
|
752
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
753
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
754
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
755
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
756
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
757
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
758
|
+
}>;
|
|
759
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
760
|
+
}>;
|
|
761
|
+
}>>;
|
|
762
|
+
attesterSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
763
|
+
attestation1: import("@chainsafe/ssz").ContainerType<{
|
|
764
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
765
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
766
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
767
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
768
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
769
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
770
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
771
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
772
|
+
}>;
|
|
773
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
774
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
775
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
776
|
+
}>;
|
|
777
|
+
}>;
|
|
778
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
779
|
+
}>;
|
|
780
|
+
attestation2: import("@chainsafe/ssz").ContainerType<{
|
|
781
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
782
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
783
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
784
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
785
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
786
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
787
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
788
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
789
|
+
}>;
|
|
790
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
791
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
792
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
793
|
+
}>;
|
|
794
|
+
}>;
|
|
795
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
796
|
+
}>;
|
|
797
|
+
}>>;
|
|
798
|
+
attestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
799
|
+
aggregationBits: import("@chainsafe/ssz").BitListType;
|
|
800
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
801
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
802
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
803
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
804
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
805
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
806
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
807
|
+
}>;
|
|
808
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
809
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
810
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
811
|
+
}>;
|
|
812
|
+
}>;
|
|
813
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
814
|
+
committeeBits: import("@chainsafe/ssz").BitVectorType;
|
|
815
|
+
}>>;
|
|
816
|
+
deposits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
817
|
+
proof: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
818
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
819
|
+
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
820
|
+
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
821
|
+
amount: import("@chainsafe/ssz").UintNumberType;
|
|
822
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
823
|
+
}>;
|
|
824
|
+
}>>;
|
|
825
|
+
voluntaryExits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
826
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
827
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
828
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
829
|
+
}>;
|
|
830
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
831
|
+
}>>;
|
|
832
|
+
syncAggregate: import("@chainsafe/ssz").ContainerType<{
|
|
833
|
+
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
|
|
834
|
+
syncCommitteeSignature: import("@chainsafe/ssz").ByteVectorType;
|
|
835
|
+
}>;
|
|
836
|
+
executionPayload: import("@chainsafe/ssz").ContainerType<{
|
|
837
|
+
parentHash: import("@chainsafe/ssz").ByteVectorType;
|
|
838
|
+
feeRecipient: import("@lodestar/types").ExecutionAddressType;
|
|
839
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
840
|
+
receiptsRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
841
|
+
logsBloom: import("@chainsafe/ssz").ByteVectorType;
|
|
842
|
+
prevRandao: import("@chainsafe/ssz").ByteVectorType;
|
|
843
|
+
blockNumber: import("@chainsafe/ssz").UintNumberType;
|
|
844
|
+
gasLimit: import("@chainsafe/ssz").UintNumberType;
|
|
845
|
+
gasUsed: import("@chainsafe/ssz").UintNumberType;
|
|
846
|
+
timestamp: import("@chainsafe/ssz").UintNumberType;
|
|
847
|
+
extraData: import("@chainsafe/ssz").ByteListType;
|
|
848
|
+
baseFeePerGas: import("@chainsafe/ssz").UintBigintType;
|
|
849
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
850
|
+
transactions: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteListType>;
|
|
851
|
+
withdrawals: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
852
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
853
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
854
|
+
address: import("@lodestar/types").ExecutionAddressType;
|
|
855
|
+
amount: import("@chainsafe/ssz").UintBigintType;
|
|
856
|
+
}>>;
|
|
857
|
+
blobGasUsed: import("@chainsafe/ssz").UintBigintType;
|
|
858
|
+
excessBlobGas: import("@chainsafe/ssz").UintBigintType;
|
|
859
|
+
}>;
|
|
860
|
+
blsToExecutionChanges: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
861
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
862
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
863
|
+
fromBlsPubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
864
|
+
toExecutionAddress: import("@lodestar/types").ExecutionAddressType;
|
|
865
|
+
}>;
|
|
866
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
867
|
+
}>>;
|
|
868
|
+
blobKzgCommitments: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
869
|
+
executionRequests: import("@chainsafe/ssz").ContainerType<{
|
|
870
|
+
deposits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
871
|
+
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
872
|
+
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
873
|
+
amount: import("@chainsafe/ssz").UintNumberType;
|
|
874
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
875
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
876
|
+
}>>;
|
|
877
|
+
withdrawals: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
878
|
+
sourceAddress: import("@lodestar/types").ExecutionAddressType;
|
|
879
|
+
validatorPubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
880
|
+
amount: import("@chainsafe/ssz").UintBigintType;
|
|
881
|
+
}>>;
|
|
882
|
+
consolidations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
883
|
+
sourceAddress: import("@lodestar/types").ExecutionAddressType;
|
|
884
|
+
sourcePubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
885
|
+
targetPubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
886
|
+
}>>;
|
|
887
|
+
}>;
|
|
888
|
+
}>;
|
|
889
|
+
}>;
|
|
890
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
311
891
|
}> | import("@chainsafe/ssz").ContainerType<{
|
|
312
892
|
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
313
893
|
data: import("@chainsafe/ssz").ContainerType<{
|
|
@@ -383,6 +963,153 @@ export declare function getGossipSSZType(topic: GossipTopic): import("@chainsafe
|
|
|
383
963
|
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
384
964
|
}>;
|
|
385
965
|
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
966
|
+
}> | import("@chainsafe/ssz").ContainerType<{
|
|
967
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
968
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
969
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
970
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
971
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
972
|
+
body: import("@chainsafe/ssz").ContainerType<{
|
|
973
|
+
randaoReveal: import("@chainsafe/ssz").ByteVectorType;
|
|
974
|
+
eth1Data: import("@chainsafe/ssz").ContainerType<{
|
|
975
|
+
depositRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
976
|
+
depositCount: import("@chainsafe/ssz").UintNumberType;
|
|
977
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
978
|
+
}>;
|
|
979
|
+
graffiti: import("@chainsafe/ssz").ByteVectorType;
|
|
980
|
+
proposerSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
981
|
+
signedHeader1: import("@chainsafe/ssz").ContainerType<{
|
|
982
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
983
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
984
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
985
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
986
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
987
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
988
|
+
}>;
|
|
989
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
990
|
+
}>;
|
|
991
|
+
signedHeader2: import("@chainsafe/ssz").ContainerType<{
|
|
992
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
993
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
994
|
+
proposerIndex: import("@chainsafe/ssz").UintNumberType;
|
|
995
|
+
parentRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
996
|
+
stateRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
997
|
+
bodyRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
998
|
+
}>;
|
|
999
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1000
|
+
}>;
|
|
1001
|
+
}>>;
|
|
1002
|
+
attesterSlashings: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
1003
|
+
attestation1: import("@chainsafe/ssz").ContainerType<{
|
|
1004
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1005
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
1006
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
1007
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
1008
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
1009
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
1010
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
1011
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
1012
|
+
}>;
|
|
1013
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
1014
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
1015
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
1016
|
+
}>;
|
|
1017
|
+
}>;
|
|
1018
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1019
|
+
}>;
|
|
1020
|
+
attestation2: import("@chainsafe/ssz").ContainerType<{
|
|
1021
|
+
attestingIndices: import("@chainsafe/ssz").ListBasicType<import("@chainsafe/ssz").UintNumberType>;
|
|
1022
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
1023
|
+
slot: import("@chainsafe/ssz").UintBigintType;
|
|
1024
|
+
index: import("@chainsafe/ssz").UintBigintType;
|
|
1025
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
1026
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
1027
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
1028
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
1029
|
+
}>;
|
|
1030
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
1031
|
+
epoch: import("@chainsafe/ssz").UintBigintType;
|
|
1032
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
1033
|
+
}>;
|
|
1034
|
+
}>;
|
|
1035
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1036
|
+
}>;
|
|
1037
|
+
}>>;
|
|
1038
|
+
attestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
1039
|
+
aggregationBits: import("@chainsafe/ssz").BitListType;
|
|
1040
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
1041
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
1042
|
+
index: import("@chainsafe/ssz").UintNumberType;
|
|
1043
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
1044
|
+
source: import("@chainsafe/ssz").ContainerType<{
|
|
1045
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
1046
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
1047
|
+
}>;
|
|
1048
|
+
target: import("@chainsafe/ssz").ContainerType<{
|
|
1049
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
1050
|
+
root: import("@chainsafe/ssz").ByteVectorType;
|
|
1051
|
+
}>;
|
|
1052
|
+
}>;
|
|
1053
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1054
|
+
committeeBits: import("@chainsafe/ssz").BitVectorType;
|
|
1055
|
+
}>>;
|
|
1056
|
+
deposits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
1057
|
+
proof: import("@chainsafe/ssz").VectorCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
1058
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
1059
|
+
pubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
1060
|
+
withdrawalCredentials: import("@chainsafe/ssz").ByteVectorType;
|
|
1061
|
+
amount: import("@chainsafe/ssz").UintNumberType;
|
|
1062
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1063
|
+
}>;
|
|
1064
|
+
}>>;
|
|
1065
|
+
voluntaryExits: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
1066
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
1067
|
+
epoch: import("@chainsafe/ssz").UintNumberType;
|
|
1068
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1069
|
+
}>;
|
|
1070
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1071
|
+
}>>;
|
|
1072
|
+
syncAggregate: import("@chainsafe/ssz").ContainerType<{
|
|
1073
|
+
syncCommitteeBits: import("@chainsafe/ssz").BitVectorType;
|
|
1074
|
+
syncCommitteeSignature: import("@chainsafe/ssz").ByteVectorType;
|
|
1075
|
+
}>;
|
|
1076
|
+
blsToExecutionChanges: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
1077
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
1078
|
+
validatorIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1079
|
+
fromBlsPubkey: import("@chainsafe/ssz").ByteVectorType;
|
|
1080
|
+
toExecutionAddress: import("@lodestar/types").ExecutionAddressType;
|
|
1081
|
+
}>;
|
|
1082
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1083
|
+
}>>;
|
|
1084
|
+
signedExecutionPayloadBid: import("@chainsafe/ssz").ContainerType<{
|
|
1085
|
+
message: import("@chainsafe/ssz").ContainerType<{
|
|
1086
|
+
parentBlockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1087
|
+
parentBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
1088
|
+
blockHash: import("@chainsafe/ssz").ByteVectorType;
|
|
1089
|
+
prevRandao: import("@chainsafe/ssz").ByteVectorType;
|
|
1090
|
+
feeRecipient: import("@lodestar/types").ExecutionAddressType;
|
|
1091
|
+
gasLimit: import("@chainsafe/ssz").UintBigintType;
|
|
1092
|
+
builderIndex: import("@chainsafe/ssz").UintNumberType;
|
|
1093
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
1094
|
+
value: import("@chainsafe/ssz").UintNumberType;
|
|
1095
|
+
executionPayment: import("@chainsafe/ssz").UintNumberType;
|
|
1096
|
+
blobKzgCommitments: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
1097
|
+
}>;
|
|
1098
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1099
|
+
}>;
|
|
1100
|
+
payloadAttestations: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ContainerType<{
|
|
1101
|
+
aggregationBits: import("@chainsafe/ssz").BitVectorType;
|
|
1102
|
+
data: import("@chainsafe/ssz").ContainerType<{
|
|
1103
|
+
beaconBlockRoot: import("@chainsafe/ssz").ByteVectorType;
|
|
1104
|
+
slot: import("@chainsafe/ssz").UintNumberType;
|
|
1105
|
+
payloadPresent: import("@chainsafe/ssz").BooleanType;
|
|
1106
|
+
blobDataAvailable: import("@chainsafe/ssz").BooleanType;
|
|
1107
|
+
}>;
|
|
1108
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
1109
|
+
}>>;
|
|
1110
|
+
}>;
|
|
1111
|
+
}>;
|
|
1112
|
+
signature: import("@chainsafe/ssz").ByteVectorType;
|
|
386
1113
|
}> | import("@chainsafe/ssz").CompositeType<import("@chainsafe/ssz").ValueOfFields<{
|
|
387
1114
|
index: import("@chainsafe/ssz").UintNumberType;
|
|
388
1115
|
column: import("@chainsafe/ssz").ListCompositeType<import("@chainsafe/ssz").ByteVectorType>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic.d.ts","sourceRoot":"","sources":["../../../src/network/gossip/topic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAEL,QAAQ,EAMT,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAC,WAAW,EAAE,iBAAiB,EAAmB,MAAM,iBAAiB,CAAC;AAEjF,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAiB,WAAW,EAAE,kBAAkB,EAAE,UAAU,EAAE,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAEjH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC;CACzC;AAED,qBAAa,gBAAiB,YAAW,iBAAiB;IAG5C,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAF9C,OAAO,CAAC,gBAAgB,CAA4C;IAEpE,YAA6B,iBAAiB,EAAE,iBAAiB,EAAI;IAErE,8EAA8E;IAC9E,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAQtC;IAED,8DAA8D;IAC9D,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEvD;IAED,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,CAInD;CACF;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,KAAK,EAAE,WAAW,GAAG,MAAM,CAKrG;AA8BD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW
|
|
1
|
+
{"version":3,"file":"topic.d.ts","sourceRoot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AAa,EAAE,aAAa,GAC3B,kBAAkB,CAAC,MAAM,kBAAkB,CAAC,EAAE,CAShD;AAgBD,eAAO,MAAM,sCAAsC,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,CAiB9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/network/libp2p/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAMlD,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAKrC,OAAO,EAAC,MAAM,EAAqB,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAC,cAAc,EAAwB,MAAM,eAAe,CAAC;AAGpE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAatG;AAED,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,UAAU,EACtB,WAAW,GAAE,OAAO,CAAC,cAAc,CAAM,EACzC,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/network/libp2p/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAMlD,OAAO,EAAC,QAAQ,EAAC,MAAM,aAAa,CAAC;AAKrC,OAAO,EAAC,MAAM,EAAqB,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAC,cAAc,EAAwB,MAAM,eAAe,CAAC;AAGpE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,QAAQ,CAAC;CAC5B,CAAC;AAEF,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAatG;AAED,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,UAAU,EACtB,WAAW,GAAE,OAAO,CAAC,cAAc,CAAM,EACzC,gBAAgB,GAAE,gBAAqB,GACtC,OAAO,CAAC,MAAM,CAAC,CAmJjB"}
|
|
@@ -28,6 +28,8 @@ export async function getDiscv5Multiaddrs(bootEnrs, quicEnabled) {
|
|
|
28
28
|
export async function createNodeJsLibp2p(privateKey, networkOpts = {}, nodeJsLibp2pOpts = {}) {
|
|
29
29
|
const localMultiaddrs = networkOpts.localMultiaddrs || defaultNetworkOptions.localMultiaddrs;
|
|
30
30
|
const disconnectThreshold = networkOpts.disconnectThreshold ?? defaultNetworkOptions.disconnectThreshold;
|
|
31
|
+
const tcpEnabled = networkOpts.tcp ?? defaultNetworkOptions.tcp;
|
|
32
|
+
const quicEnabled = networkOpts.quic ?? defaultNetworkOptions.quic;
|
|
31
33
|
const { peerStoreDir, disablePeerDiscovery } = nodeJsLibp2pOpts;
|
|
32
34
|
let datastore = undefined;
|
|
33
35
|
if (peerStoreDir) {
|
|
@@ -40,7 +42,7 @@ export async function createNodeJsLibp2p(privateKey, networkOpts = {}, nodeJsLib
|
|
|
40
42
|
...(networkOpts.bootMultiaddrs ?? defaultNetworkOptions.bootMultiaddrs ?? []),
|
|
41
43
|
// Append discv5.bootEnrs to bootMultiaddrs if requested
|
|
42
44
|
...(networkOpts.connectToDiscv5Bootnodes
|
|
43
|
-
? await getDiscv5Multiaddrs(networkOpts.discv5?.bootEnrs ?? [],
|
|
45
|
+
? await getDiscv5Multiaddrs(networkOpts.discv5?.bootEnrs ?? [], quicEnabled)
|
|
44
46
|
: []),
|
|
45
47
|
];
|
|
46
48
|
if ((bootMultiaddrs.length ?? 0) > 0) {
|
|
@@ -51,7 +53,7 @@ export async function createNodeJsLibp2p(privateKey, networkOpts = {}, nodeJsLib
|
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
55
|
const transports = [];
|
|
54
|
-
if (
|
|
56
|
+
if (tcpEnabled) {
|
|
55
57
|
transports.unshift(tcp({
|
|
56
58
|
// Reject connections when the server's connection count gets high
|
|
57
59
|
maxConnections: networkOpts.maxPeers,
|
|
@@ -65,20 +67,24 @@ export async function createNodeJsLibp2p(privateKey, networkOpts = {}, nodeJsLib
|
|
|
65
67
|
},
|
|
66
68
|
}));
|
|
67
69
|
}
|
|
68
|
-
if (
|
|
70
|
+
if (quicEnabled) {
|
|
69
71
|
const quicMultiaddrs = localMultiaddrs.filter((ma) => ma.includes("/quic-v1"));
|
|
70
72
|
const hasIpv4Quic = quicMultiaddrs.some((ma) => ma.includes("/ip4/"));
|
|
71
73
|
const hasIpv6Quic = quicMultiaddrs.some((ma) => ma.includes("/ip6/"));
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
74
|
+
// Only add QUIC transport if at least one QUIC listen address is configured,
|
|
75
|
+
// otherwise the transport constructor will throw
|
|
76
|
+
if (hasIpv4Quic || hasIpv6Quic) {
|
|
77
|
+
transports.unshift(quic({
|
|
78
|
+
handshakeTimeout: 5_000,
|
|
79
|
+
maxIdleTimeout: 10_000,
|
|
80
|
+
keepAliveInterval: 5_000,
|
|
81
|
+
maxConcurrentStreamLimit: 256,
|
|
82
|
+
maxStreamData: 10_000_000,
|
|
83
|
+
maxConnectionData: 15_000_000,
|
|
84
|
+
ipv4: hasIpv4Quic,
|
|
85
|
+
ipv6: hasIpv6Quic,
|
|
86
|
+
}));
|
|
87
|
+
}
|
|
82
88
|
}
|
|
83
89
|
const noiseCrypto = {
|
|
84
90
|
...defaultCrypto,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/network/libp2p/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AAE1C,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AACpC,OAAO,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAC,GAAG,EAAC,MAAM,aAAa,CAAC;AAChC,OAAO,EAAa,YAAY,EAAC,MAAM,QAAQ,CAAC;AAEhD,OAAO,EAAC,GAAG,EAAC,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAE5C,OAAO,EAAiB,qBAAqB,EAAC,MAAM,eAAe,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AASxD,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAC,QAAkB,EAAE,WAAqB,EAAqB;IACtG,MAAM,cAAc,GAAG,EAAE,CAAC;IAC1B,KAAK,MAAM,MAAM,IAAI,QAAQ,EAAE,CAAC;QAC9B,MAAM,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAClC,sCAAsC;QACtC,MAAM,aAAa,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,gBAAgB,CA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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/network/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAC,eAAe,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAG1D,MAAM,WAAW,cACf,SAAQ,eAAe,EAErB,IAAI,CAAC,qBAAqB,EAAE,oBAAoB,GAAG,aAAa,GAAG,0BAA0B,CAAC,EAC9F,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,IAAI,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IACrD,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/network/options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAC,eAAe,EAAE,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAC,oBAAoB,EAAC,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,kBAAkB,EAAC,MAAM,wBAAwB,CAAC;AAG1D,MAAM,WAAW,cACf,SAAQ,eAAe,EAErB,IAAI,CAAC,qBAAqB,EAAE,oBAAoB,GAAG,aAAa,GAAG,0BAA0B,CAAC,EAC9F,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,IAAI,CAAC,iBAAiB,EAAE,0BAA0B,CAAC;IACrD,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;;;;;;;;;;;;;;OAgBG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,eAAO,MAAM,qBAAqB,EAAE,cAiCnC,CAAC"}
|
package/lib/network/options.js
CHANGED
|
@@ -2,7 +2,12 @@ export const defaultNetworkOptions = {
|
|
|
2
2
|
maxPeers: 210, // Allow some room above targetPeers for new inbound peers
|
|
3
3
|
targetPeers: 200,
|
|
4
4
|
// In CLI usage this is typically overridden; when unset it serves as a fallback default (e.g. programmatic usage/tests)
|
|
5
|
-
localMultiaddrs: [
|
|
5
|
+
localMultiaddrs: [
|
|
6
|
+
"/ip4/0.0.0.0/udp/9001/quic-v1",
|
|
7
|
+
"/ip6/::/udp/9001/quic-v1",
|
|
8
|
+
"/ip4/0.0.0.0/tcp/9000",
|
|
9
|
+
"/ip6/::/tcp/9000",
|
|
10
|
+
],
|
|
6
11
|
bootMultiaddrs: [],
|
|
7
12
|
/** disabled by default */
|
|
8
13
|
discv5: null,
|
|
@@ -16,7 +21,7 @@ export const defaultNetworkOptions = {
|
|
|
16
21
|
slotsToSubscribeBeforeAggregatorDuty: 2,
|
|
17
22
|
// This will enable the light client server by default
|
|
18
23
|
disableLightClientServer: false,
|
|
19
|
-
quic:
|
|
24
|
+
quic: true,
|
|
20
25
|
tcp: true,
|
|
21
26
|
// specific option for fulu
|
|
22
27
|
// - this is the same to TARGET_SUBNET_PEERS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/network/options.ts"],"names":[],"mappings":"AAqDA,MAAM,CAAC,MAAM,qBAAqB,GAAmB;IACnD,QAAQ,EAAE,GAAG,EAAE,0DAA0D;IACzE,WAAW,EAAE,GAAG;IAChB,wHAAwH;IACxH,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../src/network/options.ts"],"names":[],"mappings":"AAqDA,MAAM,CAAC,MAAM,qBAAqB,GAAmB;IACnD,QAAQ,EAAE,GAAG,EAAE,0DAA0D;IACzE,WAAW,EAAE,GAAG;IAChB,wHAAwH;IACxH,eAAe,EAAE;QACf,+BAA+B;QAC/B,0BAA0B;QAC1B,uBAAuB;QACvB,kBAAkB;KACnB;IACD,cAAc,EAAE,EAAE;IAClB,0BAA0B;IAC1B,MAAM,EAAE,IAAI;IACZ,mBAAmB,EAAE,CAAC;IACtB,SAAS,EAAE,IAAI;IACf,yFAAyF;IACzF,mBAAmB,EAAE,IAAI;IACzB,gFAAgF;IAChF,wBAAwB,EAAE,GAAG;IAC7B,kGAAkG;IAClG,oCAAoC,EAAE,CAAC;IACvC,sDAAsD;IACtD,wBAAwB,EAAE,KAAK;IAC/B,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,IAAI;IACT,2BAA2B;IAC3B,8CAA8C;IAC9C,yDAAyD;IACzD,2KAA2K;IAC3K,gBAAgB,EAAE,CAAC;IACnB,0EAA0E;IAC1E,gFAAgF;IAChF,mBAAmB,EAAE,EAAE;CACxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"bugs": {
|
|
12
12
|
"url": "https://github.com/ChainSafe/lodestar/issues"
|
|
13
13
|
},
|
|
14
|
-
"version": "1.42.0-dev.
|
|
14
|
+
"version": "1.42.0-dev.9223e0a3eb",
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
@@ -135,18 +135,18 @@
|
|
|
135
135
|
"@libp2p/peer-id": "^6.0.4",
|
|
136
136
|
"@libp2p/prometheus-metrics": "^5.0.14",
|
|
137
137
|
"@libp2p/tcp": "^11.0.13",
|
|
138
|
-
"@lodestar/api": "^1.42.0-dev.
|
|
139
|
-
"@lodestar/config": "^1.42.0-dev.
|
|
140
|
-
"@lodestar/db": "^1.42.0-dev.
|
|
141
|
-
"@lodestar/fork-choice": "^1.42.0-dev.
|
|
142
|
-
"@lodestar/light-client": "^1.42.0-dev.
|
|
143
|
-
"@lodestar/logger": "^1.42.0-dev.
|
|
144
|
-
"@lodestar/params": "^1.42.0-dev.
|
|
145
|
-
"@lodestar/reqresp": "^1.42.0-dev.
|
|
146
|
-
"@lodestar/state-transition": "^1.42.0-dev.
|
|
147
|
-
"@lodestar/types": "^1.42.0-dev.
|
|
148
|
-
"@lodestar/utils": "^1.42.0-dev.
|
|
149
|
-
"@lodestar/validator": "^1.42.0-dev.
|
|
138
|
+
"@lodestar/api": "^1.42.0-dev.9223e0a3eb",
|
|
139
|
+
"@lodestar/config": "^1.42.0-dev.9223e0a3eb",
|
|
140
|
+
"@lodestar/db": "^1.42.0-dev.9223e0a3eb",
|
|
141
|
+
"@lodestar/fork-choice": "^1.42.0-dev.9223e0a3eb",
|
|
142
|
+
"@lodestar/light-client": "^1.42.0-dev.9223e0a3eb",
|
|
143
|
+
"@lodestar/logger": "^1.42.0-dev.9223e0a3eb",
|
|
144
|
+
"@lodestar/params": "^1.42.0-dev.9223e0a3eb",
|
|
145
|
+
"@lodestar/reqresp": "^1.42.0-dev.9223e0a3eb",
|
|
146
|
+
"@lodestar/state-transition": "^1.42.0-dev.9223e0a3eb",
|
|
147
|
+
"@lodestar/types": "^1.42.0-dev.9223e0a3eb",
|
|
148
|
+
"@lodestar/utils": "^1.42.0-dev.9223e0a3eb",
|
|
149
|
+
"@lodestar/validator": "^1.42.0-dev.9223e0a3eb",
|
|
150
150
|
"@multiformats/multiaddr": "^13.0.1",
|
|
151
151
|
"datastore-core": "^11.0.2",
|
|
152
152
|
"datastore-fs": "^11.0.2",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"@libp2p/interface-internal": "^3.0.13",
|
|
170
170
|
"@libp2p/logger": "^6.2.2",
|
|
171
171
|
"@libp2p/utils": "^7.0.13",
|
|
172
|
-
"@lodestar/spec-test-util": "^1.42.0-dev.
|
|
172
|
+
"@lodestar/spec-test-util": "^1.42.0-dev.9223e0a3eb",
|
|
173
173
|
"@types/js-yaml": "^4.0.5",
|
|
174
174
|
"@types/qs": "^6.9.7",
|
|
175
175
|
"@types/tmp": "^0.2.3",
|
|
@@ -186,5 +186,5 @@
|
|
|
186
186
|
"beacon",
|
|
187
187
|
"blockchain"
|
|
188
188
|
],
|
|
189
|
-
"gitHead": "
|
|
189
|
+
"gitHead": "cebec7611ae2d2824b1be25bdbeed67f6848df42"
|
|
190
190
|
}
|
|
@@ -44,6 +44,8 @@ export async function createNodeJsLibp2p(
|
|
|
44
44
|
): Promise<Libp2p> {
|
|
45
45
|
const localMultiaddrs = networkOpts.localMultiaddrs || defaultNetworkOptions.localMultiaddrs;
|
|
46
46
|
const disconnectThreshold = networkOpts.disconnectThreshold ?? defaultNetworkOptions.disconnectThreshold;
|
|
47
|
+
const tcpEnabled = networkOpts.tcp ?? defaultNetworkOptions.tcp;
|
|
48
|
+
const quicEnabled = networkOpts.quic ?? defaultNetworkOptions.quic;
|
|
47
49
|
const {peerStoreDir, disablePeerDiscovery} = nodeJsLibp2pOpts;
|
|
48
50
|
|
|
49
51
|
let datastore: undefined | Eth2PeerDataStore = undefined;
|
|
@@ -58,7 +60,7 @@ export async function createNodeJsLibp2p(
|
|
|
58
60
|
...(networkOpts.bootMultiaddrs ?? defaultNetworkOptions.bootMultiaddrs ?? []),
|
|
59
61
|
// Append discv5.bootEnrs to bootMultiaddrs if requested
|
|
60
62
|
...(networkOpts.connectToDiscv5Bootnodes
|
|
61
|
-
? await getDiscv5Multiaddrs(networkOpts.discv5?.bootEnrs ?? [],
|
|
63
|
+
? await getDiscv5Multiaddrs(networkOpts.discv5?.bootEnrs ?? [], quicEnabled)
|
|
62
64
|
: []),
|
|
63
65
|
];
|
|
64
66
|
|
|
@@ -71,7 +73,7 @@ export async function createNodeJsLibp2p(
|
|
|
71
73
|
}
|
|
72
74
|
}
|
|
73
75
|
const transports: Libp2pInit["transports"] = [];
|
|
74
|
-
if (
|
|
76
|
+
if (tcpEnabled) {
|
|
75
77
|
transports.unshift(
|
|
76
78
|
tcp({
|
|
77
79
|
// Reject connections when the server's connection count gets high
|
|
@@ -87,22 +89,26 @@ export async function createNodeJsLibp2p(
|
|
|
87
89
|
})
|
|
88
90
|
);
|
|
89
91
|
}
|
|
90
|
-
if (
|
|
92
|
+
if (quicEnabled) {
|
|
91
93
|
const quicMultiaddrs = localMultiaddrs.filter((ma) => ma.includes("/quic-v1"));
|
|
92
94
|
const hasIpv4Quic = quicMultiaddrs.some((ma) => ma.includes("/ip4/"));
|
|
93
95
|
const hasIpv6Quic = quicMultiaddrs.some((ma) => ma.includes("/ip6/"));
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
// Only add QUIC transport if at least one QUIC listen address is configured,
|
|
97
|
+
// otherwise the transport constructor will throw
|
|
98
|
+
if (hasIpv4Quic || hasIpv6Quic) {
|
|
99
|
+
transports.unshift(
|
|
100
|
+
quic({
|
|
101
|
+
handshakeTimeout: 5_000,
|
|
102
|
+
maxIdleTimeout: 10_000,
|
|
103
|
+
keepAliveInterval: 5_000,
|
|
104
|
+
maxConcurrentStreamLimit: 256,
|
|
105
|
+
maxStreamData: 10_000_000,
|
|
106
|
+
maxConnectionData: 15_000_000,
|
|
107
|
+
ipv4: hasIpv4Quic,
|
|
108
|
+
ipv6: hasIpv6Quic,
|
|
109
|
+
})
|
|
110
|
+
);
|
|
111
|
+
}
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
const noiseCrypto = {
|
package/src/network/options.ts
CHANGED
|
@@ -55,7 +55,12 @@ export const defaultNetworkOptions: NetworkOptions = {
|
|
|
55
55
|
maxPeers: 210, // Allow some room above targetPeers for new inbound peers
|
|
56
56
|
targetPeers: 200,
|
|
57
57
|
// In CLI usage this is typically overridden; when unset it serves as a fallback default (e.g. programmatic usage/tests)
|
|
58
|
-
localMultiaddrs: [
|
|
58
|
+
localMultiaddrs: [
|
|
59
|
+
"/ip4/0.0.0.0/udp/9001/quic-v1",
|
|
60
|
+
"/ip6/::/udp/9001/quic-v1",
|
|
61
|
+
"/ip4/0.0.0.0/tcp/9000",
|
|
62
|
+
"/ip6/::/tcp/9000",
|
|
63
|
+
],
|
|
59
64
|
bootMultiaddrs: [],
|
|
60
65
|
/** disabled by default */
|
|
61
66
|
discv5: null,
|
|
@@ -69,7 +74,7 @@ export const defaultNetworkOptions: NetworkOptions = {
|
|
|
69
74
|
slotsToSubscribeBeforeAggregatorDuty: 2,
|
|
70
75
|
// This will enable the light client server by default
|
|
71
76
|
disableLightClientServer: false,
|
|
72
|
-
quic:
|
|
77
|
+
quic: true,
|
|
73
78
|
tcp: true,
|
|
74
79
|
// specific option for fulu
|
|
75
80
|
// - this is the same to TARGET_SUBNET_PEERS
|