Let's imagine the following extrinsic.
#[pallet::call_index(1)]
#[pallet::weight(T::WeightInfo::might_panic_extrinsic())]
pub fn might_panic_extrinsic(origin: OriginFor<T>) -> DispatchResult {
let member = ensure_signed(origin)?;
let might_panic = custom_func().unwrap();
Ok(())
}
What are the risks and consequences, security-wise and considering we are using the latest Substrate version, if my extrinsic panics due to the unwrap
call ?
Will my node crash ? Will my runtime restart ? Will the extrinsic just be reverted, just like it would be for a custom Error
? Is there any security risk that the collator misses his slot ?
?