BlobSidecarsByRoot (#12420)

* BlobSidecarsByRoot RPC handler

* BlobSidecarsByRange rpc handler (#12499)

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>

---------

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
This commit is contained in:
kasey
2023-06-15 14:38:08 -05:00
committed by Preston Van Loon
parent 8a67f616f0
commit 87cd96afd3
30 changed files with 1815 additions and 12 deletions

View File

@@ -165,6 +165,18 @@ var (
Usage: "The factor by which block batch limit may increase on burst.",
Value: 2,
}
// BlockBatchLimit specifies the requested block batch size.
BlobBatchLimit = &cli.IntFlag{
Name: "blob-batch-limit",
Usage: "The amount of blobs the local peer is bounded to request and respond to in a batch.",
Value: 8,
}
// BlobBatchLimitBurstFactor specifies the factor by which blob batch size may increase.
BlobBatchLimitBurstFactor = &cli.IntFlag{
Name: "blob-batch-limit-burst-factor",
Usage: "The factor by which blob batch limit may increase on burst.",
Value: 2,
}
// EnableDebugRPCEndpoints as /v1/beacon/state.
EnableDebugRPCEndpoints = &cli.BoolFlag{
Name: "enable-debug-rpc-endpoints",

View File

@@ -13,6 +13,8 @@ type GlobalFlags struct {
MinimumPeersPerSubnet int
BlockBatchLimit int
BlockBatchLimitBurstFactor int
BlobBatchLimit int
BlobBatchLimitBurstFactor int
}
var globalConfig *GlobalFlags
@@ -40,6 +42,8 @@ func ConfigureGlobalFlags(ctx *cli.Context) {
}
cfg.BlockBatchLimit = ctx.Int(BlockBatchLimit.Name)
cfg.BlockBatchLimitBurstFactor = ctx.Int(BlockBatchLimitBurstFactor.Name)
cfg.BlobBatchLimit = ctx.Int(BlobBatchLimit.Name)
cfg.BlobBatchLimitBurstFactor = ctx.Int(BlobBatchLimitBurstFactor.Name)
cfg.MinimumPeersPerSubnet = ctx.Int(MinPeersPerSubnet.Name)
configureMinimumPeers(ctx, cfg)