Skip to content
Snippets Groups Projects
Commit 268da199 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

fix an uncaught bug

parent cc1f03f7
No related branches found
No related tags found
1 merge request!305Resolve "smithMembers.expiresOn is only growing"
This commit is part of merge request !305. Comments created here will be created in the context of that merge request.
...@@ -240,11 +240,14 @@ pub mod pallet { ...@@ -240,11 +240,14 @@ pub mod pallet {
received_certs: issuers_, received_certs: issuers_,
}, },
); );
// if smith is offline, schedule expire
if !*is_online {
ExpiresOn::<T>::append( ExpiresOn::<T>::append(
CurrentSession::<T>::get() + T::SmithInactivityMaxDuration::get(), CurrentSession::<T>::get() + T::SmithInactivityMaxDuration::get(),
receiver, receiver,
); );
} }
}
for (issuer, issued_certs) in cert_meta_by_issuer { for (issuer, issued_certs) in cert_meta_by_issuer {
// Write CertsByIssuer // Write CertsByIssuer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment