Reactivate
pub fn reactivate_subnet_node(
origin: OriginFor<T>,
subnet_id: u32,
subnet_node_id: u32,
)Inserted & Updated Storage
let mut subnet_node = DeactivatedSubnetNodesData::<T>::take(subnet_id, subnet_node_id);
...
subnet_node.classification.class = SubnetNodeClass::Validator;
subnet_node.classification.start_epoch = epoch + 1;
...
// --- Enter node into the Queue class
SubnetNodesData::<T>::insert(subnet_id, subnet_node.id, subnet_node);
// Increase total subnet nodes
TotalSubnetNodes::<T>::mutate(subnet_id, |n: &mut u32| *n += 1);Note
Last updated