Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
fae15379
Unverified
Commit
fae15379
authored
6 months ago
by
Andrei Eres
Browse files
Options
Downloads
Patches
Plain Diff
Update POV_RESPONSE_SIZE
parent
43cd6fd4
No related merge requests found
Pipeline
#497621
waiting for manual action with stages
in 57 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
polkadot/node/network/protocol/src/request_response/mod.rs
+4
-7
4 additions, 7 deletions
polkadot/node/network/protocol/src/request_response/mod.rs
with
4 additions
and
7 deletions
polkadot/node/network/protocol/src/request_response/mod.rs
+
4
−
7
View file @
fae15379
...
...
@@ -51,7 +51,7 @@
use
std
::{
collections
::
HashMap
,
time
::
Duration
,
u64
};
use
polkadot_primitives
::
{
MAX_CODE_SIZE
,
MAX_POV_SIZE
}
;
use
polkadot_primitives
::
MAX_CODE_SIZE
;
use
sc_network
::
NetworkBackend
;
use
sp_runtime
::
traits
::
Block
;
use
strum
::{
EnumIter
,
IntoEnumIterator
};
...
...
@@ -159,11 +159,8 @@ pub const MAX_PARALLEL_ATTESTED_CANDIDATE_REQUESTS: u32 = 5;
/// Response size limit for responses of POV like data.
///
/// This is larger than `MAX_POV_SIZE` to account for protocol overhead and for additional data in
/// `CollationFetchingV1` or `AvailableDataFetchingV1` for example. We try to err on larger limits
/// here as a too large limit only allows an attacker to waste our bandwidth some more, a too low
/// limit might have more severe effects.
const
POV_RESPONSE_SIZE
:
u64
=
MAX_POV_SIZE
as
u64
+
10_000
;
/// Same as what we use in substrate networking.
const
POV_RESPONSE_SIZE
:
u64
=
16
*
1024
*
1024
;
/// Maximum response sizes for `StatementFetchingV1`.
///
...
...
@@ -217,7 +214,7 @@ impl Protocol {
name
,
legacy_names
,
1_000
,
POV_RESPONSE_SIZE
as
u64
*
3
,
POV_RESPONSE_SIZE
,
// We are connected to all validators:
CHUNK_REQUEST_TIMEOUT
,
tx
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment