@lodestar/beacon-node 1.51.0-dev.c99cf49add → 1.51.0-dev.cda05d18f1
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/api/impl/api.js +1 -1
- package/lib/api/impl/api.js.map +1 -1
- package/lib/api/impl/beacon/blocks/index.d.ts +2 -1
- package/lib/api/impl/beacon/blocks/index.d.ts.map +1 -1
- package/lib/api/impl/beacon/blocks/index.js +48 -95
- package/lib/api/impl/beacon/blocks/index.js.map +1 -1
- package/lib/api/impl/beacon/index.d.ts +2 -1
- package/lib/api/impl/beacon/index.d.ts.map +1 -1
- package/lib/api/impl/beacon/index.js +2 -2
- package/lib/api/impl/beacon/index.js.map +1 -1
- package/lib/api/impl/beacon/pool/index.d.ts.map +1 -1
- package/lib/api/impl/beacon/pool/index.js +22 -2
- package/lib/api/impl/beacon/pool/index.js.map +1 -1
- package/lib/api/impl/beacon/state/index.d.ts.map +1 -1
- package/lib/api/impl/beacon/state/index.js +8 -2
- package/lib/api/impl/beacon/state/index.js.map +1 -1
- package/lib/api/impl/beacon/state/utils.d.ts +3 -2
- package/lib/api/impl/beacon/state/utils.d.ts.map +1 -1
- package/lib/api/impl/beacon/state/utils.js +17 -9
- package/lib/api/impl/beacon/state/utils.js.map +1 -1
- package/lib/api/impl/debug/index.d.ts.map +1 -1
- package/lib/api/impl/debug/index.js +3 -0
- package/lib/api/impl/debug/index.js.map +1 -1
- package/lib/api/impl/validator/index.d.ts +6 -0
- package/lib/api/impl/validator/index.d.ts.map +1 -1
- package/lib/api/impl/validator/index.js +143 -35
- package/lib/api/impl/validator/index.js.map +1 -1
- package/lib/api/options.d.ts +2 -0
- package/lib/api/options.d.ts.map +1 -1
- package/lib/api/options.js +1 -0
- package/lib/api/options.js.map +1 -1
- package/lib/chain/ColumnReconstructionTracker.d.ts +11 -11
- package/lib/chain/ColumnReconstructionTracker.d.ts.map +1 -1
- package/lib/chain/ColumnReconstructionTracker.js +46 -40
- package/lib/chain/ColumnReconstructionTracker.js.map +1 -1
- package/lib/chain/GetBlobsTracker.d.ts +13 -2
- package/lib/chain/GetBlobsTracker.d.ts.map +1 -1
- package/lib/chain/GetBlobsTracker.js +69 -35
- package/lib/chain/GetBlobsTracker.js.map +1 -1
- package/lib/chain/archiveStore/archiveStore.d.ts.map +1 -1
- package/lib/chain/archiveStore/archiveStore.js +1 -0
- package/lib/chain/archiveStore/archiveStore.js.map +1 -1
- package/lib/chain/archiveStore/utils/archiveBlocks.d.ts +4 -0
- package/lib/chain/archiveStore/utils/archiveBlocks.d.ts.map +1 -1
- package/lib/chain/archiveStore/utils/archiveBlocks.js +61 -97
- package/lib/chain/archiveStore/utils/archiveBlocks.js.map +1 -1
- package/lib/chain/blocks/blockInput/blockInput.d.ts +11 -56
- package/lib/chain/blocks/blockInput/blockInput.d.ts.map +1 -1
- package/lib/chain/blocks/blockInput/blockInput.js +5 -241
- package/lib/chain/blocks/blockInput/blockInput.js.map +1 -1
- package/lib/chain/blocks/blockInput/errors.d.ts +2 -4
- package/lib/chain/blocks/blockInput/errors.d.ts.map +1 -1
- package/lib/chain/blocks/blockInput/errors.js.map +1 -1
- package/lib/chain/blocks/blockInput/types.d.ts +2 -18
- package/lib/chain/blocks/blockInput/types.d.ts.map +1 -1
- package/lib/chain/blocks/blockInput/types.js +0 -1
- package/lib/chain/blocks/blockInput/types.js.map +1 -1
- package/lib/chain/blocks/importBlock.d.ts.map +1 -1
- package/lib/chain/blocks/importBlock.js +42 -57
- package/lib/chain/blocks/importBlock.js.map +1 -1
- package/lib/chain/blocks/importExecutionPayload.d.ts +10 -11
- package/lib/chain/blocks/importExecutionPayload.d.ts.map +1 -1
- package/lib/chain/blocks/importExecutionPayload.js +82 -20
- package/lib/chain/blocks/importExecutionPayload.js.map +1 -1
- package/lib/chain/blocks/index.d.ts.map +1 -1
- package/lib/chain/blocks/index.js +4 -4
- package/lib/chain/blocks/index.js.map +1 -1
- package/lib/chain/blocks/payloadEnvelopeProcessor.d.ts +12 -9
- package/lib/chain/blocks/payloadEnvelopeProcessor.d.ts.map +1 -1
- package/lib/chain/blocks/payloadEnvelopeProcessor.js +24 -19
- package/lib/chain/blocks/payloadEnvelopeProcessor.js.map +1 -1
- package/lib/chain/blocks/types.d.ts +7 -19
- package/lib/chain/blocks/types.d.ts.map +1 -1
- package/lib/chain/blocks/types.js +5 -24
- package/lib/chain/blocks/types.js.map +1 -1
- package/lib/chain/blocks/verifyBlock.d.ts.map +1 -1
- package/lib/chain/blocks/verifyBlock.js +18 -7
- package/lib/chain/blocks/verifyBlock.js.map +1 -1
- package/lib/chain/blocks/verifyBlocksDataAvailability.d.ts.map +1 -1
- package/lib/chain/blocks/verifyBlocksDataAvailability.js +14 -2
- package/lib/chain/blocks/verifyBlocksDataAvailability.js.map +1 -1
- package/lib/chain/blocks/verifyBlocksExecutionPayloads.d.ts +1 -1
- package/lib/chain/blocks/verifyBlocksExecutionPayloads.d.ts.map +1 -1
- package/lib/chain/blocks/verifyBlocksExecutionPayloads.js +7 -3
- package/lib/chain/blocks/verifyBlocksExecutionPayloads.js.map +1 -1
- package/lib/chain/blocks/verifyBlocksSanityChecks.d.ts.map +1 -1
- package/lib/chain/blocks/verifyBlocksSanityChecks.js +4 -0
- package/lib/chain/blocks/verifyBlocksSanityChecks.js.map +1 -1
- package/lib/chain/blocks/verifyBlocksSignatures.d.ts.map +1 -1
- package/lib/chain/blocks/verifyBlocksSignatures.js +10 -5
- package/lib/chain/blocks/verifyBlocksSignatures.js.map +1 -1
- package/lib/chain/blocks/verifyPayloadsDataAvailability.d.ts +3 -3
- package/lib/chain/blocks/verifyPayloadsDataAvailability.d.ts.map +1 -1
- package/lib/chain/blocks/verifyPayloadsDataAvailability.js +11 -6
- package/lib/chain/blocks/verifyPayloadsDataAvailability.js.map +1 -1
- package/lib/chain/blocks/writeBlockInputToDb.d.ts +0 -2
- package/lib/chain/blocks/writeBlockInputToDb.d.ts.map +1 -1
- package/lib/chain/blocks/writeBlockInputToDb.js +6 -24
- package/lib/chain/blocks/writeBlockInputToDb.js.map +1 -1
- package/lib/chain/bls/interface.d.ts +2 -0
- package/lib/chain/bls/interface.d.ts.map +1 -1
- package/lib/chain/bls/multithread/index.d.ts +1 -1
- package/lib/chain/bls/multithread/index.d.ts.map +1 -1
- package/lib/chain/bls/multithread/index.js +50 -22
- package/lib/chain/bls/multithread/index.js.map +1 -1
- package/lib/chain/bls/multithread/types.d.ts +1 -1
- package/lib/chain/bls/multithread/types.d.ts.map +1 -1
- package/lib/chain/bls/multithread/worker.js +1 -1
- package/lib/chain/bls/multithread/worker.js.map +1 -1
- package/lib/chain/bls/singleThread.js +1 -1
- package/lib/chain/bls/singleThread.js.map +1 -1
- package/lib/chain/bls/utils.js +1 -1
- package/lib/chain/bls/utils.js.map +1 -1
- package/lib/chain/chain.d.ts +26 -4
- package/lib/chain/chain.d.ts.map +1 -1
- package/lib/chain/chain.js +128 -43
- package/lib/chain/chain.js.map +1 -1
- package/lib/chain/emitter.d.ts +7 -7
- package/lib/chain/emitter.d.ts.map +1 -1
- package/lib/chain/emitter.js +5 -5
- package/lib/chain/emitter.js.map +1 -1
- package/lib/chain/errors/blockError.d.ts +1 -1
- package/lib/chain/errors/blockError.d.ts.map +1 -1
- package/lib/chain/errors/blockError.js +1 -1
- package/lib/chain/errors/blockError.js.map +1 -1
- package/lib/chain/errors/executionPayloadBid.d.ts +11 -1
- package/lib/chain/errors/executionPayloadBid.d.ts.map +1 -1
- package/lib/chain/errors/executionPayloadBid.js +2 -0
- package/lib/chain/errors/executionPayloadBid.js.map +1 -1
- package/lib/chain/errors/executionPayloadEnvelope.d.ts +7 -0
- package/lib/chain/errors/executionPayloadEnvelope.d.ts.map +1 -1
- package/lib/chain/errors/executionPayloadEnvelope.js +1 -0
- package/lib/chain/errors/executionPayloadEnvelope.js.map +1 -1
- package/lib/chain/errors/inclusionList.d.ts +60 -0
- package/lib/chain/errors/inclusionList.d.ts.map +1 -0
- package/lib/chain/errors/inclusionList.js +19 -0
- package/lib/chain/errors/inclusionList.js.map +1 -0
- package/lib/chain/errors/index.d.ts +1 -1
- package/lib/chain/errors/index.d.ts.map +1 -1
- package/lib/chain/errors/index.js +1 -1
- package/lib/chain/errors/index.js.map +1 -1
- package/lib/chain/forkChoice/index.d.ts +11 -1
- package/lib/chain/forkChoice/index.d.ts.map +1 -1
- package/lib/chain/forkChoice/index.js +11 -0
- package/lib/chain/forkChoice/index.js.map +1 -1
- package/lib/chain/forkChoiceExecutionEngine.d.ts +51 -0
- package/lib/chain/forkChoiceExecutionEngine.d.ts.map +1 -0
- package/lib/chain/forkChoiceExecutionEngine.js +117 -0
- package/lib/chain/forkChoiceExecutionEngine.js.map +1 -0
- package/lib/chain/interface.d.ts +10 -7
- package/lib/chain/interface.d.ts.map +1 -1
- package/lib/chain/interface.js.map +1 -1
- package/lib/chain/opPools/aggregatedAttestationPool.d.ts +17 -4
- package/lib/chain/opPools/aggregatedAttestationPool.d.ts.map +1 -1
- package/lib/chain/opPools/aggregatedAttestationPool.js +199 -46
- package/lib/chain/opPools/aggregatedAttestationPool.js.map +1 -1
- package/lib/chain/opPools/attestationPool.d.ts +1 -1
- package/lib/chain/opPools/attestationPool.d.ts.map +1 -1
- package/lib/chain/opPools/attestationPool.js +15 -4
- package/lib/chain/opPools/attestationPool.js.map +1 -1
- package/lib/chain/opPools/inclusionListStore.d.ts +63 -0
- package/lib/chain/opPools/inclusionListStore.d.ts.map +1 -0
- package/lib/chain/opPools/inclusionListStore.js +171 -0
- package/lib/chain/opPools/inclusionListStore.js.map +1 -0
- package/lib/chain/opPools/index.d.ts +2 -0
- package/lib/chain/opPools/index.d.ts.map +1 -1
- package/lib/chain/opPools/index.js +2 -0
- package/lib/chain/opPools/index.js.map +1 -1
- package/lib/chain/opPools/payloadAttestationPool.d.ts.map +1 -1
- package/lib/chain/opPools/payloadAttestationPool.js +17 -7
- package/lib/chain/opPools/payloadAttestationPool.js.map +1 -1
- package/lib/chain/opPools/singleAttestationPool.d.ts +77 -0
- package/lib/chain/opPools/singleAttestationPool.d.ts.map +1 -0
- package/lib/chain/opPools/singleAttestationPool.js +209 -0
- package/lib/chain/opPools/singleAttestationPool.js.map +1 -0
- package/lib/chain/opPools/syncCommitteeMessagePool.d.ts.map +1 -1
- package/lib/chain/opPools/syncCommitteeMessagePool.js +9 -3
- package/lib/chain/opPools/syncCommitteeMessagePool.js.map +1 -1
- package/lib/chain/opPools/syncContributionAndProofPool.d.ts.map +1 -1
- package/lib/chain/opPools/syncContributionAndProofPool.js +11 -3
- package/lib/chain/opPools/syncContributionAndProofPool.js.map +1 -1
- package/lib/chain/opPools/utils.d.ts +1 -1
- package/lib/chain/opPools/utils.d.ts.map +1 -1
- package/lib/chain/opPools/utils.js +1 -1
- package/lib/chain/opPools/utils.js.map +1 -1
- package/lib/chain/options.d.ts +5 -3
- package/lib/chain/options.d.ts.map +1 -1
- package/lib/chain/options.js +0 -1
- package/lib/chain/options.js.map +1 -1
- package/lib/chain/produceBlock/produceBlockBody.d.ts +6 -3
- package/lib/chain/produceBlock/produceBlockBody.d.ts.map +1 -1
- package/lib/chain/produceBlock/produceBlockBody.js +32 -11
- package/lib/chain/produceBlock/produceBlockBody.js.map +1 -1
- package/lib/chain/proposerTracker.d.ts +31 -0
- package/lib/chain/proposerTracker.d.ts.map +1 -0
- package/lib/chain/proposerTracker.js +75 -0
- package/lib/chain/proposerTracker.js.map +1 -0
- package/lib/chain/regen/interface.d.ts +2 -2
- package/lib/chain/regen/interface.d.ts.map +1 -1
- package/lib/chain/regen/interface.js +1 -1
- package/lib/chain/regen/interface.js.map +1 -1
- package/lib/chain/regen/queued.d.ts +1 -1
- package/lib/chain/regen/queued.d.ts.map +1 -1
- package/lib/chain/regen/queued.js +5 -3
- package/lib/chain/regen/queued.js.map +1 -1
- package/lib/chain/seenCache/seenGossipBlockInput.d.ts +7 -14
- package/lib/chain/seenCache/seenGossipBlockInput.d.ts.map +1 -1
- package/lib/chain/seenCache/seenGossipBlockInput.js +6 -65
- package/lib/chain/seenCache/seenGossipBlockInput.js.map +1 -1
- package/lib/chain/validation/executionPayloadBid.d.ts +0 -15
- package/lib/chain/validation/executionPayloadBid.d.ts.map +1 -1
- package/lib/chain/validation/executionPayloadBid.js +37 -158
- package/lib/chain/validation/executionPayloadBid.js.map +1 -1
- package/lib/chain/validation/executionPayloadEnvelope.d.ts +6 -0
- package/lib/chain/validation/executionPayloadEnvelope.d.ts.map +1 -1
- package/lib/chain/validation/executionPayloadEnvelope.js +53 -0
- package/lib/chain/validation/executionPayloadEnvelope.js.map +1 -1
- package/lib/chain/validation/inclusionList.d.ts +14 -0
- package/lib/chain/validation/inclusionList.d.ts.map +1 -0
- package/lib/chain/validation/inclusionList.js +150 -0
- package/lib/chain/validation/inclusionList.js.map +1 -0
- package/lib/chain/validation/index.d.ts +1 -0
- package/lib/chain/validation/index.d.ts.map +1 -1
- package/lib/chain/validation/index.js +1 -0
- package/lib/chain/validation/index.js.map +1 -1
- package/lib/chain/validation/syncCommittee.d.ts.map +1 -1
- package/lib/chain/validation/syncCommittee.js +16 -10
- package/lib/chain/validation/syncCommittee.js.map +1 -1
- package/lib/chain/validation/syncCommitteeContributionAndProof.d.ts.map +1 -1
- package/lib/chain/validation/syncCommitteeContributionAndProof.js +11 -0
- package/lib/chain/validation/syncCommitteeContributionAndProof.js.map +1 -1
- package/lib/chain/validatorMonitor.d.ts +1 -2
- package/lib/chain/validatorMonitor.d.ts.map +1 -1
- package/lib/chain/validatorMonitor.js +0 -3
- package/lib/chain/validatorMonitor.js.map +1 -1
- package/lib/db/beacon.d.ts +7 -0
- package/lib/db/beacon.d.ts.map +1 -1
- package/lib/db/beacon.js +34 -0
- package/lib/db/beacon.js.map +1 -1
- package/lib/db/dataColumnStore.d.ts +1 -1
- package/lib/db/dataColumnStore.d.ts.map +1 -1
- package/lib/db/dataColumnStore.js +1 -4
- package/lib/db/dataColumnStore.js.map +1 -1
- package/lib/db/flatFileStore/flatFileStore.js +5 -5
- package/lib/db/flatFileStore/flatFileStore.js.map +1 -1
- package/lib/db/flatFileStore/slotIndex.d.ts.map +1 -1
- package/lib/db/flatFileStore/slotIndex.js +2 -2
- package/lib/db/flatFileStore/slotIndex.js.map +1 -1
- package/lib/db/interface.d.ts +1 -0
- package/lib/db/interface.d.ts.map +1 -1
- package/lib/db/repositories/blobSidecars.d.ts +0 -1
- package/lib/db/repositories/blobSidecars.d.ts.map +1 -1
- package/lib/db/repositories/blobSidecars.js +0 -1
- package/lib/db/repositories/blobSidecars.js.map +1 -1
- package/lib/db/repositories/dataColumnSidecarArchive.d.ts +6 -0
- package/lib/db/repositories/dataColumnSidecarArchive.d.ts.map +1 -1
- package/lib/db/repositories/dataColumnSidecarArchive.js +19 -0
- package/lib/db/repositories/dataColumnSidecarArchive.js.map +1 -1
- package/lib/execution/builder/apiClient.d.ts +14 -8
- package/lib/execution/builder/apiClient.d.ts.map +1 -1
- package/lib/execution/builder/apiClient.js +12 -10
- package/lib/execution/builder/apiClient.js.map +1 -1
- package/lib/execution/builder/http.d.ts +2 -0
- package/lib/execution/builder/http.d.ts.map +1 -1
- package/lib/execution/builder/http.js +2 -0
- package/lib/execution/builder/http.js.map +1 -1
- package/lib/execution/builder/validateBid.d.ts.map +1 -1
- package/lib/execution/builder/validateBid.js +14 -1
- package/lib/execution/builder/validateBid.js.map +1 -1
- package/lib/execution/engine/blobVersionedHashes.d.ts +1 -1
- package/lib/execution/engine/blobVersionedHashes.d.ts.map +1 -1
- package/lib/execution/engine/blobVersionedHashes.js.map +1 -1
- package/lib/execution/engine/disabled.d.ts +1 -0
- package/lib/execution/engine/disabled.d.ts.map +1 -1
- package/lib/execution/engine/disabled.js +3 -0
- package/lib/execution/engine/disabled.js.map +1 -1
- package/lib/execution/engine/http.d.ts +12 -8
- package/lib/execution/engine/http.d.ts.map +1 -1
- package/lib/execution/engine/http.js +35 -14
- package/lib/execution/engine/http.js.map +1 -1
- package/lib/execution/engine/index.d.ts +1 -1
- package/lib/execution/engine/index.d.ts.map +1 -1
- package/lib/execution/engine/index.js +1 -1
- package/lib/execution/engine/index.js.map +1 -1
- package/lib/execution/engine/interface.d.ts +29 -8
- package/lib/execution/engine/interface.d.ts.map +1 -1
- package/lib/execution/engine/interface.js.map +1 -1
- package/lib/execution/engine/jsonRpcTransport.d.ts +5 -6
- package/lib/execution/engine/jsonRpcTransport.d.ts.map +1 -1
- package/lib/execution/engine/jsonRpcTransport.js +34 -20
- package/lib/execution/engine/jsonRpcTransport.js.map +1 -1
- package/lib/execution/engine/mock.d.ts +1 -1
- package/lib/execution/engine/mock.d.ts.map +1 -1
- package/lib/execution/engine/mock.js +31 -11
- package/lib/execution/engine/mock.js.map +1 -1
- package/lib/execution/engine/payloadIdCache.d.ts +5 -3
- package/lib/execution/engine/payloadIdCache.d.ts.map +1 -1
- package/lib/execution/engine/payloadIdCache.js +15 -4
- package/lib/execution/engine/payloadIdCache.js.map +1 -1
- package/lib/execution/engine/restTransport.d.ts +4 -5
- package/lib/execution/engine/restTransport.d.ts.map +1 -1
- package/lib/execution/engine/restTransport.js +4 -15
- package/lib/execution/engine/restTransport.js.map +1 -1
- package/lib/execution/engine/sszTypes.d.ts +38 -47
- package/lib/execution/engine/sszTypes.d.ts.map +1 -1
- package/lib/execution/engine/sszTypes.js +0 -5
- package/lib/execution/engine/sszTypes.js.map +1 -1
- package/lib/execution/engine/transport.d.ts +4 -14
- package/lib/execution/engine/transport.d.ts.map +1 -1
- package/lib/execution/engine/types.d.ts +25 -9
- package/lib/execution/engine/types.d.ts.map +1 -1
- package/lib/execution/engine/types.js +19 -14
- package/lib/execution/engine/types.js.map +1 -1
- package/lib/execution/engine/utils.d.ts.map +1 -1
- package/lib/execution/engine/utils.js +3 -2
- package/lib/execution/engine/utils.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/metrics/metrics/beacon.d.ts +16 -9
- package/lib/metrics/metrics/beacon.d.ts.map +1 -1
- package/lib/metrics/metrics/beacon.js +35 -30
- package/lib/metrics/metrics/beacon.js.map +1 -1
- package/lib/metrics/metrics/lodestar.d.ts +49 -8
- package/lib/metrics/metrics/lodestar.d.ts.map +1 -1
- package/lib/metrics/metrics/lodestar.js +128 -18
- package/lib/metrics/metrics/lodestar.js.map +1 -1
- package/lib/metrics/server/http.js +5 -5
- package/lib/metrics/server/http.js.map +1 -1
- package/lib/monitoring/service.js +1 -1
- package/lib/monitoring/service.js.map +1 -1
- package/lib/network/core/networkCore.d.ts +4 -1
- package/lib/network/core/networkCore.d.ts.map +1 -1
- package/lib/network/core/networkCore.js +7 -0
- package/lib/network/core/networkCore.js.map +1 -1
- package/lib/network/core/networkCoreWorker.js +2 -0
- package/lib/network/core/networkCoreWorker.js.map +1 -1
- package/lib/network/core/networkCoreWorkerHandler.d.ts +4 -1
- package/lib/network/core/networkCoreWorkerHandler.d.ts.map +1 -1
- package/lib/network/core/networkCoreWorkerHandler.js +6 -0
- package/lib/network/core/networkCoreWorkerHandler.js.map +1 -1
- package/lib/network/core/types.d.ts +6 -1
- package/lib/network/core/types.d.ts.map +1 -1
- package/lib/network/gossip/gossipsub.d.ts +1 -0
- package/lib/network/gossip/gossipsub.d.ts.map +1 -1
- package/lib/network/gossip/gossipsub.js +10 -0
- package/lib/network/gossip/gossipsub.js.map +1 -1
- package/lib/network/gossip/interface.d.ts +8 -9
- package/lib/network/gossip/interface.d.ts.map +1 -1
- package/lib/network/gossip/interface.js +1 -1
- package/lib/network/gossip/interface.js.map +1 -1
- package/lib/network/gossip/topic.d.ts +13 -21
- package/lib/network/gossip/topic.d.ts.map +1 -1
- package/lib/network/gossip/topic.js +13 -24
- package/lib/network/gossip/topic.js.map +1 -1
- package/lib/network/interface.d.ts +5 -5
- package/lib/network/interface.d.ts.map +1 -1
- package/lib/network/libp2p/index.d.ts.map +1 -1
- package/lib/network/libp2p/index.js +5 -1
- package/lib/network/libp2p/index.js.map +1 -1
- package/lib/network/network.d.ts +9 -7
- package/lib/network/network.d.ts.map +1 -1
- package/lib/network/network.js +58 -35
- package/lib/network/network.js.map +1 -1
- package/lib/network/options.d.ts +2 -0
- package/lib/network/options.d.ts.map +1 -1
- package/lib/network/options.js +2 -0
- package/lib/network/options.js.map +1 -1
- package/lib/network/peers/peerManager.d.ts +2 -1
- package/lib/network/peers/peerManager.d.ts.map +1 -1
- package/lib/network/peers/peerManager.js +28 -1
- package/lib/network/peers/peerManager.js.map +1 -1
- package/lib/network/peers/utils/assertPeerRelevance.d.ts +9 -1
- package/lib/network/peers/utils/assertPeerRelevance.d.ts.map +1 -1
- package/lib/network/peers/utils/assertPeerRelevance.js +32 -21
- package/lib/network/peers/utils/assertPeerRelevance.js.map +1 -1
- package/lib/network/peers/utils/enrSubnetsDeserialize.d.ts.map +1 -1
- package/lib/network/peers/utils/enrSubnetsDeserialize.js +5 -2
- package/lib/network/peers/utils/enrSubnetsDeserialize.js.map +1 -1
- package/lib/network/peers/utils/prioritizePeers.d.ts +4 -1
- package/lib/network/peers/utils/prioritizePeers.d.ts.map +1 -1
- package/lib/network/peers/utils/prioritizePeers.js +8 -16
- package/lib/network/peers/utils/prioritizePeers.js.map +1 -1
- package/lib/network/peers/utils/subnetMap.d.ts +5 -2
- package/lib/network/peers/utils/subnetMap.d.ts.map +1 -1
- package/lib/network/peers/utils/subnetMap.js +6 -3
- package/lib/network/peers/utils/subnetMap.js.map +1 -1
- package/lib/network/processor/extractSlotRootFns.d.ts.map +1 -1
- package/lib/network/processor/extractSlotRootFns.js +1 -8
- package/lib/network/processor/extractSlotRootFns.js.map +1 -1
- package/lib/network/processor/gossipHandlers.d.ts.map +1 -1
- package/lib/network/processor/gossipHandlers.js +118 -149
- package/lib/network/processor/gossipHandlers.js.map +1 -1
- package/lib/network/processor/gossipQueues/index.js +6 -6
- package/lib/network/processor/gossipQueues/index.js.map +1 -1
- package/lib/network/processor/gossipValidatorFn.js +5 -5
- package/lib/network/processor/gossipValidatorFn.js.map +1 -1
- package/lib/network/processor/index.d.ts +11 -0
- package/lib/network/processor/index.d.ts.map +1 -1
- package/lib/network/processor/index.js +66 -30
- package/lib/network/processor/index.js.map +1 -1
- package/lib/network/reqresp/ReqRespBeaconNode.js +6 -3
- package/lib/network/reqresp/ReqRespBeaconNode.js.map +1 -1
- package/lib/network/reqresp/handlers/beaconBlocksByRange.d.ts +2 -2
- package/lib/network/reqresp/handlers/beaconBlocksByRange.d.ts.map +1 -1
- package/lib/network/reqresp/handlers/inclusionListsByIndices.d.ts +10 -0
- package/lib/network/reqresp/handlers/inclusionListsByIndices.d.ts.map +1 -0
- package/lib/network/reqresp/handlers/inclusionListsByIndices.js +30 -0
- package/lib/network/reqresp/handlers/inclusionListsByIndices.js.map +1 -0
- package/lib/network/reqresp/handlers/index.d.ts.map +1 -1
- package/lib/network/reqresp/handlers/index.js +6 -12
- package/lib/network/reqresp/handlers/index.js.map +1 -1
- package/lib/network/reqresp/protocols.d.ts +1 -2
- package/lib/network/reqresp/protocols.d.ts.map +1 -1
- package/lib/network/reqresp/protocols.js +5 -10
- package/lib/network/reqresp/protocols.js.map +1 -1
- package/lib/network/reqresp/rateLimit.d.ts.map +1 -1
- package/lib/network/reqresp/rateLimit.js +5 -17
- package/lib/network/reqresp/rateLimit.js.map +1 -1
- package/lib/network/reqresp/types.d.ts +6 -9
- package/lib/network/reqresp/types.d.ts.map +1 -1
- package/lib/network/reqresp/types.js +4 -7
- package/lib/network/reqresp/types.js.map +1 -1
- package/lib/network/subnets/attnetsService.d.ts +35 -5
- package/lib/network/subnets/attnetsService.d.ts.map +1 -1
- package/lib/network/subnets/attnetsService.js +84 -6
- package/lib/network/subnets/attnetsService.js.map +1 -1
- package/lib/network/subnets/interface.d.ts +7 -0
- package/lib/network/subnets/interface.d.ts.map +1 -1
- package/lib/network/subnets/interface.js.map +1 -1
- package/lib/node/nodejs.d.ts +3 -1
- package/lib/node/nodejs.d.ts.map +1 -1
- package/lib/node/nodejs.js +47 -21
- package/lib/node/nodejs.js.map +1 -1
- package/lib/node/options.d.ts +3 -1
- package/lib/node/options.d.ts.map +1 -1
- package/lib/node/options.js +4 -2
- package/lib/node/options.js.map +1 -1
- package/lib/sync/interface.d.ts.map +1 -1
- package/lib/sync/interface.js.map +1 -1
- package/lib/sync/range/batch.d.ts +2 -3
- package/lib/sync/range/batch.d.ts.map +1 -1
- package/lib/sync/range/batch.js +9 -22
- package/lib/sync/range/batch.js.map +1 -1
- package/lib/sync/range/chain.d.ts.map +1 -1
- package/lib/sync/range/chain.js +2 -15
- package/lib/sync/range/chain.js.map +1 -1
- package/lib/sync/sync.d.ts +15 -0
- package/lib/sync/sync.d.ts.map +1 -1
- package/lib/sync/sync.js +103 -25
- package/lib/sync/sync.js.map +1 -1
- package/lib/sync/unknownBlock.d.ts.map +1 -1
- package/lib/sync/unknownBlock.js +43 -25
- package/lib/sync/unknownBlock.js.map +1 -1
- package/lib/sync/utils/downloadByRange.d.ts +6 -34
- package/lib/sync/utils/downloadByRange.d.ts.map +1 -1
- package/lib/sync/utils/downloadByRange.js +24 -128
- package/lib/sync/utils/downloadByRange.js.map +1 -1
- package/lib/sync/utils/downloadByRoot.d.ts +2 -18
- package/lib/sync/utils/downloadByRoot.d.ts.map +1 -1
- package/lib/sync/utils/downloadByRoot.js +14 -99
- package/lib/sync/utils/downloadByRoot.js.map +1 -1
- package/lib/util/blobs.d.ts +1 -7
- package/lib/util/blobs.d.ts.map +1 -1
- package/lib/util/blobs.js +0 -19
- package/lib/util/blobs.js.map +1 -1
- package/lib/util/execution.d.ts +3 -4
- package/lib/util/execution.d.ts.map +1 -1
- package/lib/util/execution.js +1 -73
- package/lib/util/execution.js.map +1 -1
- package/lib/util/file.d.ts.map +1 -1
- package/lib/util/file.js +8 -9
- package/lib/util/file.js.map +1 -1
- package/lib/util/queue/itemQueue.js +1 -1
- package/lib/util/queue/itemQueue.js.map +1 -1
- package/lib/util/sszBytes.d.ts +5 -1
- package/lib/util/sszBytes.d.ts.map +1 -1
- package/lib/util/sszBytes.js +36 -19
- package/lib/util/sszBytes.js.map +1 -1
- package/lib/util/types.d.ts +0 -5
- package/lib/util/types.d.ts.map +1 -1
- package/lib/util/types.js +1 -2
- package/lib/util/types.js.map +1 -1
- package/package.json +31 -32
- package/src/api/impl/api.ts +1 -1
- package/src/api/impl/beacon/blocks/index.ts +81 -126
- package/src/api/impl/beacon/index.ts +3 -1
- package/src/api/impl/beacon/pool/index.ts +31 -1
- package/src/api/impl/beacon/state/index.ts +10 -1
- package/src/api/impl/beacon/state/utils.ts +20 -10
- package/src/api/impl/debug/index.ts +4 -0
- package/src/api/impl/validator/index.ts +178 -39
- package/src/api/options.ts +3 -0
- package/src/chain/ColumnReconstructionTracker.ts +60 -41
- package/src/chain/GetBlobsTracker.ts +82 -52
- package/src/chain/archiveStore/archiveStore.ts +1 -0
- package/src/chain/archiveStore/utils/archiveBlocks.ts +76 -130
- package/src/chain/blocks/blockInput/blockInput.ts +11 -343
- package/src/chain/blocks/blockInput/errors.ts +1 -2
- package/src/chain/blocks/blockInput/types.ts +2 -20
- package/src/chain/blocks/importBlock.ts +58 -77
- package/src/chain/blocks/importExecutionPayload.ts +123 -36
- package/src/chain/blocks/index.ts +11 -4
- package/src/chain/blocks/payloadEnvelopeProcessor.ts +35 -24
- package/src/chain/blocks/types.ts +8 -29
- package/src/chain/blocks/verifyBlock.ts +31 -16
- package/src/chain/blocks/verifyBlocksDataAvailability.ts +16 -2
- package/src/chain/blocks/verifyBlocksExecutionPayloads.ts +9 -6
- package/src/chain/blocks/verifyBlocksSanityChecks.ts +4 -1
- package/src/chain/blocks/verifyBlocksSignatures.ts +10 -5
- package/src/chain/blocks/verifyPayloadsDataAvailability.ts +14 -6
- package/src/chain/blocks/writeBlockInputToDb.ts +6 -29
- package/src/chain/bls/interface.ts +2 -0
- package/src/chain/bls/multithread/index.ts +48 -24
- package/src/chain/bls/multithread/types.ts +1 -1
- package/src/chain/bls/multithread/worker.ts +1 -5
- package/src/chain/bls/singleThread.ts +1 -1
- package/src/chain/bls/utils.ts +1 -1
- package/src/chain/chain.ts +145 -42
- package/src/chain/emitter.ts +8 -8
- package/src/chain/errors/blockError.ts +1 -1
- package/src/chain/errors/executionPayloadBid.ts +12 -0
- package/src/chain/errors/executionPayloadEnvelope.ts +8 -0
- package/src/chain/errors/inclusionList.ts +38 -0
- package/src/chain/errors/index.ts +1 -1
- package/src/chain/forkChoice/index.ts +11 -0
- package/src/chain/forkChoiceExecutionEngine.ts +183 -0
- package/src/chain/interface.ts +11 -6
- package/src/chain/opPools/aggregatedAttestationPool.ts +246 -43
- package/src/chain/opPools/attestationPool.ts +16 -4
- package/src/chain/opPools/inclusionListStore.ts +208 -0
- package/src/chain/opPools/index.ts +2 -0
- package/src/chain/opPools/payloadAttestationPool.ts +18 -7
- package/src/chain/opPools/singleAttestationPool.ts +287 -0
- package/src/chain/opPools/syncCommitteeMessagePool.ts +10 -3
- package/src/chain/opPools/syncContributionAndProofPool.ts +13 -3
- package/src/chain/opPools/utils.ts +1 -1
- package/src/chain/options.ts +5 -4
- package/src/chain/produceBlock/produceBlockBody.ts +67 -22
- package/src/chain/proposerTracker.ts +94 -0
- package/src/chain/regen/interface.ts +2 -2
- package/src/chain/regen/queued.ts +6 -4
- package/src/chain/seenCache/seenGossipBlockInput.ts +9 -93
- package/src/chain/validation/executionPayloadBid.ts +54 -183
- package/src/chain/validation/executionPayloadEnvelope.ts +68 -1
- package/src/chain/validation/inclusionList.ts +192 -0
- package/src/chain/validation/index.ts +1 -0
- package/src/chain/validation/syncCommittee.ts +31 -15
- package/src/chain/validation/syncCommitteeContributionAndProof.ts +13 -0
- package/src/chain/validatorMonitor.ts +0 -6
- package/src/db/beacon.ts +44 -0
- package/src/db/dataColumnStore.ts +2 -4
- package/src/db/flatFileStore/flatFileStore.ts +7 -7
- package/src/db/flatFileStore/slotIndex.ts +4 -3
- package/src/db/interface.ts +2 -0
- package/src/db/repositories/blobSidecars.ts +0 -1
- package/src/db/repositories/dataColumnSidecarArchive.ts +20 -0
- package/src/execution/builder/apiClient.ts +16 -13
- package/src/execution/builder/http.ts +4 -0
- package/src/execution/builder/validateBid.ts +23 -2
- package/src/execution/engine/blobVersionedHashes.ts +1 -1
- package/src/execution/engine/disabled.ts +4 -0
- package/src/execution/engine/http.ts +59 -47
- package/src/execution/engine/index.ts +1 -1
- package/src/execution/engine/interface.ts +46 -13
- package/src/execution/engine/jsonRpcTransport.ts +56 -31
- package/src/execution/engine/mock.ts +32 -14
- package/src/execution/engine/payloadIdCache.ts +24 -6
- package/src/execution/engine/restTransport.ts +18 -23
- package/src/execution/engine/sszTypes.ts +0 -9
- package/src/execution/engine/transport.ts +13 -17
- package/src/execution/engine/types.ts +44 -24
- package/src/execution/engine/utils.ts +4 -2
- package/src/index.ts +2 -0
- package/src/metrics/metrics/beacon.ts +37 -30
- package/src/metrics/metrics/lodestar.ts +131 -18
- package/src/metrics/server/http.ts +5 -5
- package/src/monitoring/service.ts +1 -1
- package/src/network/core/networkCore.ts +11 -1
- package/src/network/core/networkCoreWorker.ts +2 -0
- package/src/network/core/networkCoreWorkerHandler.ts +8 -1
- package/src/network/core/types.ts +6 -1
- package/src/network/gossip/gossipsub.ts +11 -0
- package/src/network/gossip/interface.ts +5 -5
- package/src/network/gossip/topic.ts +14 -25
- package/src/network/interface.ts +4 -5
- package/src/network/libp2p/index.ts +5 -1
- package/src/network/network.ts +66 -58
- package/src/network/options.ts +4 -0
- package/src/network/peers/peerManager.ts +28 -3
- package/src/network/peers/utils/assertPeerRelevance.ts +39 -23
- package/src/network/peers/utils/enrSubnetsDeserialize.ts +5 -2
- package/src/network/peers/utils/prioritizePeers.ts +14 -22
- package/src/network/peers/utils/subnetMap.ts +6 -3
- package/src/network/processor/extractSlotRootFns.ts +0 -9
- package/src/network/processor/gossipHandlers.ts +150 -183
- package/src/network/processor/gossipQueues/index.ts +6 -6
- package/src/network/processor/gossipValidatorFn.ts +5 -5
- package/src/network/processor/index.ts +58 -28
- package/src/network/processor/types.ts +1 -1
- package/src/network/reqresp/ReqRespBeaconNode.ts +7 -7
- package/src/network/reqresp/handlers/beaconBlocksByRange.ts +2 -2
- package/src/network/reqresp/handlers/inclusionListsByIndices.ts +44 -0
- package/src/network/reqresp/handlers/index.ts +5 -17
- package/src/network/reqresp/protocols.ts +6 -12
- package/src/network/reqresp/rateLimit.ts +5 -17
- package/src/network/reqresp/types.ts +6 -13
- package/src/network/subnets/attnetsService.ts +94 -6
- package/src/network/subnets/interface.ts +7 -0
- package/src/node/nodejs.ts +58 -22
- package/src/node/options.ts +9 -6
- package/src/sync/interface.ts +1 -0
- package/src/sync/range/batch.ts +9 -21
- package/src/sync/range/chain.ts +2 -14
- package/src/sync/sync.ts +108 -26
- package/src/sync/unknownBlock.ts +48 -36
- package/src/sync/utils/downloadByRange.ts +31 -230
- package/src/sync/utils/downloadByRoot.ts +15 -142
- package/src/util/blobs.ts +0 -34
- package/src/util/execution.ts +8 -102
- package/src/util/file.ts +8 -9
- package/src/util/queue/itemQueue.ts +1 -1
- package/src/util/sszBytes.ts +42 -24
- package/src/util/types.ts +1 -8
- package/lib/chain/errors/blobSidecarError.d.ts +0 -108
- package/lib/chain/errors/blobSidecarError.d.ts.map +0 -1
- package/lib/chain/errors/blobSidecarError.js +0 -38
- package/lib/chain/errors/blobSidecarError.js.map +0 -1
- package/lib/chain/validation/blobSidecar.d.ts +0 -16
- package/lib/chain/validation/blobSidecar.d.ts.map +0 -1
- package/lib/chain/validation/blobSidecar.js +0 -276
- package/lib/chain/validation/blobSidecar.js.map +0 -1
- package/lib/network/reqresp/handlers/blobSidecarsByRange.d.ts +0 -9
- package/lib/network/reqresp/handlers/blobSidecarsByRange.d.ts.map +0 -1
- package/lib/network/reqresp/handlers/blobSidecarsByRange.js +0 -91
- package/lib/network/reqresp/handlers/blobSidecarsByRange.js.map +0 -1
- package/lib/network/reqresp/handlers/blobSidecarsByRoot.d.ts +0 -5
- package/lib/network/reqresp/handlers/blobSidecarsByRoot.d.ts.map +0 -1
- package/lib/network/reqresp/handlers/blobSidecarsByRoot.js +0 -46
- package/lib/network/reqresp/handlers/blobSidecarsByRoot.js.map +0 -1
- package/src/chain/errors/blobSidecarError.ts +0 -70
- package/src/chain/validation/blobSidecar.ts +0 -357
- package/src/network/reqresp/handlers/blobSidecarsByRange.ts +0 -133
- package/src/network/reqresp/handlers/blobSidecarsByRoot.ts +0 -69
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
sszTypesFor,
|
|
38
38
|
} from "@lodestar/types";
|
|
39
39
|
import {fromHex, prettyGweiToEth, sleep, toHex, toRootHex} from "@lodestar/utils";
|
|
40
|
-
import {BlockInputSource,
|
|
40
|
+
import {BlockInputSource, isBlockInputColumns} from "../../../../chain/blocks/blockInput/index.js";
|
|
41
41
|
import {PayloadEnvelopeInputSource} from "../../../../chain/blocks/payloadEnvelopeInput/index.js";
|
|
42
42
|
import {ImportBlockOpts} from "../../../../chain/blocks/types.js";
|
|
43
43
|
import {verifyBlocksInEpoch} from "../../../../chain/blocks/verifyBlock.js";
|
|
@@ -62,12 +62,11 @@ import {
|
|
|
62
62
|
} from "../../../../chain/produceBlock/index.js";
|
|
63
63
|
import {RegenCaller} from "../../../../chain/regen/index.js";
|
|
64
64
|
import {validateGossipBlock, verifyBlockProposerSignature} from "../../../../chain/validation/block.js";
|
|
65
|
-
import {
|
|
65
|
+
import {validateGossipExecutionPayloadBid} from "../../../../chain/validation/executionPayloadBid.js";
|
|
66
66
|
import {validateApiExecutionPayloadEnvelope} from "../../../../chain/validation/executionPayloadEnvelope.js";
|
|
67
67
|
import {OpSource} from "../../../../chain/validatorMonitor.js";
|
|
68
68
|
import {
|
|
69
69
|
computePreFuluKzgCommitmentsInclusionProof,
|
|
70
|
-
getBlobSidecars,
|
|
71
70
|
kzgCommitmentToVersionedHash,
|
|
72
71
|
reconstructBlobs,
|
|
73
72
|
} from "../../../../util/blobs.js";
|
|
@@ -79,6 +78,7 @@ import {
|
|
|
79
78
|
import {isOptimisticBlock} from "../../../../util/forkChoice.js";
|
|
80
79
|
import {kzg} from "../../../../util/kzg.js";
|
|
81
80
|
import {promiseAllMaybeAsync} from "../../../../util/promises.js";
|
|
81
|
+
import {ApiOptions} from "../../../options.js";
|
|
82
82
|
import {ApiModules} from "../../types.js";
|
|
83
83
|
import {assertUniqueItems} from "../../utils.js";
|
|
84
84
|
import {getBlockResponse, toBeaconHeaderResponse} from "./utils.js";
|
|
@@ -96,16 +96,10 @@ const MAX_API_CLOCK_DISPARITY_MS = 1000;
|
|
|
96
96
|
*/
|
|
97
97
|
const IDENTITY_PEER_ID = ""; // TODO: Compute identity keypair
|
|
98
98
|
|
|
99
|
-
export function getBeaconBlockApi(
|
|
100
|
-
|
|
101
|
-
config,
|
|
102
|
-
|
|
103
|
-
network,
|
|
104
|
-
db,
|
|
105
|
-
}: Pick<
|
|
106
|
-
ApiModules,
|
|
107
|
-
"chain" | "config" | "metrics" | "network" | "db"
|
|
108
|
-
>): ApplicationMethods<routes.beacon.block.Endpoints> {
|
|
99
|
+
export function getBeaconBlockApi(
|
|
100
|
+
opts: ApiOptions,
|
|
101
|
+
{chain, config, metrics, network, db}: Pick<ApiModules, "chain" | "config" | "metrics" | "network" | "db">
|
|
102
|
+
): ApplicationMethods<routes.beacon.block.Endpoints> {
|
|
109
103
|
const publishBlockV2: ApplicationMethods<routes.beacon.block.Endpoints>["publishBlockV2"] = async (
|
|
110
104
|
{signedBlockContents, broadcastValidation, builderUrl},
|
|
111
105
|
context,
|
|
@@ -115,6 +109,9 @@ export function getBeaconBlockApi({
|
|
|
115
109
|
const signedBlock = signedBlockContents.signedBlock;
|
|
116
110
|
const slot = signedBlock.message.slot;
|
|
117
111
|
const fork = config.getForkName(slot);
|
|
112
|
+
if (!isForkPostFulu(fork)) {
|
|
113
|
+
throw new ApiError(400, `Publishing blocks is not supported for pre-fulu fork=${fork}`);
|
|
114
|
+
}
|
|
118
115
|
const blockRoot = toRootHex(chain.config.getForkTypes(slot).BeaconBlock.hashTreeRoot(signedBlock.message));
|
|
119
116
|
|
|
120
117
|
const blockForImport = chain.seenBlockInputCache.getByBlock({
|
|
@@ -136,40 +133,26 @@ export function getBeaconBlockApi({
|
|
|
136
133
|
});
|
|
137
134
|
}
|
|
138
135
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
signedBlock as SignedBeaconBlock<ForkPostFulu>,
|
|
160
|
-
cellsAndProofs
|
|
161
|
-
) as fulu.DataColumnSidecar[];
|
|
162
|
-
timer?.();
|
|
163
|
-
blobSidecars = [];
|
|
164
|
-
} else if (isForkPostDeneb(fork)) {
|
|
165
|
-
blobSidecars = getBlobSidecars(config, signedBlock, signedBlockContents.blobs, signedBlockContents.kzgProofs);
|
|
166
|
-
dataColumnSidecars = [];
|
|
167
|
-
} else {
|
|
168
|
-
throw Error(`Invalid data fork=${fork} for publish`);
|
|
169
|
-
}
|
|
170
|
-
} else {
|
|
171
|
-
blobSidecars = [];
|
|
172
|
-
dataColumnSidecars = [];
|
|
136
|
+
// After gloas, data columns are not published with the block but when publishing the execution payload envelope.
|
|
137
|
+
let dataColumnSidecars: fulu.DataColumnSidecar[] = [];
|
|
138
|
+
|
|
139
|
+
if (isDenebBlockContents(signedBlockContents) && isForkPostFulu(fork) && !isForkPostGloas(fork)) {
|
|
140
|
+
const timer = metrics?.peerDas.dataColumnSidecarComputationTime.startTimer();
|
|
141
|
+
// If the block was produced by this node, we will already have computed cells
|
|
142
|
+
// Otherwise, we will compute them from the blobs in this function
|
|
143
|
+
const cells =
|
|
144
|
+
(chain.blockProductionCache.get(blockRoot) as ProduceFullFulu)?.cells ??
|
|
145
|
+
signedBlockContents.blobs.map((blob) => kzg.computeCells(blob));
|
|
146
|
+
const cellsAndProofs = cells.map((rowCells, rowIndex) => ({
|
|
147
|
+
cells: rowCells,
|
|
148
|
+
proofs: signedBlockContents.kzgProofs.slice(rowIndex * NUMBER_OF_COLUMNS, (rowIndex + 1) * NUMBER_OF_COLUMNS),
|
|
149
|
+
}));
|
|
150
|
+
dataColumnSidecars = getDataColumnSidecarsFromBlock(
|
|
151
|
+
config,
|
|
152
|
+
signedBlock as SignedBeaconBlock<ForkPostFulu>,
|
|
153
|
+
cellsAndProofs
|
|
154
|
+
) as fulu.DataColumnSidecar[];
|
|
155
|
+
timer?.();
|
|
173
156
|
}
|
|
174
157
|
|
|
175
158
|
if (isBlockInputColumns(blockForImport)) {
|
|
@@ -187,19 +170,6 @@ export function getBeaconBlockApi({
|
|
|
187
170
|
{throwOnDuplicateAdd: false}
|
|
188
171
|
);
|
|
189
172
|
}
|
|
190
|
-
} else if (isBlockInputBlobs(blockForImport)) {
|
|
191
|
-
for (const blobSidecar of blobSidecars) {
|
|
192
|
-
blockForImport.addBlob(
|
|
193
|
-
{
|
|
194
|
-
blockRootHex: blockRoot,
|
|
195
|
-
blobSidecar,
|
|
196
|
-
source: BlockInputSource.api,
|
|
197
|
-
seenTimestampSec,
|
|
198
|
-
},
|
|
199
|
-
// Same as above for columns
|
|
200
|
-
{throwOnDuplicateAdd: false}
|
|
201
|
-
);
|
|
202
|
-
}
|
|
203
173
|
}
|
|
204
174
|
|
|
205
175
|
// check what validations have been requested before broadcasting and publishing the block
|
|
@@ -321,18 +291,8 @@ export function getBeaconBlockApi({
|
|
|
321
291
|
break;
|
|
322
292
|
}
|
|
323
293
|
|
|
324
|
-
case routes.beacon.BroadcastValidation.none: {
|
|
325
|
-
chain.logger.debug("Skipping broadcast validation", valLogMeta);
|
|
326
|
-
break;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
294
|
default: {
|
|
330
|
-
|
|
331
|
-
const message = `Broadcast validation of ${broadcastValidation} type not implemented yet`;
|
|
332
|
-
if (chain.opts.broadcastValidationStrictness === "error") {
|
|
333
|
-
throw Error(message);
|
|
334
|
-
}
|
|
335
|
-
chain.logger.warn(message, valLogMeta);
|
|
295
|
+
throw new ApiError(400, `Invalid broadcast validation level ${broadcastValidation}`);
|
|
336
296
|
}
|
|
337
297
|
}
|
|
338
298
|
|
|
@@ -399,29 +359,26 @@ export function getBeaconBlockApi({
|
|
|
399
359
|
//
|
|
400
360
|
() => network.publishBeaconBlock(signedBlock),
|
|
401
361
|
...dataColumnSidecars.map((dataColumnSidecar) => () => network.publishDataColumnSidecar(dataColumnSidecar)),
|
|
402
|
-
...blobSidecars.map((blobSidecar) => () => network.publishBlobSidecar(blobSidecar)),
|
|
403
362
|
() =>
|
|
404
363
|
// there is no rush to persist block since we published it to gossip anyway
|
|
405
|
-
chain
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
source: BlockInputSource.api,
|
|
420
|
-
});
|
|
421
|
-
}
|
|
364
|
+
chain.processBlock(blockForImport, opts).catch((e) => {
|
|
365
|
+
if (e instanceof BlockError) {
|
|
366
|
+
switch (e.type.code) {
|
|
367
|
+
case BlockErrorCode.ALREADY_KNOWN:
|
|
368
|
+
// Block was imported while publishing, e.g. received via gossip
|
|
369
|
+
chain.logger.debug("Ignoring already-known block during publishing", valLogMeta);
|
|
370
|
+
return;
|
|
371
|
+
case BlockErrorCode.PARENT_BLOCK_UNKNOWN:
|
|
372
|
+
case BlockErrorCode.PARENT_PAYLOAD_UNKNOWN:
|
|
373
|
+
chain.emitter.emit(ChainEvent.blockUnknownParent, {
|
|
374
|
+
blockInput: blockForImport,
|
|
375
|
+
peer: IDENTITY_PEER_ID,
|
|
376
|
+
source: BlockInputSource.api,
|
|
377
|
+
});
|
|
422
378
|
}
|
|
423
|
-
|
|
424
|
-
|
|
379
|
+
}
|
|
380
|
+
throw e;
|
|
381
|
+
}),
|
|
425
382
|
];
|
|
426
383
|
const sentPeersArr = await promiseAllMaybeAsync<{sentPeers: number; alreadyPublished: boolean} | number | void>(
|
|
427
384
|
publishPromises
|
|
@@ -471,20 +428,6 @@ export function getBeaconBlockApi({
|
|
|
471
428
|
});
|
|
472
429
|
}
|
|
473
430
|
}
|
|
474
|
-
} else if (isBlockInputBlobs(blockForImport) && chain.emitter.listenerCount(routes.events.EventType.blobSidecar)) {
|
|
475
|
-
const blobSidecars = blockForImport.getBlobs();
|
|
476
|
-
const versionedHashes = blockForImport.getVersionedHashes();
|
|
477
|
-
|
|
478
|
-
for (const blobSidecar of blobSidecars) {
|
|
479
|
-
const {index, kzgCommitment} = blobSidecar;
|
|
480
|
-
chain.emitter.emit(routes.events.EventType.blobSidecar, {
|
|
481
|
-
blockRoot,
|
|
482
|
-
slot,
|
|
483
|
-
index,
|
|
484
|
-
kzgCommitment: toHex(kzgCommitment),
|
|
485
|
-
versionedHash: toHex(versionedHashes[index]),
|
|
486
|
-
});
|
|
487
|
-
}
|
|
488
431
|
}
|
|
489
432
|
};
|
|
490
433
|
|
|
@@ -809,11 +752,6 @@ export function getBeaconBlockApi({
|
|
|
809
752
|
};
|
|
810
753
|
try {
|
|
811
754
|
switch (broadcastValidation) {
|
|
812
|
-
case routes.beacon.BroadcastValidation.none: {
|
|
813
|
-
chain.logger.debug("Skipping broadcast validation of execution payload envelope", valLogMeta);
|
|
814
|
-
break;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
755
|
case routes.beacon.BroadcastValidation.gossip: {
|
|
818
756
|
await validateApiExecutionPayloadEnvelope(chain, signedExecutionPayloadEnvelope);
|
|
819
757
|
break;
|
|
@@ -852,11 +790,7 @@ export function getBeaconBlockApi({
|
|
|
852
790
|
}
|
|
853
791
|
|
|
854
792
|
default: {
|
|
855
|
-
|
|
856
|
-
if (chain.opts.broadcastValidationStrictness === "error") {
|
|
857
|
-
throw Error(message);
|
|
858
|
-
}
|
|
859
|
-
chain.logger.warn(message, valLogMeta);
|
|
793
|
+
throw new ApiError(400, `Invalid broadcast validation level ${broadcastValidation}`);
|
|
860
794
|
}
|
|
861
795
|
}
|
|
862
796
|
} catch (error) {
|
|
@@ -1008,9 +942,13 @@ export function getBeaconBlockApi({
|
|
|
1008
942
|
() => network.publishSignedExecutionPayloadEnvelope(signedExecutionPayloadEnvelope),
|
|
1009
943
|
// Publish all data column sidecars
|
|
1010
944
|
...dataColumnSidecars.map((dataColumnSidecar) => () => network.publishDataColumnSidecar(dataColumnSidecar)),
|
|
1011
|
-
// Import execution payload
|
|
1012
|
-
|
|
1013
|
-
|
|
945
|
+
// Import execution payload
|
|
946
|
+
() =>
|
|
947
|
+
chain.processExecutionPayload(payloadInput, {
|
|
948
|
+
// Signature is verified during broadcast validation only for the submitted envelope,
|
|
949
|
+
// an envelope cached by another source is verified at import
|
|
950
|
+
validSignature: payloadInput.getPayloadEnvelope() === signedExecutionPayloadEnvelope,
|
|
951
|
+
}),
|
|
1014
952
|
];
|
|
1015
953
|
|
|
1016
954
|
const publishPromise = promiseAllMaybeAsync<{sentPeers: number; alreadyPublished: boolean} | number | void>(
|
|
@@ -1077,15 +1015,25 @@ export function getBeaconBlockApi({
|
|
|
1077
1015
|
throw new ApiError(400, `publishExecutionPayloadBid not supported for pre-gloas fork=${fork}`);
|
|
1078
1016
|
}
|
|
1079
1017
|
|
|
1080
|
-
const validationTimer = metrics?.opPool.executionPayloadBidPool.apiValidationTime.startTimer();
|
|
1081
|
-
// TODO: once the builder is tested and can be trusted, skip this local validation
|
|
1082
|
-
// to publish faster, accepting peer-score risk if it ever emits an invalid bid.
|
|
1083
|
-
await validateApiExecutionPayloadBid(chain, signedExecutionPayloadBid);
|
|
1084
|
-
validationTimer?.();
|
|
1085
|
-
|
|
1086
1018
|
const elapsedSec = chain.clock.secFromSlot(slot, seenTimestampSec);
|
|
1087
1019
|
metrics?.gossipExecutionPayloadBid.elapsedTimeTillReceived.observe({source: OpSource.api}, elapsedSec);
|
|
1088
1020
|
|
|
1021
|
+
if (!opts.disableBidValidation) {
|
|
1022
|
+
const validationTimer = metrics?.opPool.executionPayloadBidPool.apiValidationTime.startTimer();
|
|
1023
|
+
const {proposerIndex} = await validateGossipExecutionPayloadBid(chain, signedExecutionPayloadBid);
|
|
1024
|
+
validationTimer?.();
|
|
1025
|
+
|
|
1026
|
+
// Gossip does not deliver our own messages back to us, so a validated bid is added to the
|
|
1027
|
+
// pool here to allow a proposer on this node to select it
|
|
1028
|
+
const insertOutcome = chain.executionPayloadBidPool.add(
|
|
1029
|
+
signedExecutionPayloadBid,
|
|
1030
|
+
Math.floor(elapsedSec * 1000)
|
|
1031
|
+
);
|
|
1032
|
+
metrics?.opPool.executionPayloadBidPool.apiInsertOutcome.inc({insertOutcome});
|
|
1033
|
+
|
|
1034
|
+
chain.validatorMonitor?.registerExecutionPayloadBid(OpSource.api, proposerIndex, bid);
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1089
1037
|
const sentPeers = await network.publishSignedExecutionPayloadBid(signedExecutionPayloadBid);
|
|
1090
1038
|
|
|
1091
1039
|
chain.emitter.emit(routes.events.EventType.executionPayloadBid, {
|
|
@@ -1104,7 +1052,7 @@ export function getBeaconBlockApi({
|
|
|
1104
1052
|
},
|
|
1105
1053
|
|
|
1106
1054
|
async getSignedExecutionPayloadEnvelope({blockId}, context) {
|
|
1107
|
-
const {block,
|
|
1055
|
+
const {block, finalized} = await getBlockResponse(chain, blockId);
|
|
1108
1056
|
const slot = block.message.slot;
|
|
1109
1057
|
const fork = config.getForkName(slot);
|
|
1110
1058
|
|
|
@@ -1118,6 +1066,13 @@ export function getBeaconBlockApi({
|
|
|
1118
1066
|
const blockRoot = config.getForkTypes(slot).BeaconBlock.hashTreeRoot(block.message);
|
|
1119
1067
|
const blockRootHex = toRootHex(blockRoot);
|
|
1120
1068
|
|
|
1069
|
+
// The block's own flag is the status of the payload it builds on, the envelope's is that of its
|
|
1070
|
+
// FULL variant. An unfinalized block without one has not imported its envelope yet.
|
|
1071
|
+
const payload = finalized ? null : chain.forkChoice.getBlockHex(blockRootHex, PayloadStatus.FULL);
|
|
1072
|
+
if (!finalized && payload === null) {
|
|
1073
|
+
throw new ApiError(404, `Execution payload envelope not found for slot=${slot}, blockRoot=${blockRootHex}`);
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1121
1076
|
let data: Uint8Array | gloas.SignedExecutionPayloadEnvelope | null;
|
|
1122
1077
|
try {
|
|
1123
1078
|
data = context?.returnBytes
|
|
@@ -1142,7 +1097,7 @@ export function getBeaconBlockApi({
|
|
|
1142
1097
|
|
|
1143
1098
|
return {
|
|
1144
1099
|
data,
|
|
1145
|
-
meta: {executionOptimistic, finalized, version: fork},
|
|
1100
|
+
meta: {executionOptimistic: payload !== null && isOptimisticBlock(payload), finalized, version: fork},
|
|
1146
1101
|
};
|
|
1147
1102
|
},
|
|
1148
1103
|
|
|
@@ -3,6 +3,7 @@ import {ApplicationMethods} from "@lodestar/api/server";
|
|
|
3
3
|
import {isForkPostGloas} from "@lodestar/params";
|
|
4
4
|
import {computeStartSlotAtEpoch} from "@lodestar/state-transition";
|
|
5
5
|
import {toRootHex} from "@lodestar/utils";
|
|
6
|
+
import {ApiOptions} from "../../options.js";
|
|
6
7
|
import {ApiError} from "../errors.js";
|
|
7
8
|
import {ApiModules} from "../types.js";
|
|
8
9
|
import {getBeaconBlockApi} from "./blocks/index.js";
|
|
@@ -11,9 +12,10 @@ import {getBeaconRewardsApi} from "./rewards/index.js";
|
|
|
11
12
|
import {getBeaconStateApi} from "./state/index.js";
|
|
12
13
|
|
|
13
14
|
export function getBeaconApi(
|
|
15
|
+
opts: ApiOptions,
|
|
14
16
|
modules: Pick<ApiModules, "chain" | "config" | "logger" | "metrics" | "network" | "db" | "sync">
|
|
15
17
|
): ApplicationMethods<routes.beacon.Endpoints> {
|
|
16
|
-
const block = getBeaconBlockApi(modules);
|
|
18
|
+
const block = getBeaconBlockApi(opts, modules);
|
|
17
19
|
const pool = getBeaconPoolApi(modules);
|
|
18
20
|
const state = getBeaconStateApi(modules);
|
|
19
21
|
const rewards = getBeaconRewardsApi(modules);
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
PayloadAttestationError,
|
|
18
18
|
PayloadAttestationErrorCode,
|
|
19
19
|
SyncCommitteeError,
|
|
20
|
+
SyncCommitteeErrorCode,
|
|
20
21
|
} from "../../../../chain/errors/index.js";
|
|
21
22
|
import {validateApiAttesterSlashing} from "../../../../chain/validation/attesterSlashing.js";
|
|
22
23
|
import {validateApiBlsToExecutionChange} from "../../../../chain/validation/blsToExecutionChange.js";
|
|
@@ -122,6 +123,32 @@ export function getBeaconPoolApi({
|
|
|
122
123
|
logger.debug("Error adding unaggregated attestation to pool", {subnet}, e as Error);
|
|
123
124
|
}
|
|
124
125
|
|
|
126
|
+
// Collected only for vote slots that an upcoming block of a connected validator can include
|
|
127
|
+
if (isForkPostElectra(fork) && chain.proposerTracker.shouldCollect(slot)) {
|
|
128
|
+
try {
|
|
129
|
+
const insertOutcome = chain.singleAttestationPool.add(
|
|
130
|
+
attestation as SingleAttestation<ForkPostElectra>,
|
|
131
|
+
attDataRootHex,
|
|
132
|
+
validatorCommitteeIndex,
|
|
133
|
+
committeeSize
|
|
134
|
+
);
|
|
135
|
+
metrics?.opPool.singleAttestationPool.apiInsertOutcome.inc({insertOutcome});
|
|
136
|
+
} catch (e) {
|
|
137
|
+
logger.debug(
|
|
138
|
+
"Error adding single attestation to pool",
|
|
139
|
+
{
|
|
140
|
+
slot,
|
|
141
|
+
committeeIndex,
|
|
142
|
+
validatorCommitteeIndex,
|
|
143
|
+
validatorIndex: (attestation as SingleAttestation<ForkPostElectra>).attesterIndex,
|
|
144
|
+
subnet,
|
|
145
|
+
attDataRoot: attDataRootHex,
|
|
146
|
+
},
|
|
147
|
+
e as Error
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
125
152
|
if (isForkPostElectra(fork)) {
|
|
126
153
|
chain.emitter.emit(
|
|
127
154
|
routes.events.EventType.singleAttestation,
|
|
@@ -340,7 +367,10 @@ export function getBeaconPoolApi({
|
|
|
340
367
|
const synCommittee = state.getIndexedSyncCommittee(signature.slot);
|
|
341
368
|
const indexesInCommittee = synCommittee.validatorIndexMap.get(signature.validatorIndex);
|
|
342
369
|
if (indexesInCommittee === undefined || indexesInCommittee.length === 0) {
|
|
343
|
-
|
|
370
|
+
throw new SyncCommitteeError(GossipAction.REJECT, {
|
|
371
|
+
code: SyncCommitteeErrorCode.VALIDATOR_NOT_IN_SYNC_COMMITTEE,
|
|
372
|
+
validatorIndex: signature.validatorIndex,
|
|
373
|
+
});
|
|
344
374
|
}
|
|
345
375
|
|
|
346
376
|
// Verify signature only, all other data is very likely to be correct, since the `signature` object is created by this node.
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
isStatePostGloas,
|
|
18
18
|
} from "@lodestar/state-transition";
|
|
19
19
|
import {
|
|
20
|
+
BuilderIndex,
|
|
20
21
|
ValidatorIndex,
|
|
21
22
|
getBuilderStatus,
|
|
22
23
|
getValidatorStatus,
|
|
@@ -29,6 +30,7 @@ import {ApiModules} from "../../types.js";
|
|
|
29
30
|
import {assertUniqueItems} from "../../utils.js";
|
|
30
31
|
import {
|
|
31
32
|
filterStateValidatorsByStatus,
|
|
33
|
+
getBuilderIndexByPubkey,
|
|
32
34
|
getStateBuilderIndex,
|
|
33
35
|
getStateResponseWithRegen,
|
|
34
36
|
getStateValidatorIndex,
|
|
@@ -170,8 +172,15 @@ export function getBeaconStateApi({
|
|
|
170
172
|
if (builderIds.length) {
|
|
171
173
|
assertUniqueItems(builderIds, "Duplicate builder IDs provided");
|
|
172
174
|
|
|
175
|
+
// There is no builder pubkey cache, scan the registry at most once per request
|
|
176
|
+
let builderIndexByPubkey: Map<string, BuilderIndex> | null = null;
|
|
177
|
+
const getBuilderIndexByPubkeyMap = () => {
|
|
178
|
+
builderIndexByPubkey ??= getBuilderIndexByPubkey(state);
|
|
179
|
+
return builderIndexByPubkey;
|
|
180
|
+
};
|
|
181
|
+
|
|
173
182
|
for (const id of builderIds) {
|
|
174
|
-
const resp = getStateBuilderIndex(id, state);
|
|
183
|
+
const resp = getStateBuilderIndex(id, state, getBuilderIndexByPubkeyMap);
|
|
175
184
|
if (resp.valid) {
|
|
176
185
|
const builderIndex = resp.builderIndex;
|
|
177
186
|
const builder = state.getBuilder(builderIndex);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {type PubkeyCache} from "@chainsafe/lodestar-z/pubkeys";
|
|
2
1
|
import {routes} from "@lodestar/api";
|
|
3
2
|
import {CheckpointWithHex, IForkChoice} from "@lodestar/fork-choice";
|
|
3
|
+
import {type PubkeyCache} from "@lodestar/native/pubkeys";
|
|
4
4
|
import {GENESIS_SLOT} from "@lodestar/params";
|
|
5
5
|
import {IBeaconStateView, IBeaconStateViewGloas} from "@lodestar/state-transition";
|
|
6
6
|
import {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
getValidatorStatus,
|
|
14
14
|
phase0,
|
|
15
15
|
} from "@lodestar/types";
|
|
16
|
-
import {
|
|
16
|
+
import {fromHex, toHex} from "@lodestar/utils";
|
|
17
17
|
import {IBeaconChain} from "../../../../chain/index.js";
|
|
18
18
|
import {GENESIS_EPOCH} from "../../../../constants/index.js";
|
|
19
19
|
import {IBeaconSync} from "../../../../sync/index.js";
|
|
@@ -118,9 +118,22 @@ type StateBuilderIndexResponse =
|
|
|
118
118
|
| {valid: true; builderIndex: BuilderIndex}
|
|
119
119
|
| {valid: false; code: number; reason: string};
|
|
120
120
|
|
|
121
|
+
export function getBuilderIndexByPubkey(state: IBeaconStateViewGloas): Map<string, BuilderIndex> {
|
|
122
|
+
const builderIndexByPubkey = new Map<string, BuilderIndex>();
|
|
123
|
+
const buildersLength = state.getBuildersLength();
|
|
124
|
+
for (let builderIndex = 0; builderIndex < buildersLength; builderIndex++) {
|
|
125
|
+
const pubkeyHex = toHex(state.getBuilder(builderIndex).pubkey);
|
|
126
|
+
if (!builderIndexByPubkey.has(pubkeyHex)) {
|
|
127
|
+
builderIndexByPubkey.set(pubkeyHex, builderIndex);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return builderIndexByPubkey;
|
|
131
|
+
}
|
|
132
|
+
|
|
121
133
|
export function getStateBuilderIndex(
|
|
122
134
|
id: routes.beacon.BuilderId | BLSPubkey,
|
|
123
|
-
state: IBeaconStateViewGloas
|
|
135
|
+
state: IBeaconStateViewGloas,
|
|
136
|
+
getBuilderIndexByPubkeyMap: () => Map<string, BuilderIndex>
|
|
124
137
|
): StateBuilderIndexResponse {
|
|
125
138
|
if (typeof id === "string") {
|
|
126
139
|
// mutate `id` and fallthrough to below
|
|
@@ -148,14 +161,11 @@ export function getStateBuilderIndex(
|
|
|
148
161
|
}
|
|
149
162
|
|
|
150
163
|
// typeof id === Uint8Array
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
if (byteArrayEquals(state.getBuilder(builderIndex).pubkey, id)) {
|
|
155
|
-
return {valid: true, builderIndex};
|
|
156
|
-
}
|
|
164
|
+
const builderIndex = getBuilderIndexByPubkeyMap().get(toHex(id));
|
|
165
|
+
if (builderIndex === undefined) {
|
|
166
|
+
return {valid: false, code: 404, reason: "Builder pubkey not found in state"};
|
|
157
167
|
}
|
|
158
|
-
return {valid:
|
|
168
|
+
return {valid: true, builderIndex};
|
|
159
169
|
}
|
|
160
170
|
|
|
161
171
|
export function filterStateValidatorsByStatus(
|
|
@@ -114,6 +114,10 @@ export function getDebugApi({
|
|
|
114
114
|
unrealizedJustifiedRoot: node.unrealizedJustifiedRoot,
|
|
115
115
|
unrealizedFinalizedEpoch: node.unrealizedFinalizedEpoch,
|
|
116
116
|
unrealizedFinalizedRoot: node.unrealizedFinalizedRoot,
|
|
117
|
+
inclusionListSatisfied:
|
|
118
|
+
node.payloadStatus === PayloadStatus.FULL
|
|
119
|
+
? forkChoice.getPayloadInclusionListSatisfaction(node.blockRoot)
|
|
120
|
+
: null,
|
|
117
121
|
},
|
|
118
122
|
};
|
|
119
123
|
}),
|