Skip to content
Commit 14b5acab authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Introduce a "dynamic" block size limit for proposing (#8588)



* Introduce a "dynamic" block size limit for proposing

This adds support for using a dynamic block size limit per call to
`propose`. This is required for Cumulus/Parachains to always use stay in
the limits of the maximum allowed PoV size.

As described in the docs, the block limit is only checked in the process
of pushing transactions. As we normally do some other operations in
`on_finalize`, it can happen that the block size still grows when there
is some proof being collected (as we do for parachains). This means,
that the given block limit needs to be rather conservative on the actual
value and should not be the upper limit.

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: default avatarAndronik Ordian <[email protected]>

* More future proof encoded size updating

* Use `ProofRecorderInner`

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update client/consensus/slots/src/lib.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update client/consensus/slots/src/slots.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

* Update client/basic-authorship/src/basic_authorship.rs

Co-authored-by: default avatarAndré Silva <[email protected]>

Co-authored-by: default avatarAndronik Ordian <[email protected]>
Co-authored-by: default avatarAndré Silva <[email protected]>
parent 2fa6f2fb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment