From fef2e72a32c14ed5ee8a113472a592c35312d156 Mon Sep 17 00:00:00 2001 From: Alexander Lednev <57529355+iceseer@users.noreply.github.com> Date: Mon, 13 Jan 2025 14:06:44 +0300 Subject: [PATCH] [fixup] relay parent from candidate (#2332) Signed-off-by: iceseer --- core/parachain/validator/impl/parachain_processor.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/parachain/validator/impl/parachain_processor.cpp b/core/parachain/validator/impl/parachain_processor.cpp index f5f7080c96..7e6901e953 100644 --- a/core/parachain/validator/impl/parachain_processor.cpp +++ b/core/parachain/validator/impl/parachain_processor.cpp @@ -2409,13 +2409,14 @@ namespace kagome::parachain { network::CandidateReceipt candidate, network::ParachainBlock &&pov, runtime::PersistedValidationData &&pvd, - const primitives::BlockHash &relay_parent) { + const primitives::BlockHash &_relay_parent) { REINVOKE(*main_pool_handler_, validateAsync, candidate, std::move(pov), std::move(pvd), - relay_parent); + _relay_parent); + const auto relay_parent = candidate.descriptor.relay_parent; TRY_GET_OR_RET(parachain_state, tryGetStateByRelayParent(candidate.descriptor.relay_parent));