mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
Make sure we clear the freed the availability cores (#1921)
If a core is freed, we need to make sure it is inserted as free into availability cores, because we can not be sure that the core is occupied directly again.
This commit is contained in:
@@ -312,7 +312,7 @@ impl<T: Trait> Module<T> {
|
||||
{
|
||||
if pending_availability.availability_votes.count_ones() >= threshold {
|
||||
<PendingAvailability<T>>::remove(¶_id);
|
||||
let commitments = match <PendingAvailabilityCommitments>::take(¶_id) {
|
||||
let commitments = match PendingAvailabilityCommitments::take(¶_id) {
|
||||
Some(commitments) => commitments,
|
||||
None => {
|
||||
debug::warn!(r#"
|
||||
|
||||
Reference in New Issue
Block a user