From 503be6b9a84a176588b146d00347f77689f42bc8 Mon Sep 17 00:00:00 2001 From: Dmitriy Khaustov aka xDimon Date: Tue, 24 Sep 2024 11:09:50 +0300 Subject: [PATCH] fix: prune av store Signed-off-by: Dmitriy Khaustov aka xDimon --- core/parachain/validator/impl/parachain_processor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/parachain/validator/impl/parachain_processor.cpp b/core/parachain/validator/impl/parachain_processor.cpp index 3fa8e39906..8d67ec20e3 100644 --- a/core/parachain/validator/impl/parachain_processor.cpp +++ b/core/parachain/validator/impl/parachain_processor.cpp @@ -667,6 +667,8 @@ namespace kagome::parachain { our_current_state_.per_leaf.erase(lost); our_current_state_.state_by_relay_parent.erase(lost); + + av_store_->remove(lost); } our_current_state_.active_leaves[relay_parent] = prospective_parachains_->prospectiveParachainsMode(relay_parent); @@ -801,7 +803,6 @@ namespace kagome::parachain { lost.number); backing_store_->onDeactivateLeaf(lost.hash); - av_store_->remove(lost.hash); bitfield_store_->remove(lost.hash); }