I believe the default
era period in
substrate-node-template is 24 hours. Is there a way for me to change that period?
Eras are measured in sessions. The duration of sessions are dependent on the consensus mechanism.
To reduce the number of sessions per era, simply adjust the
SessionsPerEra value in the implementation of
In BABE, the
EpochDuration config member is used to set the number of slots (and therefore the amount of time) in a session. This can only be set in the genesis. The actual parameters given to BABE which determine the block time are in the
epoch_config field of
To sum up: you have a few variables to play with - the time between blocks, the amount of blocks in a session, and the amount of sessions in an era. By adjusting these, you can adjust the overall time in a staking era.