mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 02:42:38 +00:00
Update max blobs per block (#4391)
* Change max blobs to 6 in code * Rename * fmt
This commit is contained in:
@@ -43,7 +43,8 @@ use std::{
|
||||
};
|
||||
use types::ForkName;
|
||||
use types::{
|
||||
consts::altair::SYNC_COMMITTEE_SUBNET_COUNT, EnrForkId, EthSpec, ForkContext, Slot, SubnetId,
|
||||
consts::altair::SYNC_COMMITTEE_SUBNET_COUNT, consts::deneb::BLOB_SIDECAR_SUBNET_COUNT,
|
||||
EnrForkId, EthSpec, ForkContext, Slot, SubnetId,
|
||||
};
|
||||
use utils::{build_transport, strip_peer_id, Context as ServiceContext, MAX_CONNECTIONS_PER_PEER};
|
||||
|
||||
@@ -236,10 +237,11 @@ impl<AppReqId: ReqId, TSpec: EthSpec> Network<AppReqId, TSpec> {
|
||||
possible_fork_digests,
|
||||
ctx.chain_spec.attestation_subnet_count,
|
||||
SYNC_COMMITTEE_SUBNET_COUNT,
|
||||
4, // TODO(pawan): get this from chainspec
|
||||
BLOB_SIDECAR_SUBNET_COUNT,
|
||||
),
|
||||
max_subscribed_topics: 200,
|
||||
max_subscriptions_per_request: 150, // 148 in theory = (64 attestation + 4 sync committee + 6 core topics) * 2
|
||||
// 162 in theory = (64 attestation + 4 sync committee + 7 core topics + 6 blob topics) * 2
|
||||
max_subscriptions_per_request: 160,
|
||||
};
|
||||
|
||||
config.gs_config = gossipsub_config(config.network_load, ctx.fork_context.clone());
|
||||
|
||||
Reference in New Issue
Block a user