humanode
humanode copied to clipboard
Check the way to convert `SlotDuration` into `Duration`
The usage of std::time::Duration::from_millis(humanode_runtime::SLOT_DURATION) is clear as SLOT_DURATION is defined in milliseconds. Should we check smth else?
pub const SLOT_DURATION: u64 = super::block_time::MILLISECS_PER_BLOCK;
// NOTE: Currently it is not possible to change the slot duration after the chain has started.
// Attempting to do so will brick block production.
pub const MILLISECS_PER_BLOCK: u64 = 6000;
@MOZGIII
Rename SLOT_DURATION -> SLOT_DURATION_IN_MILLISECONDS.
Please check if this is still relevant after the latest substrate upgrade @dmitrylavrenov