Box large arguments of GRANDPA pallet (#1154)

* box large arguments

* benchmarks

* fix
This commit is contained in:
Svyatoslav Nikolsky
2021-09-22 13:20:10 +03:00
committed by Bastian Köcher
parent 782d37522f
commit 084da4343d
18 changed files with 67 additions and 33 deletions
@@ -71,7 +71,7 @@ impl SubstrateFinalitySyncPipeline for WestendFinalityToMillau {
let call = millau_runtime::BridgeGrandpaWestendCall::<
millau_runtime::Runtime,
millau_runtime::WestendGrandpaInstance,
>::submit_finality_proof(header.into_inner(), proof)
>::submit_finality_proof(Box::new(header.into_inner()), proof)
.into();
let genesis_hash = *self.finality_pipeline.target_client.genesis_hash();