purge attestation during on_initialize

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2026-11-01 15:30:42 +03:00
parent 4842fc5108
commit d973b096d9
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA
3 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@ -4114,7 +4114,7 @@ dependencies = [
[[package]]
name = "ghost-weaver"
version = "0.0.25"
version = "0.0.26"
dependencies = [
"frame-benchmarking",
"frame-support",

View File

@ -1,6 +1,6 @@
[package]
name = "ghost-weaver"
version = "0.0.25"
version = "0.0.26"
description = "Weaving a secure cryptographic tapestry across different external chains."
license.workspace = true
authors.workspace = true

View File

@ -546,9 +546,10 @@ pub mod pallet {
CurrentWeavingSession::<T>::insert(&network_id, next_session);
}
weight.saturating_accrue(T::DbWeight::get().writes(2));
weight.saturating_accrue(T::DbWeight::get().writes(3));
TapestryDrafts::<T>::remove(&network_id);
WeavingStates::<T>::remove(&network_id);
NetworkAttestations::<T>::remove(&network_id);
}
}
None => {