mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-16 03:12:41 +00:00
Make max_blobs_per_block a config parameter (#6329)
* First pass
* Add restrictions to RuntimeVariableList api
* Use empty_uninitialized and fix warnings
* Fix some todos
* Merge branch 'unstable' into max-blobs-preset
* Fix take impl on RuntimeFixedList
* cleanup
* Fix test compilations
* Fix some more tests
* Fix test from unstable
* Merge branch 'unstable' into max-blobs-preset
* Merge remote-tracking branch 'origin/unstable' into max-blobs-preset
* Remove footgun function
* Minor simplifications
* Move from preset to config
* Fix typo
* Revert "Remove footgun function"
This reverts commit de01f923c7.
* Try fixing tests
* Thread through ChainSpec
* Fix release tests
* Move RuntimeFixedVector into module and rename
* Add test
* Remove empty RuntimeVarList awefullness
* Fix tests
* Simplify BlobSidecarListFromRoot
* Merge remote-tracking branch 'origin/unstable' into max-blobs-preset
* Bump quota to account for new target (6)
* Remove clone
* Fix issue from review
* Try to remove ugliness
* Merge branch 'unstable' into max-blobs-preset
* Fix max value
* Fix doctest
* Fix formatting
* Fix max check
* Delete hardcoded max_blobs_per_block in RPC limits
* Merge remote-tracking branch 'origin/unstable' into max-blobs-preset
This commit is contained in:
@@ -1234,6 +1234,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
.network
|
||||
.range_block_and_blob_response(id, block_or_blob)
|
||||
{
|
||||
let epoch = resp.sender_id.batch_id();
|
||||
match resp.responses {
|
||||
Ok(blocks) => {
|
||||
match resp.sender_id {
|
||||
@@ -1277,6 +1278,7 @@ impl<T: BeaconChainTypes> SyncManager<T> {
|
||||
resp.expects_custody_columns,
|
||||
None,
|
||||
vec![],
|
||||
self.chain.spec.max_blobs_per_block(epoch) as usize,
|
||||
),
|
||||
);
|
||||
// inform range that the request needs to be treated as failed
|
||||
|
||||
Reference in New Issue
Block a user