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]] [[package]]
name = "ghost-weaver" name = "ghost-weaver"
version = "0.0.25" version = "0.0.26"
dependencies = [ dependencies = [
"frame-benchmarking", "frame-benchmarking",
"frame-support", "frame-support",

View File

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

View File

@ -546,9 +546,10 @@ pub mod pallet {
CurrentWeavingSession::<T>::insert(&network_id, next_session); 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); TapestryDrafts::<T>::remove(&network_id);
WeavingStates::<T>::remove(&network_id); WeavingStates::<T>::remove(&network_id);
NetworkAttestations::<T>::remove(&network_id);
} }
} }
None => { None => {