mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-17 18:21:02 +00:00
collation-generation: Support compressed PoVs directly (#4825)
This adds support for returning a compressed PoV directly to the collation generation. This is mainly to not requiring to compress a PoV twice.
This commit is contained in:
@@ -309,9 +309,7 @@ async fn handle_new_activations<Context: SubsystemContext>(
|
||||
|
||||
// Apply compression to the block data.
|
||||
let pov = {
|
||||
let pov = polkadot_node_primitives::maybe_compress_pov(
|
||||
collation.proof_of_validity,
|
||||
);
|
||||
let pov = collation.proof_of_validity.into_compressed();
|
||||
let encoded_size = pov.encoded_size();
|
||||
|
||||
// As long as `POV_BOMB_LIMIT` is at least `max_pov_size`, this ensures
|
||||
|
||||
Reference in New Issue
Block a user